I got this error when trying to deploy my function on gcloud functions. The function runs smoothly on my local machine FYI. I've browsed some posts but none have the solution
Asked
Active
Viewed 710 times
1 Answers
0
As mentioned in the similar thread1 and thread2:
For anyone else that had this problem : Removing the .py suffix on the python -m command fixes this problem, it appears -m only requires module names whereas running it directly as a python file (no -m option) requires the .py suffix
To learn more about the path attribute , you can refer to the documentation

Divyani Yadav
- 1,030
- 4
- 9
-
I set the entry point "main" on cloud functions, dunno why it still happens – Chiến Lê Feb 12 '22 at 15:29
-
what's error are you getting? – Divyani Yadav Feb 15 '22 at 08:56