serverless / components

The Serverless Framework's new infrastructure provisioning technology — Build, compose, & deploy serverless apps in seconds...
https://www.serverless.com
Apache License 2.0
2.3k stars 181 forks source link

TLS connection error in proxy mode network #949

Closed yugasun closed 3 years ago

yugasun commented 3 years ago

When I use cli with compony network, sometimes cli will get bellow error:

Error: Client network socket disconnected before secure TLS connection was established
at /usr/local/lib/node_modules/serverless/node_modules/@serverless/utils-china/library/common/abstract_client.js:94:20
at ClientRequest.<anonymous> (/usr/local/lib/node_modules/serverless/node_modules/@serverless/utils-china/library/common/http/http_connection.js:76:7)
at ClientRequest.emit (node:events:378:20)
at TLSSocket.socketErrorListener (node:_http_client:462:9)
at TLSSocket.emit (node:events:378:20)
at emitErrorNT (node:internal/streams/destroy:188:8)
at emitErrorCloseNT (node:internal/streams/destroy:153:3)
at processTicksAndRejections (node:internal/process/task_queues:81:21)