forwardemail / forwardemail/superagent
Unable to receive response: { [Error: Parse Error] bytesParsed: 0, code: 'HPE_INVALID_CONSTANT', response: undefined }
Open
- Dominant language
- JavaScript
- Stars
- 16.6k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
I have been testing my REST API using jasmine and superagent. I am running my tests while not connected to the internet but connected to the API.
All I am doing is running:
'''
request
.get(http://path)
.end((err, res)=> {
console.log(err, res)
}
'''
and am getting the error:
{ [Error: Parse Error]
bytesParsed: 0,
code: 'HPE_INVALID_CONSTANT',
response: undefined }
undefined
If I run this in the same directory with an html file it woks, if I go to the link on the browser it works, if I do a curl command it works, but if I used webstorm I get this error.
Any advice would be great thanks!!!
Contributor guide
Assessment
This issue has not been assessed yet.