serverless-components / website

:zap: Instantly deploy static website on serverless infrastructure with zero configuration using Serverless Components.
https://serverless.com
Apache License 2.0
155 stars 49 forks source link

TypeError: Cannot read property 'ping' of null #78

Open darbio opened 3 years ago

darbio commented 3 years ago

I don't know if this is the right place for this - the error looks like it's in platform-client - but that is a private repo.

I get this intermittent error when I deploy from CI/CD environment:

Build step: serverless deploy --stage dev --region us-east-1 --force --org darbio --app tsz-next --debug
Initializing...
Action: "deploy" - Stage: "dev" - Org: "darbio" - App: "tsz-next" - Name: "frontend"
Deploying...
/var/lang/lib/node_modules/serverless/node_modules/@serverless/platform-client/src/Connection.js:114
            this.connection.ping();
                            ^
TypeError: Cannot read property 'ping' of null
    at Timeout.pingInterval.setInterval [as _onTimeout] (/var/lang/lib/node_modules/serverless/node_modules/@serverless/platform-client/src/Connection.js:114:29)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
Build step failed: serverless deploy --stage dev --region us-east-1 --force --org darbio --app tsz-next --debug

I think there is a bug in platform-client when the connection times out.

darbio commented 3 years ago

Bump. I'm still getting this. Anyone have any pointers?

EyeDreamt commented 3 years ago

I also have this same issue.