`Cannot read property 'readyState' of null` seems because `now-cli` still gets `missing-files` after upload: https://github.com/zeit/now-cli/blob/11.2.9/src/providers/sh/util/index.js#L301 and https://github.com/zeit/now-cli/blob/11.2.9/src/providers/sh/commands/deploy/deploy.js#L811 and https://github.com/zeit/now-cli/blob/11.2.9/src/providers/sh/commands/deploy/deploy.js#L904
Activity
igorklopov commentedon Jul 13, 2018
Probably due to propagation delay
igorklopov commentedon Jul 13, 2018
I patched the code to simulate second
missing-fileserror. It turns out that indeed npm deployments hit this line https://github.com/zeit/now-cli/blob/11.2.9/src/providers/sh/commands/deploy/deploy.js#L883 and throwCannot read property 'scale' of nullhowever static deployments hit another line https://github.com/zeit/now-cli/blob/11.2.9/src/providers/sh/commands/deploy/deploy.js#L904 and throwCannot read property 'readyState' of nulligorklopov commentedon Jul 13, 2018
We can retry calling deploy after uploading several times while we are receiving
missing_filesthus waiting for propagation to happen.retry createDeploy if files are missing. addresses #1463
retry createDeploy if files are missing. addresses #1463
retry createDeploy if files are missing. addresses #1463 (#1465)
igorklopov commentedon Jul 13, 2018
Fixed
retry createDeploy if files are missing. addresses #1463 (#1465)