Skip to content

events.js:183 throw er; // Unhandled 'error' event ^ Error: read ECONNRESET at _errnoException (util.js:1024:11) at TCP.onread (net.js:615:25) #2922

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

Closed
nigel-dewar opened this issue Dec 18, 2017 · 20 comments

Comments

@nigel-dewar
Copy link

nigel-dewar commented Dec 18, 2017

Brand new install of Ionic on Windows 10 Pro

npm i ionic cordova -g

versions
Node v 8.9.1
NPM v 5.5.1
Ionic -v 3.19.0
cordova -v 7.1.0

created app with ionic start todo blank

then run
ionic lab

Browser loads, all is fine, then I go to make change to html file and get this error

image

Tried several different versions, like an older version on ionic cli. Doesnt work.

Also tried doing an npm i incase the ionic start thing didnt work. Doesnt work.

I also tried ionic serve. This works but then as soon as you change say your home.html file, boom it breaks.

Is ionic v3 working on Windows ??? Or should I be using a Mac only? Buy the way I dont have a mac. So I cant test.

@nigel-dewar
Copy link
Author

Update, Issue is resolved if use another browser. Just cannot use Google Chrome. Even if close chrome completely, restart and still no go

Using Internet Explorer Edge (the new one) for Windows 10 Pro

@wangjian1119
Copy link

I also met this problem and asked for a solution.

@nigel-dewar
Copy link
Author

nigel-dewar commented Dec 18, 2017

I can confirm that this was the same issue as #2921

And it is now resolved by doing this

npm install ws@3.3.2 --save-dev --save-exact

Thank you to those who found the fixes.

@nigel-dewar
Copy link
Author

nigel-dewar commented Dec 18, 2017

@wangjian1119 , please find the fix listed above. This works

@hiuryoliveira
Copy link

@nigel-dewar You're right!
I did what you said and was able to solve my problem.

@nigel-dewar
Copy link
Author

@hiuryoliveira sweet dude glad it workd for you. :-)

@Riyaz0001
Copy link

@nigel-dewar Thank you, It's work for me.

@danielehrhardt
Copy link

Same here

@izart1994
Copy link

@nigel-dewar Thank you very. Solved one of my problem

@pulamusic
Copy link

@nigel-dewar Your solution didn't work in my case - still getting error 183. I'll keep poking at it.

@PrudiviRaj
Copy link

Thq it Worked for me

@codyburleson
Copy link

I was getting the error just when I hit enter in the Chrome address bar to try to force a reload. npm install ws@3.3.2 --save-dev --save-exact worked for me also.

@jmmaguigad
Copy link

@nigel-dewar just did what you said and it works. Thank you.

@nigel-dewar
Copy link
Author

nigel-dewar commented Jan 11, 2018 via email

@nanirocks125
Copy link

Thank You 👍 👍

@Yogesh1994
Copy link

npm install @ionic/app-scripts@3.1.6 --save -dev worked for me.

@SimonBrazell
Copy link

Installing "ws": "3.3.2" as a dev dependency did not resolve the issue for me.

@nigel-dewar's fix is a workaround, this should not be closed, needs to be addressed with a new release.

@shenbagapandian
Copy link

I am trying to convert speech to text using voice base in nexmo. I have faced the issue in WebSocket client. My response error is: info:
Server listening on:8900 info: A client is connected! events.js:183 throw er; // Unhandled 'error' event Error: This socket is closed at Socket._writeGeneric (net.js:726:18) at Socket._write (net.js:786:8) at doWrite (_stream_writable.js:387:12) at writeOrBuffer (_stream_writable.js:373:5) at Socket.Writable.write (_stream_writable.js:290:11) at Socket.write (net.js:704:40) at WebSocketRequest.accept (/home/apptivo/Music/nexmoVoicebaseSample/Nexmo-RTS-Voicebase-master/WS-node/node_modules/websocket/lib/WebSocketRequest.js:450:21) at WebSocketServer.handleUpgrade (/home/apptivo/Music/nexmoVoicebaseSample/Nexmo-RTS-Voicebase-master/WS-node/node_modules/websocket/lib/WebSocketServer.js:216:19) at emitThree (events.js:141:20) at Server.emit (events.js:217:7)
How to resolved this issue ???``

@vidya47
Copy link

vidya47 commented Feb 14, 2018

npm install @ionic/app-scripts@3.1.6 --save -dev did not work for me. I am still waiting for the solution.

@imhoffd
Copy link
Contributor

imhoffd commented Feb 14, 2018

This is an issue with a very general title, so likely the newer comments have similar but different issues. The ws issue was fixed in 3.1.6 by pinning the version. It continues to be pinned in later releases of app-scripts. Ensure you have the latest with these commands:

npm uninstall ws
npm install @ionic/app-scripts@latest

If you are getting an error, please create a new issue and fill out the issue template. Thanks!

@ionic-team ionic-team locked and limited conversation to collaborators Feb 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests