Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

object has no attribute 'metadata' #3157

Closed
catskul opened this issue Jul 16, 2015 · 1 comment
Closed

object has no attribute 'metadata' #3157

catskul opened this issue Jul 16, 2015 · 1 comment
Labels
Milestone

Comments

@catskul
Copy link

catskul commented Jul 16, 2015

Seemingly randomly (reloads on the same request sometimes produce) I get a 500 from the django dev webserver (running tip of master '6b08e97b6af8114d1ad82fc53a9cdf58168a278e'). It appears to be statefull. After the 500 happens all subsequent (identical) requests fail in the same way.

Restarting the server typically works for at least one request.

Exception:

Environment:

Request Method: GET
Request URL: http://localhost:8000/api/v1/attorneys/445ed126-095f-4093-bb11-5128ae84f060/

Django Version: 1.7.7
Python Version: 2.7.8

...

Traceback:
File "/home/.../env/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  111.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/.../env/local/lib/python2.7/site-packages/django/views/decorators/csrf.py" in wrapped_view
  57.         return view_func(*args, **kwargs)
File "/home/.../env/src/djangorestframework/rest_framework/viewsets.py" in view
  79.                 handler = getattr(self, action)

Exception Type: AttributeError at /api/v1/attorneys/445ed126-095f-4093-bb11-5128ae84f060/
Exception Value: 'AttorneyViewSet' object has no attribute 'metadata'
catskul added a commit to HireAnEsquire/django-rest-framework that referenced this issue Jul 16, 2015
@catskul
Copy link
Author

catskul commented Jul 16, 2015

related to #3115

@xordoquy xordoquy added this to the 3.1.4 Release milestone Jul 16, 2015
@xordoquy xordoquy added the Bug label Jul 16, 2015
@tomchristie tomchristie modified the milestones: 3.1.4 Release, 3.2.0 Release Jul 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants