-
Notifications
You must be signed in to change notification settings - Fork 365
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
netlify dev could not connect to target server after long time out #3735
Comments
I assumed netlify-cli was installed locally (and thus up-to-date) but turns out it was a global installation through homebrew. After upgrading (6.9.30 -> 7.1.0) it looks like it's working as expected. |
I have this issue again with all Netlify cli versions I've tried:
Each time gatsby (v3) finishes with:
Then I get after a long pause:
It's possible that gatsby is at fault. Open to ideas on how to debug this dialogue between the two platforms. |
having the exact same problem on node v17.5.0, gatsby 4.11.2 and netlify-cli ^9.13.2 |
Nope, same issue here on SvelteKit. |
Solved the issue for me, having an index.js placeholder in src/pages/ (as i usually only used src/pages/de/ with locale redirect: domain.com/de/)
|
Having the same time out issue with stopping Netlify dev server when 10 or so minutes passed.
whereas my website is accessible on localhost:3000. |
For some reason my problem has been resolved by enabling my VPN service on my computer / switching from on network to the other. It seems unrelated since you're running a localhost server but I thought to mention it here anyway. |
Some of these issues should be fixed now as of version 12.0.2. If it still appears please reopen with an example. |
Describe the bug
The
netlify dev
command correctly starts the gatsby server on port 8000, which is then running correctly.The most common scenario is there is a long pause (>10 minutes) then dev server says it can't connect to port 8000 and exits with an error code of 1. On one occasion it connected correctly (after the same long wait).
At some point a few months ago this was working fine, unsure which dependency/environment/cli change has broken it.
To Reproduce
Steps to reproduce the behavior:
git clone private git repo
netlify dev
Bear with me while I work on this. A discussion about this issue might help me or other people. Not at all easy to reproduce bugs with such complicated systems, e.g. do I need to set up another copy of WordPress for this reproduction? Please, tell me no...
Configuration
netlify.toml
.Expected behavior
Expecting dev server to connect to localhost:8000 shortly after gatsby has finished processing and has opened a port.
CLI Output
Additional context
Is
netlify dev
waiting for some kind of signal/event from the child process to connect, or is it polling on a regular basis?NB the output log above is running with the debugger but it fails in the same way without the debugger.
The text was updated successfully, but these errors were encountered: