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

No request body with certain 3rd party libs. #38

Closed
ghallsimpsons opened this issue May 6, 2013 · 2 comments
Closed

No request body with certain 3rd party libs. #38

ghallsimpsons opened this issue May 6, 2013 · 2 comments

Comments

@ghallsimpsons
Copy link

I'm using django-allauth with linkedin, and line 52 of the core.py (if is_form_encoded...) throws an exception "Request object has no attribute body". Strangely, this does not occur with direct calls to the linkedin API. Nonetheless, would you mind a short-circuit hasattr(r, 'body') in the if statement to prevent this? Thanks!

@ib-lundgren
Copy link
Member

Sounds like this is due to using an older version of requests where the
order of prepare statements have not been updated. Which requests version
are you using? Would you be able to update and see if the problem persists?
Thanks!

On Tue, May 7, 2013 at 12:33 AM, Grantland [email protected] wrote:

I'm using django-allauth with linkedin, and line 52 of the core.py (if
is_form_encoded...) throws an exception "Request object has no attribute
body". Strangely, this does not occur with direct calls to the linkedin
API. Nonetheless, would you mind a short-circuit hasattr(r, 'body') in the
if statement to prevent this? Thanks!


Reply to this email directly or view it on GitHubhttps://github.com//issues/38
.

@ghallsimpsons
Copy link
Author

Ok, sorry, my search results kept showing the 0.. releases, I didn't notice there was a new major release. Upgrading broke just about everything else, but at least that error is gone =]. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants