postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.87k stars 841 forks source link

After importing a curl, Postman is bricked. "Something went wrong" - even after restart #11908

Closed RonSijm closed 1 year ago

RonSijm commented 1 year ago

Is there an existing issue for this?

Describe the Issue

I already posted this on the community forum, but figured to crosspost it here, if this is where you're keeping track of bugs:

https://community.postman.com/t/postman-crashes-at-startup-and-cannot-get-it-to-un-crash-without-losing-all-my-collections/46204

Steps To Reproduce

curl --request POST \
  --url 'https://x' \
  --header 'Authorization: Basic x' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'grant_type=client_credentials&scope=x' | jq

Note: maybe not everything is relevant in this cUrl, I don't know exactly why it's crashing, but after is crashes all that's available is a screen saying "Something went wrong".

Deleting %appdata%\postman solves it, but I don't want to delete all my postman settings and collections

Screenshots or Videos

No response

Operating System

Windows 11

Postman Version

10.12.13

Postman Platform

Postman App

User Account Type

Signed In User

Additional Context?

Postman for Windows Version 10.12.13 UI Version 10.12.13-ui-230411-0412 Desktop Platform Version 10.12.13 Architecture x64 OS Platform win32 10.0.22621

Edit: I assume there is something wrong with the curl itself, (a colleague send it to me) - but expected behavior would be for postman to throw an error about it - or only import the parts that it can import.
Not totally brick itself

VShingala commented 1 year ago

@RonSijm Thanks for reporting the issue! We were able to reproduce this issue and we're working on fixing it. We should have the fix ready for this with the upcoming release. I'll add more info here once the fix is available.

RonSijm commented 1 year ago

Thanks. After some testing I was also able to fix it myself by deleting %appdata%\Postman\window

That allowed me back into postman.

arlemi commented 1 year ago

This was fixed in the latest version of Postman (v10.13), please update the app and let us know if you're still seeing the issue!

cesarvspr commented 2 months ago

When I paste a curl request (a small one) postman freezes. 11.12.0

image
DSchau commented 2 months ago

@cesarvspr can you provide a reproduction? Specifically what would help is the exact cURL command you're using that causes the issue to replicate.

If there's sensitive details you can feel free to obfuscate them or try and share something that replicates the issue that is less sensitive.

cesarvspr commented 2 months ago

@DSchau For some reason it's working again. But it was breaking for literary every curl, even the smaller ones. Maybe it was a local issue.