Skip to content
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

Proxy error: HPE_INVALID_STATUS #113

Open
danielcrisp opened this issue Aug 19, 2015 · 2 comments
Open

Proxy error: HPE_INVALID_STATUS #113

danielcrisp opened this issue Aug 19, 2015 · 2 comments

Comments

@danielcrisp
Copy link

I use grunt to start a local express server when I'm developing front end templates. Typically I'll be developing the templates and also the mock API endpoints I require for my web app.

My web app is started on port 9000 and my API server is on port 9001. The proxy allows me to access the API through port 9000 when I need to support browsers that can't use CORS.

I have just set up the marvellous Flow.js and implemented this example within my API server: https://github.com/flowjs/flow.js/tree/master/samples/Node.js

Unfortunately I am seeing the Proxy error: HPE_INVALID_STATUS error in Terminal when I try to upload a file.

If I disable grunt-connect-proxy and access the endpoint on port 9001 everything works great.

So although I don't think this is a bug with grunt-connect-proxy perhaps you could point me in the right direction as to what it means and how I might fix it!

@haugthom
Copy link

haugthom commented Oct 1, 2015

+1

@jeroenvollenbrock
Copy link

I'm replying to this topic because of it high search-rank when you search for this error.
This error may occur when you're passing an invalid status code with the HTTP response from within nodeJS without checking for a valid status code, for instance an object instead of a number (I've seen a lot of HTTP/1.1 [Object object] responses pass by when i was helping someone to debug this behaviour)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants