Opened 9 years ago

Closed 9 years ago

#5344 closed defect (fixed)

OAuth "not implemented" error

Reported by: ayleph Owned by:
Priority: major Milestone:
Component: programming Keywords: api, oauth
Cc: tsyesika Parent Tickets:

Description

Now that #5340 has been fixed, I've pulled the latest code onto my dev instance. jankusanagi authorized an account with Dianara and tried to retrieve the profile but got an error. I see this in the server logs.

2015-08-20 23:18:42,575 DEBUG   [mediagoblin.tools.routing] endpoint: mediagoblin.oauth.authorize view_func: mediagoblin.oauth.views:authorize
/path/to/mediagoblin/lib/python2.7/site-packages/SQLAlchemy-0.8.7-py2.7-linux-x86_64.egg/sqlalchemy/engine/default.py:459: SAWarning: Unicode type received non-unicode bind param value.
2015-08-20 23:18:44,085 DEBUG   [mediagoblin.tools.routing] endpoint: media.api.user view_func: <function user_endpoint at 0x7f04aec75668>
Error - <type 'exceptions.NotImplementedError'>: Subclasses must implement this function.
URL: https://pumpdev.goblinrefuge.com/api/user/spencer
File '/path/to/mediagoblin/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/exceptions/errormiddleware.py', line 144 in __call__
  app_iter = self.application(environ, sr_checker)
File '/path/to/mediagoblin/mediagoblin/app.py', line 342 in __call__
  return self.call_backend(environ, start_response)
File '/path/to/mediagoblin/lib/python2.7/site-packages/Werkzeug-0.9.6-py2.7.egg/werkzeug/wsgi.py', line 588 in __call__
  return self.app(environ, start_response)
File '/path/to/mediagoblin/mediagoblin/app.py', line 276 in call_backend
  return self._finish_call_backend(request, environ, start_response)
File '/path/to/mediagoblin/mediagoblin/app.py', line 318 in _finish_call_backend
  response = controller(request)
File '/path/to/mediagoblin/mediagoblin/decorators.py', line 413 in wrapper
  headers=dict(request.headers),
File 'build/bdist.linux-x86_64/egg/oauthlib/oauth1/rfc5849/endpoints/resource.py', line 115 in validate_protected_resource_request
File 'build/bdist.linux-x86_64/egg/oauthlib/oauth1/rfc5849/request_validator.py', line 254 in dummy_access_token
NotImplementedError: Subclasses must implement this function.

Change History (1)

comment:1 by Jessica Tallon, 9 years ago

Resolution: fixed
Status: newclosed

This has been fixed as of e9bb587, please re-open if you find that the problem still exists.

Note: See TracTickets for help on using tickets.