http-server
http-server copied to clipboard
Proxy causing infinite loop
Built project into a folder /dist/ui/
cd into /build
run command:
http-server -p 9000 --cors='*' --proxy http://localhost:9000/ui?
I was able to see the app running by navigating to http://localhost:9000/ui. I clicked on a client-side route like http://localhost:9000/ui/reports handled by reach-router. The app served as expected. I hit refresh in the browser. I hoped it would fallback to ui/ and rerender the /reports route (like it does in the webpack-dev-server). Instead I saw
"GET /ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/ui/favicon.ico
in the terminal and
Error: ENAMETOOLONG: name too long, stat '/Users/<name>/path/to/project/dist/ui/ui/ui/ui/ui/ui/ ...
I'm on Mac OS X 10.15.4
http-server v0.12.3
node 10.16.0
This issue has been inactive for 180 days
Possibly the same as #671 and/or #525. Is this still ocurring with http-server v13.0.0?
This issue has been inactive for 180 days
I am having a similar issue with http-server v14.1.1 and node v14.17.5. Post requests are causing infinite redirects and 431 response instead of 405.
CentOS 7
I am having a similar problem with http-server v14.1.0 and node v14.17.5. Post requests are starting infinite redirects.