Postman : Error: Parse Error: Invalid header value char

everyone. I'm trying to use postman for hitting our prod api, but I get some error:

enter image description here

enter image description here

I did not have that problem two days ago, and I have no idea what is happening. Anyone can advise ?


Solution 1:

It looks like a new Postman build is using a stricter header parsing, which is causing some issues for response headers that are not well formatted.

https://github.com/postmanlabs/postman-app-support/issues/8747

Solution 2:

It's probably related to response header. Try this request in your browser and if it works, look at the response headers in devtools/network to find an invalid character.

In my case request wasn't working in Postman for one specific id. When I looked into response in devtools, I found that there was a double quote inside a double-quoted string header value and I think it caused this error, but I may well be wrong here.

Anyway, try this exact GET request in browser and see if it works there.