-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 causing infinite loop #636
Labels
Comments
This issue has been inactive for 180 days |
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: