serverless icon indicating copy to clipboard operation
serverless copied to clipboard

feat: support custom timeout option when downloading templates #11224

Open techbirds opened this issue 2 years ago • 4 comments

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

techbirds avatar Jul 29 '22 09:07 techbirds

@pgrzesik Do you have time to help review?

techbirds avatar Aug 01 '22 01:08 techbirds

Hey @techbirds, maybe @mnapoli or @medikoo will be able to help out

pgrzesik avatar Aug 03 '22 09:08 pgrzesik

Hey @techbirds, maybe @mnapoli or @medikoo will be able to help out

thanks. @mnapoli Do you have time to help review?

techbirds avatar Aug 03 '22 11:08 techbirds

I'm sorry @techbirds unfortunately at this time we don't have the bandwidth to review this PR :/

mnapoli avatar Aug 04 '22 12:08 mnapoli