You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deployment failure: Function failed on loading user code. Error message: Node.js module defined by file index.js is expected to export function named helloPubSub #1340
Hey, i am trying to create a cloud function in GCP with the Console:
Unfortunately, I am getting an error after creating the cloud function:
Deployment failure:
Function failed on loading user code. Error message: Node.js module defined by file index.js is expected to export function named helloPubSub
Nevertheless, if I get the files with git then I could successfully create cloud functions with the commands: gcloud pubsub topics create start-instance-event gcloud pubsub topics create stop-instance-event
It seems that before the start- and stop-function were splitted and now are parsed into one?
So it means that I still have to create 2 cloud functions?
It might make sense to update the "Scheduling Compute Instances with Cloud Scheduler"-article or at least expail it better in the README.