Reputation: 31
This may be a very simple question, but I'm getting persistent errors when trying to deploy a basic Python cloud function. I created this in the main.py file.
def hello_http(request):
return 'Success!'
Deployment failure: Function failed on loading user code. This is likely due to a bug in the user code. Error message: Error: please examine your function logs to see the error cause: https://cloud.google.com/functions/docs/monitoring/logging#viewing_logs. Additional troubleshooting documentation can be found at https://cloud.google.com/functions/docs/troubleshooting#logging. Please visit https://cloud.google.com/functions/docs/troubleshooting for in-depth troubleshooting documentation.
Upvotes: 0
Views: 134
Reputation: 31
Found out that Entry Point had to be the same name as the defined function.
Upvotes: 2