question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Socket Hang up when electron-builder Release on github.

See original GitHub issue
  • Version: 22.6.0

  • Electron Version:8.1.1

  • Electron Type (current, beta, nightly):Current

  • Target: NSIS Windows

My electron-builder.json file for configurations

{
  "appId": "com.screenshot.app",
  "copyright": "Copyright © 2019-Tushar Kanjariya",
  "productName": "Screenshot App",
  "nsis": {
    "perMachine": true,
    "oneClick": false,
    "allowToChangeInstallationDirectory": false,
    "license": "LICENSE.txt",
    "allowElevation": true
  },
  "publish": {
    "provider": "github",
    "owner": "TusharKanjariya",
    "repo": "screenshot-app-electron",
    "token": "my_token"
  }
}

When I run the command npm run publish:github then the following error will occur after the final build and uploading

image

Plz, Help to solve my Issue.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:16
  • Comments:85 (11 by maintainers)

github_iconTop GitHub Comments

5reactions
ocavuecommented, Jun 8, 2022

GitHub’s official actions/upload-artifact seems to resolve this issue by adding retries:

https://github.com/actions/upload-artifact/issues/116#issuecomment-754141048

Should be good now. Retries with exponential back-off have been added to all HTTP calls so any socket disconnects, timeouts, 503s or ECONNRESET errors should gracefully now retry and the artifact upload should go through (previously only a subset of HTTP calls during upload were retried). Recent updates should significantly improve reliability.

5reactions
sheckcommented, Sep 19, 2021

I’m still seeing this on an electron project I work on. When we run parallel windows and Mac builds on GH actions that publishes to GH releases, it seems to fail about 60% of the time with this error.

We’ve since switched to serialized builds and haven’t encountered the issue anymore, but it would be nice to have parallel builds again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: socket hang up · Issue #2047 · request/request - GitHub
I tried to perform simple request: send form data. But when i use request module it always throw "socket hang up". Below simple...
Read more >
Failed to upload due to socket hang up · Issue #69 - GitHub
The error reporting of the upload-release-asset action is insufficient, and could vastly be improved.
Read more >
Electron Release Server - socket hang up · Issue #1033 - GitHub
Electron Release Server - socket hang up #1033 ... An unhandled error has occurred inside Forge: request to https://server-url/api/asset ...
Read more >
upload failed with socket hang up · Issue #44 - GitHub
Hello, we have been using this action for a few weeks and all were fine till now when I observed the following issue:...
Read more >
[bug] socket hang up · Issue #668 · yarnpkg/yarn - GitHub
... and empty node_modules I get socket hang up error on a X package. ... graceful-fs v3.0.0 and before will fail on node...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found