Last modified: 2013-08-20 20:23:47 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T54749, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52749 - 500 error when canceling Google OAuth authentication
500 error when canceling Google OAuth authentication
Status: RESOLVED FIXED
Product: Analytics
Classification: Unclassified
Wikimetrics (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-12 13:14 UTC by Diederik van Liere
Modified: 2013-08-20 20:23 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Diederik van Liere 2013-08-12 13:14:09 UTC
Steps to reproduce
1. Click on Connect with Google
2. Click on cancel when Google asks permission for account details.
3. 500 Error

Expected Behavior

After canceling authorizatin return to login screen of Wikimetrics

Stacktrace

[Mon Aug 12 13:09:49 2013] [error] [client 203.184.139.14] mod_wsgi (pid=27887): Exception occurred processing WSGI script '/usr/lib/wikimetrics/wikimetrics/api.wsgi'.
[Mon Aug 12 13:09:49 2013] [error] [client 203.184.139.14] Traceback (most recent call last):
[Mon Aug 12 13:09:49 2013] [error] [client 203.184.139.14]   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1701, in __call__
[Mon Aug 12 13:09:49 2013] [error] [client 203.184.139.14]     return self.wsgi_app(environ, start_response)
[Mon Aug 12 13:09:49 2013] [error] [client 203.184.139.14]   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1689, in wsgi_app
[Mon Aug 12 13:09:49 2013] [error] [client 203.184.139.14]     response = self.make_response(self.handle_exception(e))
[Mon Aug 12 13:09:49 2013] [error] [client 203.184.139.14]   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1687, in wsgi_app
[Mon Aug 12 13:09:49 2013] [error] [client 203.184.139.14]     response = self.full_dispatch_request()
[Mon Aug 12 13:09:49 2013] [error] [client 203.184.139.14]   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1360, in full_dispatch_request
[Mon Aug 12 13:09:49 2013] [error] [client 203.184.139.14]     rv = self.handle_user_exception(e)
[Mon Aug 12 13:09:49 2013] [error] [client 203.184.139.14]   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1358, in full_dispatch_request
[Mon Aug 12 13:09:49 2013] [error] [client 203.184.139.14]     rv = self.dispatch_request()
[Mon Aug 12 13:09:49 2013] [error] [client 203.184.139.14]   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1344, in dispatch_request
[Mon Aug 12 13:09:49 2013] [error] [client 203.184.139.14]     return self.view_functions[rule.endpoint](**req.view_args)
[Mon Aug 12 13:09:49 2013] [error] [client 203.184.139.14]   File "/usr/local/lib/python2.7/dist-packages/flask_oauth.py", line 433, in decorated
[Mon Aug 12 13:09:49 2013] [error] [client 203.184.139.14]     return f(*((data,) + args), **kwargs)
[Mon Aug 12 13:09:49 2013] [error] [client 203.184.139.14]   File "/usr/lib/wikimetrics/wikimetrics/controllers/authentication.py", line 104, in auth_google
[Mon Aug 12 13:09:49 2013] [error] [client 203.184.139.14]     access_token = resp['access_token'] or request.args.get('code')
[Mon Aug 12 13:09:49 2013] [error] [client 203.184.139.14] TypeError: 'NoneType' object has no attribute '__getitem__'
Comment 1 Stefan Petrea 2013-08-20 20:07:57 UTC
xref to mingle https://mingle.corp.wikimedia.org/projects/analytics/cards/1069

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links