angular-electron-seed icon indicating copy to clipboard operation
angular-electron-seed copied to clipboard

connect ECONNREFUSED 127.0.0.1:30080

Open StoleMyIceCream opened this issue 7 years ago • 9 comments

I get the following 2 errors when I did npm start (didn't change anything yet):

A JavaScript error occurred in the main process Uncaught Exception: Error: connect ECONNREFUSED 127.0.0.1:30080 at Object.exports._errnoException (util.js:1022:11) at exports._exceptionWithHostPort (util.js:1045:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)

A JavaScript error occurred in the main process Uncaught Exception: Error: socket hang up at createHangUpError (_http_client.js:253:15) at Socket.socketCloseListener (_http_client.js:285:23) at emitOne (events.js:101:20) at Socket.emit (eventsjs:188:7) at TCP._handle.close [as _onclose] (net.js:501:12)

Operating system: Debian Electron: 5.0.4

StoleMyIceCream avatar Jun 28 '17 16:06 StoleMyIceCream

I have the same Issue, I think it's related to an electron-connect library problem. Here will find the issue electron-connect issue If you agree with this idea. Please, vote it.

alejandrocena avatar Jun 28 '17 17:06 alejandrocena

Is this issue duplicated with #6 ?

awmleer avatar Jun 29 '17 04:06 awmleer

The problem is not happening with watch process

arthursp avatar Jun 29 '17 13:06 arthursp

As mentioned, same issue as #6, but I would love for the up-stream project to have a solution for it. Unfortunately with the order of how it bootstraps, I haven't found a good way to resolve this issue within the seed. It's not an "error" as long as you set-up the watch.

I may be able to write a custom task that waits for the app to bootstrap, prior to attempting to connect. But that will be a few weeks out at the earliest.

I'll leave this issue open as it constantly is being re-reported, although the closed issues reference it.

sean-perkins avatar Jun 29 '17 17:06 sean-perkins

Thank you 😀

StoleMyIceCream avatar Jun 29 '17 19:06 StoleMyIceCream

The reason you are seeing this error is - npm start script doesn't seem to be starting electron-connect's server anywhere.

Also, on a different note, it appears npm run watch script seems to be launching electron app twice - first from npm run build.watch (as a result of electron-connect's server) and again from npm run start.electron. There is no need for npm run start.electron at the end of the npm run watch script.

Hope that helps..!!

ssreekanth avatar Jul 28 '17 08:07 ssreekanth

@ssreekanth yup, I have noticed this as well. I guess checking to see if the server is started (then starting it) or just skipping creating the client.

Though, I am getting \node_modules\electron\dist\electron.exe: bad option: -r process when I run npm start watch in my current project which includes PouchDB.

flamusdiu avatar Oct 02 '17 19:10 flamusdiu

@sean-perkins Did the issue fixed or not? I am facing the ECONNREFUSED error while running.

please update me.

abhishekbhalani avatar Oct 13 '17 12:10 abhishekbhalani

same here

abalad avatar Nov 29 '17 13:11 abalad