website icon indicating copy to clipboard operation
website copied to clipboard

TypeError: Cannot read property 'ping' of null

Open darbio opened this issue 4 years ago • 2 comments

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 avatar Feb 20 '21 10:02 darbio

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

darbio avatar Apr 21 '21 09:04 darbio

I also have this same issue.

EyeDreamt avatar May 11 '21 23:05 EyeDreamt