main.js > all console.log lines prompting error message > Uncaught Exception: Error: write EPIPE at afterWriteDispatched (node:internal/stream_base_commons:160:15) #889

Closed
opened 2026-01-29 16:51:20 +00:00 by claunia · 2 comments
Owner

Originally created by @jdjadav on GitHub (Apr 26, 2023).

Hello There,

We have migrated our electron version from 13 to the latest, but in latest after building our app on Mac we see a popup coming with below error,

Uncaught Exception: Error: write EPIPE
at afterWriteDispatched (node:internal/stream_base_commons:160:15)
at writeGeneric (node:internal/stream_base_commons:151:3)
at Socket._writeGeneric (node:net:917:11)
at Socket._write (node:net:929:8)
at writeOrBuffer (node:internal/streams/writable:392:12)
at _write (node:internal/streams/writable:333:10)
at Writable.write (node:internal/streams/writable:337:10)
at console.value (node:internal/console/constructor:300:16)
at console.log (node:internal/console/constructor:377:26)
at Server. (Contents/Resources/app.asar/main.js:166:13)

Same app is working on windows without any error. App keeps running but this error popup comes 4-5 time.

Note: We are putting electron net app inside our other mac app and opening it through command.

Originally created by @jdjadav on GitHub (Apr 26, 2023). Hello There, We have migrated our electron version from 13 to the latest, but in latest after building our app on Mac we see a popup coming with below error, Uncaught Exception: Error: write EPIPE at afterWriteDispatched (node:internal/stream_base_commons:160:15) at writeGeneric (node:internal/stream_base_commons:151:3) at Socket._writeGeneric (node:net:917:11) at Socket._write (node:net:929:8) at writeOrBuffer (node:internal/streams/writable:392:12) at _write (node:internal/streams/writable:333:10) at Writable.write (node:internal/streams/writable:337:10) at console.value (node:internal/console/constructor:300:16) at console.log (node:internal/console/constructor:377:26) at Server.<anonymous> (Contents/Resources/app.asar/main.js:166:13) Same app is working on windows without any error. App keeps running but this error popup comes 4-5 time. Note: We are putting electron net app inside our other mac app and opening it through command.
claunia added the bug label 2026-01-29 16:51:20 +00:00
Author
Owner

@jdjadav commented on GitHub (Apr 28, 2023):

@GregorBiswanger,
We have fixed this by extracting app.asar file and removed all the console.log() and console.error() line.

just leaving this open for you if this needs to be fixed.

@jdjadav commented on GitHub (Apr 28, 2023): @GregorBiswanger, We have fixed this by extracting app.asar file and removed all the console.log() and console.error() line. just leaving this open for you if this needs to be fixed.
Author
Owner

@FlorianRappl commented on GitHub (Nov 1, 2025):

Outdated - use ElectronNET.Core and ElectronNET.Core.AspNet.

See Wiki / What's New.

@FlorianRappl commented on GitHub (Nov 1, 2025): Outdated - use `ElectronNET.Core` and `ElectronNET.Core.AspNet`. See [Wiki / What's New](https://github.com/ElectronNET/Electron.NET/wiki/What's-New).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#889