-
Notifications
You must be signed in to change notification settings - Fork 33
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
Broken with update of python-requests #42
Comments
Yeah they removed the pre_request event. Not sure how it can work otherwise. Update requirements requests==0.14.2. |
The author off requests created request-oauthlib that uses oauthlib. I haven't look how they did it there but maybe there is inspiration t take. |
hey guys, i figured how to use the current version of requests... here's some sample code. Hope this helps someone! OAuthHook.consumer_key = consumer_key request = requests.Request('POST', url, data=parameters, files=files) |
An update of requests seems to have broken the package. The most notably is the creation of sessions where it used to work with
request.session(hooks=...)
. The current version of requests does not accept any arguments for the constructor. I don't know exactly when it happened as I haven't used the package for some time.However I guess there is more problems because moving the hooks parameter outside the constructor does not fix the problem. It seems that the parameters used in the
hooks
are not sent with the request. The test suite fails for 9 of the 13 Twitter tests (haven't tested for other networks).Version of python-requests used : 1.0.3-1
The text was updated successfully, but these errors were encountered: