-
-
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
ERR_INVALID_REDIRECT when running http-server #525
ERR_INVALID_REDIRECT when running http-server #525
Comments
I feel it may be related to the ecstatic issue earlier today... Could it be possible that the updated version of ecstatic (3.3.2) isn't compatible with http-server? |
What is in the directory you're serving? I'm not getting the same on my Mac |
I'm serving the current directory. I tried with an index.html with an empty body, but I still get ERR_INVALID_REDIRECT. I'm at work so it could possibly be a proxy issue or something. I can try again at home later today to see if I get the same behavior. |
I have the same issue. I'm running http-server on Windows 10, and getting the same error. I updated http-server and ecstatic, but it didn't work. In my case I only have a single html page (index.html). |
Just an idea, but do any of you see the same thing if you use |
I have the same issue with npx http-server-legacy. And I use http-server on a weekly basis I'd say, and I only had this error from a fresh install for http-server. So it was working fine with the latest version in the last weeks, and it stopped working after a clean install today (with the same version). That's why I suspect a dependency issue. |
i have the same issue, both http-server and http-server-legacy, |
I think the issue is somehow related to directories. When I enter A weird thing happens when I request a directory under the root. When I go to
|
I have tried |
I'm having exactly the same error as @captainturtle on windows only. Seems to be working fine on OSX. |
Possibly related to ecstatic issue as mentioned: |
It's definitely ecstatic. I downgraded to 3.0.0 and the issue disappears. |
@bspammer I did the same and solved it too. |
Ahhh this is so annoying. Because of this ecstatic thing, I waited 2 days before my CI gets back up again. Now my dev server is broken. |
Can confirm this bug still exists. |
Confirmed the issue is due to http-server being incompatible ecstatic 3.3.2. Updating http-server's package.json to require ecstatic 3.3.1 fixes http-server for me. |
Getting the same issue. |
Same here, exactly as @captainturtle described it. |
This seems to be caused by jfhbrook/node-ecstatic#260, which is unlikely to ever be fixed. Is anyone seeing this on a non-Windows machine? |
This resolv my problem PS C:\myapp> node --version PS C:\myapp> npm --version PS C:\myapp> npm install -g http-server@0.9.0 |
Just confirmed - same problem and tuxpedro's solution worked for me on Windows (version 0.9.0 of http-server which uses a much earlier ecstatic it looks like). I tried forcing ecstatic to 3.3.1 like mikeycooper, but that did not work for me. |
Same issue. My http-server was using ecstatic 3.0.0 and it was not working. @tuxpedro solution worked |
I've seen this happen to a dozen or so of my web students this week, and it only seems to be on Windows. |
Follow-up from one of my students, who says that using |
Downgrading to http-server 0.9.0 fixed it for me under Windows |
Same issue on Windows. |
Same issue on Windows 10 Insider Preview 18890. |
This comment has been minimized.
This comment has been minimized.
Fixed it for me on Window 10, by updating to latest version of http-server, i.e Notes, was facing issue in |
http-party/http-server#525 The `ecstatic` package has long standing issues on windows. Downgrading should fix this issue. In the future we should dump `http-server` for something that doen't carry so many issues on windows
* fix: Windows `http-server` redirect errors http-party/http-server#525 The `ecstatic` package has long standing issues on windows. Downgrading should fix this issue. In the future we should dump `http-server` for something that doen't carry so many issues on windows * ci: Setup GitHub actions windows testing * fix: Try v0.12.3 of `http-server`
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I've been unable to reproduce this so far, is anyone seeing this same issue with http-server v13.0.0? |
Alternatively, if v13.0.0 still has this problem, would anyone be able to try out the changes in #722? Since I can't reproduce, I can't check to see if that PR fixes this |
Can confirm that 13.0.2 resolved this issue for me (Windows 10.0.19043). Thanks! |
Thank you for checking! I'll wait and see if at least one more person can confirm (since this has been a major issue) before I close this as done and shut down #722 |
You can set to open "scripts": {
"start": "http-server -o http://localhost:8080/index.html"
}, |
Fixes Windows compatibility caused by http-party/http-server#525 And, serve is better maintained than http-server or ecstatic.
Fixes Windows compatibility caused by http-party/http-server#525 And, serve is better maintained than http-server or ecstatic.
i see this has been open for awhile. is there trouble getting a dev to fix this issue? what is blocking this for so long |
Do you want to request a feature or report a bug?
If the issue is a bug report, please provide the steps to reproduce it. Please include the actual command causing the issue if applicable.
npm i -g http-server
http-server
Then open chrome at 127.0.0.1:8080
What did you expect to happen?
Open an empty page
What actually happened? Please include the actual error trace and / or stack trace if applicable.
ERR_INVALID_REDIRECT
If the issue is a feature request, what is the motivation / use case for it?
Tell us about your environment
Tried 0.11 and also the master branch from the github repo
win10
The text was updated successfully, but these errors were encountered: