-
-
Notifications
You must be signed in to change notification settings - Fork 121
Does not work with json-formatted POST-request #3
Comments
Could you try to reproduce it by running the produced curl command manually? curl -sSL --compress -X POST -H "Content-Type: application/json" -d "email=test@test.com" -d "password=test" http://localhost:8000/api/login/ |
I assume you meant --compressed, but it also didn't work. If I print request.body where the request is handled, it is printing this: |
Yes, I'm sorry
Thank you, that information was really useful! It seems that it's a problem of how the body is treated in plenary, instead of rendering it as expected You can see this behavior by yourself here: I'm going to open an issue in plenary. I'll leave this issue open until I find a solution. |
Thank you! |
Hey, I have manually implemented support for using a JSON body as I didn't have a response yet in plenary and I think it would be better not to touch the wrapper source. Could you please try it? 🙂 |
Thank you! This solves my problem |
I'm glad to know it, if you have any other problem, do not hesitate to report it :) |
I am trying to use this to make a POST-request, but it does not work. When the request reaches the server, the body is not valid json, and is not able to be loaded with json.loads. The same thing is working with postman.
I could not manage to find out if it's this plugin or plenary that does not work. (Or if I am just doing it wrong). I managed to get it working with a GET-request.
I am trying with this request:
The text was updated successfully, but these errors were encountered: