Error: CURL failure: Failure when receiving data from the peer...
See original GitHub issue- OS: macOS
v10.13.6
- Version:
electron-builder@20.39.0
- Target: windows “portable”
hey there 👋
i’ve been able to build just fine up until today - as of this morning, i’m hitting:
Failure when receiving data from the peer
authenticode timestamping failed
CURL failure: Failure when receiving data from the peer
authenticode timestamping failed
it occurs when building and signing the windows portable .exe
my config:
"build": {
"productName": "Test App",
"artifactName": "TestApp.${ext}",
"appId": "io.myapptest.test",
"files": [
"./src/**/*",
"./build/**/*"
],
"directories": {
"app": "./",
"output": "./dist",
"buildResources": "./build"
},
"appImage": {
"systemIntegration": "doNotAsk"
},
"mac": {
"target": "zip",
"category": "public.app-category.developer-tools",
"icon": "./src/assets/app.icns",
"minimumSystemVersion": "10.12.0"
},
"win": {
"target": "portable",
"icon": "./src/assets/app.ico"
},
"linux": {
"target": "AppImage",
"category": "Utility"
}
}
Full Error Log
Error: Exit code: 255. Command failed: /Users/me/Library/Caches/electron-builder/winCodeSign/winCodeSign-2.4.0/darwin/10.12/osslsigncode -in /Users/me/code/test-app/dist/win-unpacked/Test App.exe -out /Users/me/code/test-app/dist/win-unpacked/Test App-signed-sha1.exe -t http://timestamp.verisign.com/scripts/timstamp.dll -pkcs12 /Users/me/code/test-app/src/my-cert.p12 -h sha1 -n Test App -pass <omitted> (sha256 hash) failure: Failure when receiving data from the peer
authenticode timestamping failed
Failed
CURL failure: Failure when receiving data from the peer
authenticode timestamping failed
Failed
at /Users/me/code/test-app/node_modules/builder-util/src/util.ts:126:16
at ChildProcess.exithandler (child_process.js:288:5)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:915:16)
at Socket.stream.socket.on (internal/child_process.js:336:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:561:12)
From previous event:
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
From previous event:
at _doSign (/Users/me/code/test-app/node_modules/app-builder-lib/out/codeSign/windowsCodeSign.js:288:18)
at doSign (/Users/me/code/test-app/node_modules/app-builder-lib/out/codeSign/windowsCodeSign.js:236:18)
at defaultExecutor (/Users/me/code/test-app/node_modules/app-builder-lib/src/codeSign/windowsCodeSign.ts:59:12)
at /Users/me/code/test-app/node_modules/app-builder-lib/src/codeSign/windowsCodeSign.ts:66:11
at Generator.next (<anonymous>)
From previous event:
at _sign (/Users/me/code/test-app/node_modules/app-builder-lib/out/codeSign/windowsCodeSign.js:160:16)
at sign (/Users/me/code/test-app/node_modules/app-builder-lib/out/codeSign/windowsCodeSign.js:121:16)
at /Users/me/code/test-app/node_modules/app-builder-lib/src/winPackager.ts:245:15
at Generator.next (<anonymous>)
From previous event:
at WinPackager.doSign (/Users/me/code/test-app/node_modules/app-builder-lib/src/winPackager.ts:242:51)
at /Users/me/code/test-app/node_modules/app-builder-lib/src/winPackager.ts:233:16
From previous event:
at WinPackager.sign (/Users/me/code/test-app/node_modules/app-builder-lib/src/winPackager.ts:193:53)
at /Users/me/code/test-app/node_modules/app-builder-lib/src/winPackager.ts:327:16
at Generator.next (<anonymous>)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
From previous event:
at WinPackager.signAndEditResources (/Users/me/code/test-app/node_modules/app-builder-lib/src/winPackager.ts:260:158)
at _bluebirdLst.default.map.file (/Users/me/code/test-app/node_modules/app-builder-lib/src/winPackager.ts:363:21)
at go$readdir$cb (/Users/me/code/test-app/node_modules/graceful-fs/graceful-fs.js:149:14)
at FSReqWrap.oncomplete (fs.js:135:15)
From previous event:
at /Users/me/code/test-app/node_modules/app-builder-lib/src/winPackager.ts:361:27
at Generator.next (<anonymous>)
From previous event:
at WinPackager.signApp (/Users/me/code/test-app/node_modules/app-builder-lib/src/winPackager.ts:355:73)
at /Users/me/code/test-app/node_modules/app-builder-lib/src/platformPackager.ts:250:16
From previous event:
at WinPackager.doPack (/Users/me/code/test-app/node_modules/app-builder-lib/src/platformPackager.ts:167:165)
at /Users/me/code/test-app/node_modules/app-builder-lib/src/platformPackager.ts:113:16
at Generator.next (<anonymous>)
From previous event:
at WinPackager.pack (/Users/me/code/test-app/node_modules/app-builder-lib/src/platformPackager.ts:111:95)
at /Users/me/code/test-app/node_modules/app-builder-lib/src/packager.ts:430:24
From previous event:
at Packager.doBuild (/Users/me/code/test-app/node_modules/app-builder-lib/src/packager.ts:396:24)
at /Users/me/code/test-app/node_modules/app-builder-lib/src/packager.ts:366:57
From previous event:
at Packager._build (/Users/me/code/test-app/node_modules/app-builder-lib/src/packager.ts:335:133)
at /Users/me/code/test-app/node_modules/app-builder-lib/src/packager.ts:331:23
at Generator.next (<anonymous>)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
From previous event:
at Packager.build (/Users/me/code/test-app/node_modules/app-builder-lib/src/packager.ts:288:14)
at build (/Users/me/code/test-app/node_modules/app-builder-lib/src/index.ts:59:28)
at build (/Users/me/code/test-app/node_modules/electron-builder/src/builder.ts:228:10)
at then (/Users/me/code/test-app/node_modules/electron-builder/src/cli/cli.ts:46:19)
at <anonymous>
• building embedded block map file=dist/TestApp.zip
fwiw, when i try:
curl http://timestamp.verisign.com/scripts/timstamp.dll
i get curl: (56) Recv failure: Connection reset by peer
but 🤷♂️
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:12 (1 by maintainers)
Top Results From Across the Web
curl: (56) Failure when receiving data from the peer
cURl error 56 can have different reason like: Passing data to be uploaded in URL itself instead of POST request; Probably Proxy blocking...
Read more >cURL issue 56: Failure when receiving data from the peer
This error means there's an error on the hosts' side. It could be a server-side restriction or a loopback error on the server....
Read more >curl: (56) Failure when receiving data from the peer ... - GitHub
The issue is with the libCurl default behavior when running as a standard user Vs when running as a System user.
Read more >[] cURL error 56: Failure when receiving data from the peer
Passing data to be uploaded in URL itself instead of POST request · Probably Proxy blocking the request to the server. · In...
Read more >Failure when receiving data from the peer (56)
url_response probe error - curl_easy_perform - Failure when receiving data from the peer (56) · Article ID: 138730 · Updated On: 25-08-2022 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@stevenrombauts shortly after posting, the issue resolved itself - i chalked it up to an unreliable 3rd party. i just tried my build and it seems the
http://timestamp.verisign.com/scripts/timstamp.dll
endpoint is down againFixed in 21.