-
Notifications
You must be signed in to change notification settings - Fork 55
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
Python requests adds params to querystring, where it should be in the body for non-safe HTTP methods (POST/PATCH/DELETE/etc) #342
Comments
Which type of authentication are you using towards the Mollie API? |
We use the 'setup_oauth' method (OAuth2Session authentication). |
Reopened because #361 will be reverted. |
@geertjanvdenbosch I now get error on 3.7.2, but it seems the latest fix is not yet on pypi?
if you need more info I can also dive into it to get the request params, etc. |
Hi @gabn88, How do you pass testmode? |
|
Hi @gabn88, All should be good now! |
Seems to work, thanks! |
Specifications
Describe the issue
See https://github.com/psf/requests/blob/eea3bbf9ac635f465ee6c9903dc57c677952dafd/src/requests/api.py#L19
the params kwargs goes into the query string, whereas the data goes into the body.
I think this is the issue why I get:
When setting testmode to True.
For your reference this is where it goes wrong in the code:
mollie-api-python/mollie/api/client.py
Line 180 in f5464e4
The text was updated successfully, but these errors were encountered: