forwardemail / forwardemail/superagent

Unable to receive response: { [Error: Parse Error] bytesParsed: 0, code: 'HPE_INVALID_CONSTANT', response: undefined }

Open
#992 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.