-
Notifications
You must be signed in to change notification settings - Fork 823
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: ECONNREFUSED (Laravel) #38
Comments
It sounds like issue #21. (don't see anything weird in your configuration.) |
Wow thank you so much that actually worked! |
Np. Just remembered someone else bump into a similar issue. But please do update this thread if you found the answer. |
Not sure what the difference is either, but the following also worked for me:
|
Thanks that's help ! |
php artisan serve --host 127.0.0.1 |
Im trying to foward all requests from my Express app that runs on port 4365 to another application that runs on port 9000.
In my case im trying to build a Laravel app that will be used only for api porpuses and angular app that will use that api.
This is the code i use:
Assume i have Laravel app running on port 9000 with api routing valid.
When i run it and open the browser and type in the url: http:\localhost:4365\api\v1\comments i assume to get the json, but it shows me an error: "Error occured while trying to proxy to: localhost:4365/api/v1/comments"
console output:
[HPM] Proxy created: /api -> http://localhost:9000
Express server is listening on Port 4365
[HPM] Proxy error: ECONNREFUSED. localhost -> "localhost:9000/api/v1/comments"
The text was updated successfully, but these errors were encountered: