download fails due to 500 error
youknowone opened this issue · 5 comments
Download the installer.
Downloaded 0K out of NaNK (0%)
Downloaded 0K out of 0K (100%)
Downloaded 0K out of NaNK (0%)
Downloaded 0K out of 0K (100%)
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^
HTTPError: Response code 500 (Internal Server Error)
at Request._onResponseBase (/home/runner/work/_actions/wasmerio/setup-wasmer/v2/dist/index.js:1:103623)
at Request._onResponse (/home/runner/work/_actions/wasmerio/setup-wasmer/v2/dist/index.js:1:104056)
at ClientRequest.<anonymous> (/home/runner/work/_actions/wasmerio/setup-wasmer/v2/dist/index.js:1:104276)
at Object.onceWrapper (node:events:6[28](https://github.com/RustPython/RustPython/actions/runs/5985643042/job/16238432038?pr=5044#step:5:29):26)
at ClientRequest.emit (node:events:525:35)
at ClientRequest.e.emit (/home/runner/work/_actions/wasmerio/setup-wasmer/v2/dist/index.js:1:38646)
at HTTPParser.parserOnIncomingClient (node:_http_client:693:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
at Socket.socketOnData (node:_http_client:534:22)
at Socket.emit (node:events:513:28) {
code: undefined,
timings: {
start: 169[30](https://github.com/RustPython/RustPython/actions/runs/5985643042/job/16238432038?pr=5044#step:5:31)67888719,
socket: 1693067888719,
lookup: 1693067888720,
connect: 1693067888728,
secureConnect: undefined,
upload: 1693067888728,
response: 16930679[34](https://github.com/RustPython/RustPython/actions/runs/5985643042/job/16238432038?pr=5044#step:5:35)577,
end: 1693067934616,
error: undefined,
abort: 1693067934618,
phases: {
wait: 0,
dns: 1,
tcp: 8,
tls: undefined,
request: 0,
firstByte: 45849,
download: [39](https://github.com/RustPython/RustPython/actions/runs/5985643042/job/16238432038?pr=5044#step:5:40),
total: [45](https://github.com/RustPython/RustPython/actions/runs/5985643042/job/16238432038?pr=5044#step:5:46)899
}
}
}
@youknowone I've verified that this still happens. I've noticed that rerunning the CI "fixes" the issue, so its a transient error.
So I think a quick fix would be to add a retry functionality. I'll add "Find a hot-fix for issue #9" to my todo list.
When I submitted the issue, it was failing at least a few days. I thought the download URL was changed.
Yeah sorry, the flakiness is due to instability with Wasmer Edge (the hosting provider for https://get.wasmer.io and https://win.wasmer.io). The PR to add retries is ready for review if you wanna take a look #10.
I also took the liberty of cleaning up the CI a bit while I was at it.
@youknowone PR #10 fixed this issue. I am going to close this, but feel free to reopen if you still face the same issue.
version 3.1 of the action has the changes.
Thank you so much!