Header name must be a valid HTTP token ["{"]
See original GitHub issueI had a previous simple test file that was working I tried to add a couple of requests in the same file but now I just get the error above on any request…
I tried reverting any changes to the .http
file
but still the extension just gives this invalid error each time i try to load a resource.
-
VSCode Version: Version: 1.38.1
-
OS Version: OSX 10.14.6
-
REST Client Version: 0.22.2
Steps to Reproduce:
- make a file with some simple tests like
POST http://localhost:55200/test HTTP/1.1
content-type: application/json
{
"cname": "weile"
}
all will work fine. wait a while. do something? then error occurs:
- try and run click ‘send request’
error message pops up as toast.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:17
- Comments:21 (2 by maintainers)
Top Results From Across the Web
Header name must be a valid HTTP token ["Authorization "] in ...
There should be an empty line break between the header (content-type: application/json) and the request payload/data.
Read more >Header name must be a valid HTTP token - Postman community
I'm using Windows 10 Postman app v7.25.2, to try to hit a 3rd party api that I have no control over. The 3rd...
Read more >Rest-Client header name must be a valid-http-token - YouTube
CoderCrab #RestClient Issue Explanation at 3:29This video will help people to use Rest-Client for their day to day development activity...
Read more >Error: Header name must be a valid HTTP token : r/flask - Reddit
I am new to Flask but when I am using PostMan to call a Python service running on Win10, this is the error...
Read more >postman header name must be a valid http token
postman header name must be a valid http token ... You have to fetch the CSRF Token by making a GET Request: Header:...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
OK looks like the error is:
where as this is OK:
so the extra line is critical. a bit of a pedantic bug…