You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I seem to be having an issue with social auth and logging in via Facebook OAuth2 from Django.
When logging in the browser appears to get stuck in an infinite loop from the app to Facebook and back again, but only when the view Facebook is returning to takes longer than a certain time to complete (normally a longer than a few seconds).
It is repeatable using the example Django app, it requires a next parameter is added initially:
This in itself will work, however if the view is delayed from completing (a simple time.sleep will do) it will begin to loop. Test view looks like this:
It does need to be a time >4 seconds it seems but it can vary. The console doesn't give much indication other than the requests are going through. However on odd occasions it will throw a "error: [Errno 32] Broken pipe" but continue looping. It's almost as if two requests are running simultaneously and competing with each other.
It's not overly clear why this is occurring, any thoughts where this might be going wrong?
(Running latest version of social auth and Django 1.5.4 - also tried 1.4.8 & 1.4.5 and it is consistent)
The text was updated successfully, but these errors were encountered:
Update: No longer seem to be experiencing this issue with Facebook with the same code that was failing for the last few days. Assuming it was a glitch somewhere Facebook's end. Would be interested to hear if there could be any other reason for this?
I seem to be having an issue with social auth and logging in via Facebook OAuth2 from Django.
When logging in the browser appears to get stuck in an infinite loop from the app to Facebook and back again, but only when the view Facebook is returning to takes longer than a certain time to complete (normally a longer than a few seconds).
It is repeatable using the example Django app, it requires a next parameter is added initially:
This in itself will work, however if the view is delayed from completing (a simple time.sleep will do) it will begin to loop. Test view looks like this:
It does need to be a time >4 seconds it seems but it can vary. The console doesn't give much indication other than the requests are going through. However on odd occasions it will throw a "error: [Errno 32] Broken pipe" but continue looping. It's almost as if two requests are running simultaneously and competing with each other.
It's not overly clear why this is occurring, any thoughts where this might be going wrong?
(Running latest version of social auth and Django 1.5.4 - also tried 1.4.8 & 1.4.5 and it is consistent)
The text was updated successfully, but these errors were encountered: