-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Error: connect ECONNREFUSED and app starts listening #1268
Comments
By looking through the code you defined endpoint |
@denisprsa should I add the following codes on my apiServer?
Whenever I remove the app.get('books') it renders the books list incorrectly. |
It looks like the culprit here is my npm script and nodemon. I have resolved my issue, it turns out that running nodemon with a script of node ./bin/www & apiServer.js only run one server. |
hi @jcjp, |
Sorry I was not able to login for a long time, the fix IIRC was to remove |
My app has a base URL of http://localhost:3000, I created a reverse proxy to send requests to http://localhost:3001 with the following configuration and codes:
When I try to open my base URL, my web page opens up but when it tries to request on '/books' it does not load and returns an error log, as soon as I try to refresh my app it shows an error on my terminal:
After showing the error, my base URL shows an error and when I go to my proxy URL http://localhost:3001/books I could see the books on my browser.
The text was updated successfully, but these errors were encountered: