-
Notifications
You must be signed in to change notification settings - Fork 855
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
Import > Paste Raw Text cURL --data-raw not import to bodyraw #7895
Comments
Yeah, we have noticed that as well :( |
Seeing the same on Version 7.15.0 w/ OS X 18.7.0 / x64 |
any suggestions? |
I see the same issue in version 7.16.0, app for Windows OS x64 |
It's really sad that the code generator, since their big update, changed to use |
Same problem happening to me. Same problem reported in #7983 |
Same issue happening to me on OS 10.15.3 |
@wrssmi Thanks for reporting this issue. We are soon going to release a fix for this. Will keep you updated here. |
Remove -raw which is after --data [--data |
Remove -raw which is after --data [--data |
@shreys7 On which version is this issue fixed? I am still facing this issue in version v7.21.0. Postman for Linux |
Hello everyone, we have added the fix for this issue and it will be released with the next Postman App version - 7.22, planned on 8th April. |
Is this fixed ? i did a code generate and it still does --data-raw |
@RajatBanerjee Did you get the 7.22 version of the app yet? It is currently being rolled out to users. If you haven't, please wait until you get the update and then try again. If you have received it and it's still not working, please let us know. |
Hey @RajatBanerjee , the issue wasn't the code generator generating a |
Got it @shreys7 . So the issue i am talking about is that considered a bug? |
@RajatBanerjee The unsuccessful import of body in cURL request with --data-raw flag was the only bug, which has been fixed with the latest release of App, 7.22 |
instead of --data-row use --data-binary will work |
the bug is stiil here in chrome Version 88.0.4324.190 (Official Build) (64-bit) |
Hey @kasumiru! You can download the latest version of the native Postman apps or try out the Web version here: https://www.postman.com/downloads Do try this out in one of the latest apps and let us know if you are still facing this. |
Hey folks, I updated my Postman to the last version and it seems that this problem remains, I tried to change the params like suggested in the post but also didn't work I'm using Version 8.0.7 (8.0.7) (Mac) |
Issue is still occurring for me, Postman for Windows version 8.3.0. |
@temamagic @gregtuc Can you provide more information on what you're seeing? I've just given it a try on the latest version on Windows and the import works fine. |
@arlemi Hi, sure! In my case, I'll take request from Chrome and expect to see Form Data values Chrome copy as curl return like this:
I think that problem is in content-Type: multipart/form-data, cuz my request is a simple post with form data values and expect to see form data parsed, not raw json body |
Just checked, curl request copied from Charles proxy doesn't parsed properly too Maybe I was wrong with issue? Anyway, Postman should learn how to parse multipart form data values from curl :) |
For the generated curl command, how to get rid of the string It is annoying as everytime I have to copy paste command to another editor and change text from |
Still have problems, version 9.0.2.
and got no body parsed |
@tsundara Issue related to code snippet generation having @Spaum145 We've identified the issue with formdata request you shared and will be working on a fix. I'll update here once fix is out. |
We've fixed the issues with cURL not able to import Multipart / formdata bodies correctly with the latest Postman App v10.13. Do let us know if you're facing further issues with it. |
Body - raw not filled with data after import
To Reproduce
Steps to reproduce the behavior:
curl --location --request POST "https://sample.com" --header "Content-Type: application/json" --data-raw "{ \"details\": { \"id\": \"11\", \"sample\": { \"name\": \"ankit\" } } }"
Expected behavior
Should be the same as with that curl (see Screenshot)
curl --location --request POST "https://sample.com" --header "Content-Type: application/json" --data "{ \"details\": { \"id\": \"11\", \"sample\": { \"name\": \"ankit\" } } }"
Screenshots
![image](https://user-images.githubusercontent.com/1664017/72058407-5478a300-32d0-11ea-802d-414b6bc1c327.png)
Successfull with -data
Not Successfull with -data-raw
![image](https://user-images.githubusercontent.com/1664017/72058516-838f1480-32d0-11ea-89b6-b90d331a4eec.png)
App information (please complete the following information):
Context
Generate Code Snippet creats --data-raw
The text was updated successfully, but these errors were encountered: