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

Proxy causing infinite loop #636

Open
ronnross opened this issue Jun 25, 2020 · 5 comments
Open

Proxy causing infinite loop #636

ronnross opened this issue Jun 25, 2020 · 5 comments
Labels

Comments

@ronnross
Copy link

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

@github-actions
Copy link

This issue has been inactive for 180 days

@github-actions github-actions bot added the stale label Aug 17, 2021
@thornjad
Copy link
Member

Possibly the same as #671 and/or #525. Is this still ocurring with http-server v13.0.0?

@github-actions github-actions bot removed the stale label Aug 18, 2021
@github-actions
Copy link

This issue has been inactive for 180 days

@github-actions github-actions bot added the stale label Feb 15, 2022
@AlexPetrova
Copy link

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.

@ti129
Copy link

ti129 commented Sep 15, 2023

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.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants