I am trying to implement a Google Cloud function that is based on code in a Git style repository. I have the code linked to Google Cloud Platform\'s \"Source Repositories\"
If despite the other answers, you're still not able to make it work, I finally got rid of this error by doing the following:
I hope this helps.