Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting "TypeError: Cannot read property '4' of null" on deploy #228

Open
AustinGil opened this issue Jul 8, 2020 · 4 comments
Open

Getting "TypeError: Cannot read property '4' of null" on deploy #228

AustinGil opened this issue Jul 8, 2020 · 4 comments
Assignees

Comments

@AustinGil
Copy link

Im using Serverless to deploy some cloud functions to GCP with this plugin, but I keep getting the following error printed to the consols:
TypeError: Cannot read property '4' of null

This error does not prevent the project from being properly deployed, and as a sanity check I even tried running a "hello world" deploy based on the official examples: https://github.com/serverless/examples/tree/master/google-node-simple-http-endpoint

Even with the official example, the error persists.

@medikoo
Copy link
Contributor

medikoo commented Jul 9, 2020

@Stegosource can you share full stack trace of error

@AustinGil
Copy link
Author

Yes, I supposed that would have been helpful:

  TypeError: Cannot read property '4' of null
      at /home/austin/reveal/note-api/node_modules/serverless-google-cloudfunctions/deploy/lib/cleanupDeploymentBucket.js:27:95
      at /home/austin/reveal/note-api/node_modules/lodash/lodash.js:3727:18
      at arrayMap (/home/austin/reveal/note-api/node_modules/lodash/lodash.js:639:23)
      at /home/austin/reveal/note-api/node_modules/lodash/lodash.js:3726:24
      at /home/austin/reveal/note-api/node_modules/lodash/lodash.js:3543:27
      at /home/austin/reveal/note-api/node_modules/lodash/lodash.js:4881:15
      at baseMap (/home/austin/reveal/note-api/node_modules/lodash/lodash.js:3542:7)
      at baseOrderBy (/home/austin/reveal/note-api/node_modules/lodash/lodash.js:3725:20)
      at Function.orderBy (/home/austin/reveal/note-api/node_modules/lodash/lodash.js:9597:14)
      at /home/austin/reveal/note-api/node_modules/serverless-google-cloudfunctions/deploy/lib/cleanupDeploymentBucket.js:24:32
      at processTicksAndRejections (internal/process/task_queues.js:97:5)

andrx added a commit to andrx/serverless-google-cloudfunctions that referenced this issue Jul 9, 2020
@andrx
Copy link

andrx commented Jul 9, 2020

Could be not a proper bugfix as I've seen the code for 10mins but fixed the cleanup issue. need to check why the object without zip showed up.

@pethersonmoreno
Copy link

This problem is solved in this Pull Request:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants