Netlify Dev constantly throws random socket errors:
It happens at boot at least half the time, then randomly through development. Once it happens once, then it just seems like it’s impossible to get Netlify Dev back on the right track — regardless of number of attempts at kill
.
We’re paying users of Netlify and love it. But the only thing I hear from our dev team is snickering at the finickiness of the CLI. Please, please , can we get a fix!
1 Like
perry
February 25, 2020, 11:35pm
2
hey @DavidChouinard - sorry to hear the dreaded socket bug is affecting you too. We know it is a challenging bug.
If you would please encourage people to watch this issue:
opened 08:48PM - 03 Aug 19 UTC
closed 08:51AM - 22 Jan 21 UTC
dev
<!--
If you are reporting a new issue, make sure that we do not have any duplic… ates
already open. You can ensure this by searching the issue list for this
repository. If there is a duplicate, please close your issue and add a comment
to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to
include the BUG REPORT INFORMATION shown below. If you fail to provide this
information within 7 days, we cannot debug your issue and will close it. We
will, however, reopen it if you later provide the information.
---------------------------------------------------
BUG REPORT INFORMATION
---------------------------------------------------
Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST
-->
**- Do you want to request a *feature* or report a *bug*?**
Bug
**- What is the current behavior?**
At points during development the following error occurs which stops the entire Netlify Dev stack:
```
.../node_modules/netlify-redirector/lib/redirects.js:116
throw ex;
^
Error: socket hang up
at createHangUpError (_http_client.js:323:15)
at Socket.socketCloseListener (_http_client.js:364:25)
at Socket.emit (events.js:194:15)
at TCP._handle.close (net.js:600:12)
```
Looks like it was also reported on the community forum back in April - https://community.netlify.com/t/netlify-dev-regularly-crashes/551
**- If the current behavior is a bug, please provide the steps to reproduce.**
I haven't been able see any common pattern for what causes this.
**- What is the expected behavior?**
Should not crash.
**- Please mention your node.js, and operating system version.**
- Node: `v10.15.1`
- Using `yarn`
- Netlify CLI `2.12.0`
As you can see, our latest comment on this from yesterday that it is our top priority to fix.
We’ll update this thread as soon as we have news, but you are also encouraged to watch that thread & share any additional insight you may have. Thank you for your patience, we totally empathize with how annoying that is.
Thank you. I bet it’s a tricky thing to debug and on behalf of our team, we really appreciate it.
1 Like
perry
February 25, 2020, 11:48pm
4
you bet. we want people to have a better experience than they’re currently having, for sure!
Any update on this “#1 priority”?
perry
March 4, 2020, 8:09pm
7
hey there, seems like we are releasing a fix very soon.
opened 08:48PM - 03 Aug 19 UTC
closed 08:51AM - 22 Jan 21 UTC
dev
<!--
If you are reporting a new issue, make sure that we do not have any duplic… ates
already open. You can ensure this by searching the issue list for this
repository. If there is a duplicate, please close your issue and add a comment
to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to
include the BUG REPORT INFORMATION shown below. If you fail to provide this
information within 7 days, we cannot debug your issue and will close it. We
will, however, reopen it if you later provide the information.
---------------------------------------------------
BUG REPORT INFORMATION
---------------------------------------------------
Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST
-->
**- Do you want to request a *feature* or report a *bug*?**
Bug
**- What is the current behavior?**
At points during development the following error occurs which stops the entire Netlify Dev stack:
```
.../node_modules/netlify-redirector/lib/redirects.js:116
throw ex;
^
Error: socket hang up
at createHangUpError (_http_client.js:323:15)
at Socket.socketCloseListener (_http_client.js:364:25)
at Socket.emit (events.js:194:15)
at TCP._handle.close (net.js:600:12)
```
Looks like it was also reported on the community forum back in April - https://community.netlify.com/t/netlify-dev-regularly-crashes/551
**- If the current behavior is a bug, please provide the steps to reproduce.**
I haven't been able see any common pattern for what causes this.
**- What is the expected behavior?**
Should not crash.
**- Please mention your node.js, and operating system version.**
- Node: `v10.15.1`
- Using `yarn`
- Netlify CLI `2.12.0`
Woah! Very very exciting. Thank you
1 Like