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
Internal Server Error: /complete/facebook/ -> raise KeyError #153
Comments
Any traceback in the log? Which is the key? |
Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 115, in get_response File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 77, in wrapped_view File "/usr/local/lib/python2.7/dist-packages/social/apps/django_app/utils.py", line 32, in wrapper File "/usr/local/lib/python2.7/dist-packages/social/apps/django_app/views.py", line 25, in complete File "/usr/local/lib/python2.7/dist-packages/social/actions.py", line 54, in do_complete File "/usr/local/lib/python2.7/dist-packages/social/strategies/base.py", line 69, in complete File "/usr/local/lib/python2.7/dist-packages/social/backends/facebook.py", line 71, in auth_complete File "/usr/local/lib/python2.7/dist-packages/django/utils/datastructures.py", line 23, in getitem |
Do you have the full URL that's triggering that error? The missing |
I've tried to login with Facebook on your site and it worked OK, I was wondering if you have the exact URL that triggered the traceback, like |
Hitting 'Cancel' Facebook's accept auth request dialog causes a Server Error (500) for @Salma7amed's website |
@Salma7amed, @tklovett, python social auth checks the case of hitting the |
@omab I just discovered that the cancel throws an "AuthCanceled: Authentication process canceled" and not "KeyError" as mentioned in the previous traceback posted. |
So, hitting the Cancel button is not the way to reproduce the original report, right? |
Yes it's not. |
@Salma7amed, so, which is the full URL that triggers that error? |
According to the traceback I get the following is mentioned: |
@Salma7amed, I'm looking for the full URL, I want to see the parameters being sent by Facebook to your site. |
@omab How can I get you this info. Especially that I have no idea when this error is triggered. I just get the 500 error email from django. |
@Salma7amed, could you forward me that email or does it have any sensible data? What about your server logs? At some point the traceback should appear there with a full URL above that triggered the bug. |
@omab to which mail shall I send the mail ??!. |
@Salma7amed, I've checked your email, where's |
@omab I think if it was in the facebook app or in my code, it would have been appearing for all users who try to signup with facebook ?? |
@Salma7amed, any chance that this is being caused by a mobile client? So far I see the wrong parameters being sent to I've added a change to catch the missing parameter and raise a social exception that can be processed with the middleware. |
Where can I find the change u've added ??. And how will it help in finding what is causing this problem ??. |
@Salma7amed, I've just released |
ok, now after upgrading to the latest version. The following is the error I get: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 115, in get_response File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 77, in wrapped_view File "/usr/local/lib/python2.7/dist-packages/social/apps/django_app/utils.py", line 45, in wrapper File "/usr/local/lib/python2.7/dist-packages/social/apps/django_app/views.py", line 21, in complete File "/usr/local/lib/python2.7/dist-packages/social/actions.py", line 44, in do_complete File "/usr/local/lib/python2.7/dist-packages/social/strategies/base.py", line 67, in complete File "/usr/local/lib/python2.7/dist-packages/social/backends/facebook.py", line 56, in auth_complete AuthMissingParameter: Missing needed parameter code |
Yes, that's expected since there are missing parameters to continue the process. As mentioned in my previous comment, I would check the server log and check the auth process before that error, also check the referrer for the request that triggers the error. |
@Salma7amed, any progress on your end? Can I close this issue? |
Closing by inactivity. |
I am getting this 500 error mail frequently, stating that on /complete/facebook/ a KeyError is raised. I don't get what is the reason causing it, and how to avoid it.
I am using it on a deployed version so I can't track the scenario that caused so.
The text was updated successfully, but these errors were encountered: