-
Notifications
You must be signed in to change notification settings - Fork 839
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
Getting "Error: Parse Error: Invalid header value char" In Postman #8747
Comments
I am seeing this error also - starting with 7.27.1 - Win 64-bit. It works with previous version of Postman - making calls to same environment. I have tried 7.7.3 & 6.3.0 (auto upgraded to 6.7.? & still worked). A co-worker had 7.27.0 & that worked too, but as soon as they restarted & upgraded to 7.27.1 - it started failing. 7.27.1 is failing in 4 of our 6 environments. The console is no help as it won't display the pure raw response - just that there was a header parse failure. I cannot determine the failing character using CURL -i & looking for invalid data. |
A lot of people are having this problem where I work and here It´s blocked download old versions :S |
@reedbapex Thank You for the quick response. We have been breaking our heads over what was wrong. We went back to the previous versions and it works. 7.18.0 and 7.20.1 versions are currently working. |
@rodrigodesp That is frustrating. I hope your company does something about that :D |
we have the same problem any news on this? |
I believe the issue is this: nodejs/node#27711 TL;DR new node response parser is very strict with regard to header validity and many services inject invalid headers intentionally, leading to these issues. Later Postman versions must have come with an upgraded underlying node version. What we need from Postman is the ability to set the "insecure" override option on the http parser. |
@arunasindhu19 and others, Can you share the reproduction steps to the issue? |
|
Creating a |
The NODE_OPTIONS environment variable from viananicola temporary resolution works for me too. EDIT - the NODE_OPTIONS environment variable set system wide broke MS Teams - it doesn't like having the --http-parser NODE_OPTIONS set. I had to set the environment variable when launching PostMan only. |
Can someone provide a little more details as to how to use this variable? Where to set it or how to reference it? |
It will depend on you operating system & recommend the following instructions. Win10 - https://www.architectryan.com/2018/08/31/how-to-change-environment-variables-on-windows-10/ For win10 - to launch with environment variable just for Postman, I modified the shortcut properties used to launch... C:\Windows\System32\cmd.exe /c "SET NODE_OPTIONS=--http-parser=legacy&C:\Users<user>\AppData\Local\Postman\Postman.exe" |
This worked for me. If you set this environment variable in your shell and then launch the app from that same shell, the issue is resolved. For example on mac: This in your Then you can launch postman like this (change path to wherever your postman is installed): |
Just wanted to drop a quick update here for everyone. We have this currently in our backlog to be resolved, thankfully it looks like we have the workaround listed above for those that are impacted by this. |
There are relatively stable work-arounds listed above in the Jul-29 - Sept-16 comments. The Postman team has not addressed it as of 7.36. |
Is there any update? If this issue is resolved for someone? |
is there solution for this issue? Also encounter this on postman version 7.36.0 |
This issue came up. Turned out that the incoming response header from the api endpoint contained conflicting HTTP version declarations: I was able to identify the problem by using |
I upgraded to Node v15.5.0 x64 today. With Postman v7.36.1 it started giving same issue. |
My understanding is that above workaround doesn't work after Node 12. It's a node parser caused issue with some of the anti-DOS software solutions - or if the API is returning bad data in the headers. |
@reedbapex : Is Postman Dependent on NodeJS ? |
How in the WORLD has this not been addressed in over a year? What Postman replacement is out there with which I can invoke a basic GET request? |
@mhartzell-incomm as a chinese develper , I use postwoman instead, you can try , https://chrome.google.com/webstore/detail/postwoman-http%E6%8E%A5%E5%8F%A3%E8%B0%83%E8%AF%95%E6%8F%92%E4%BB%B6/ieoejemkppmjcdfbnfphhpbfmallhfnc |
v9.2.0 on Ubuntu with or without the NODE_OPTIONS setting is currently breaking the same way. For this example Postman is unusable and there is nothing output from Postman to indicate which header Postman considers invalid. |
In my case, saving newly entered environment variables then restarting Postman did the trick. Seems the "Save" feature has a bug. |
It seems that 9.3.1 on Windows is also not working with or without a NODE_OPTIONS settings in the environment variables |
I'm on Postman v9.5.0 and I'm running into the same issue since yesterday.
It's crazy that this is still an issue which others were reporting over a year ago. I cannot even inspect the faulty headers in Postman, the only information is "There seems to be an invalid character in the response header value". |
Postman v9.7.1 meet the same issue. Finally I fix it by other way. Attention: Do not set the NODE_OPTIONS in environment variable for system or postman. If it not works for you, please remove it. Otherwise, it may cause your normal request to meet "Parse Error: There seems to be an invalid character in the response header value". I fix it by disable some postman config. I am not sure which one have effect(maybe proxy). Here is my setting. I turn on the "Send no-cache header", turn off the "SSL certificate verification" and off "Send Postman Token header" in the General tag. I turn off the "CA certificates" in Certificates tag. I click off the "Use the system proxy" in Proxy tag. |
Please see my new comment. It maybe helpful. |
You can use See here |
this issue was reported at 7.27.1 now its 9.14.11 and still facing the same issue |
same for me ... stil the same problem, I have not found a workaround |
1 similar comment
same for me ... stil the same problem, I have not found a workaround |
same here |
so which header is invalid exactly |
do we any update |
waiting for a solution :| |
And here as well. :-( |
When using Imperva, the Issue was caused by a server classification cookie coontaining invalid characters for some HTTP parsers. Disabling this cookie solved the issue for me. |
I meet this issue. But I think this issue is don'n releated postman. |
Hello, we've fixed this issue with v10.6.x. Please update your app for these changes. |
You are up to date! and still facing same issue. @giridharvc7 |
@imhamzaaslam Can you share some more details on this? |
I have updated to v10.10.6 but still facing the same issue. |
Describe the bug
When I try to call a resource I am seeing "Error: Parse Error: Invalid header value char" in the Response.
To Reproduce
N/A
Expected behavior
I should be able to get a response back with 200 OK.
Screenshots
App information (please complete the following information):
Additional Information:
I am seeing this issue only with One QA Environment. And the rest of the environments it works fine without changing any values in the header.
The text was updated successfully, but these errors were encountered: