serverless
serverless copied to clipboard
feat: support custom timeout option when downloading templates #11224
When server create
encounters the problem of downloading template timeout, you can avoid it by customizing the timeout setting.
Error:
RequestError: Timeout awaiting 'request' for 30000ms
at ClientRequest.<anonymous> (/Users/TechBirds/code/hundsun/severless/sc/serverless/node_modules/got/dist/source/core/index.js:970:65)
at Object.onceWrapper (node:events:640:26)
at ClientRequest.emit (node:events:532:35)
at ClientRequest.emit (node:domain:475:12)
at ClientRequest.origin.emit (/Users/TechBirds/code/hundsun/severless/sc/serverless/node_modules/@szmarczak/http-timer/dist/source/index.js:43:20)
at TLSSocket.socketErrorListener (node:_http_client:442:9)
at TLSSocket.emit (node:events:520:28)
at TLSSocket.emit (node:domain:475:12)
at emitErrorNT (node:internal/streams/destroy:157:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
at Timeout.timeoutHandler [as _onTimeout] (/Users/TechBirds/code/h
use case :
serverless create --template knative-docker --path my-service2 --debug="*" --timeout 60000
Closes: #11224
@pgrzesik Do you have time to help review?
Hey @techbirds, maybe @mnapoli or @medikoo will be able to help out
Hey @techbirds, maybe @mnapoli or @medikoo will be able to help out
thanks. @mnapoli Do you have time to help review?
I'm sorry @techbirds unfortunately at this time we don't have the bandwidth to review this PR :/