9

I am trying to deploy a Google Cloud HTTP function, using this line in zsh shell (Arch Linux):

gcloud functions deploy testing --runtime python38 --trigger-http --allow-unauthenticated

when the function is only [main.py]:

def testing(request):
   print("yes")
   return 'finished', 200

and this is the error it is giving:

enter image description here

ERROR:

error fetching storage source: generic::unknown: retry budget exhausted (3 attempts): fetching gcs source: unpacking source from gcs: source fetch container exited with non-zero status: 1

However, the funny thing is, that the other google cloud functions that I have (some are HTTP-trigger and some are Cloud Storage-trigger) deploy fine. The only thing I think may be the issue is a cloud function amount limit (?? maybe??)

Help me please

Jin Lee
  • 3,194
  • 12
  • 46
  • 86
Tal Hadad
  • 109
  • 1
  • 9

1 Answers1

0

Most likely it's because you haven't specified the directory of the code. To do this, flag --source should be used as well. Full example command gcloud functions deploy function_name --gen2 --runtime=python311 --region=europe-central2 --source=dlp-trigger --entry-point=start_dataflow_process --trigger-topic=run_topic

Remember to create a directory named dlp-trigger and put there module main.py that contains the code along with the requirements.txt

ImustAdmit
  • 388
  • 4
  • 14