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

Server crashes when restarting proxied API server #24

Open
phillipskevin opened this issue Mar 15, 2017 · 3 comments
Open

Server crashes when restarting proxied API server #24

phillipskevin opened this issue Mar 15, 2017 · 3 comments

Comments

@phillipskevin
Copy link
Contributor

When using --proxy for an API server, done-serve crashes when the API server is restarted:

done-serve --develop --port 8080 --proxy http://localhost:3030

...

/path/to/app/node_modules/http-proxy/lib/http-proxy/index.js:119
    throw err;
    ^

Error: connect ECONNREFUSED 127.0.0.1:3030
    at Object.exports._errnoException (util.js:1022:11)
    at exports._exceptionWithHostPort (util.js:1045:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)

It's very annoying to have to restart done-serve every time the API server is restarted. We should try to handle this if possible.

@phillipskevin
Copy link
Contributor Author

This is with [email protected].

@phillipskevin
Copy link
Contributor Author

Also, the live-reload server doesn't crash, so restarting done-serve cannot restart live-reload:

done-serve --develop --port 8080 --proxy http://localhost:3030

done-serve starting on http://localhost:8080
Can not start live-reload on port 8012.
Another application is already using it.

@Mrfuture1
Copy link

Is the problem solved?

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

2 participants