I'm new using Google's APIs.
I'm following step by step the next tutorial made by Google: https://cloud.google.com/functions/docs/tutorials/ocr
I want to deploy a specific function provided by Google (the processImage
function).
I entered this into the console:
gcloud alpha functions deploy ocr-extract --stage-bucket [YOUR_STAGING_BUCKET_NAME] --trigger-bucket [YOUR_IMAGE_BUCKET_NAME] --entry-point processImage
But it gives me this error:
Error: (gcloud.alpha.functions.deploy) ResponseError: status=[403], code=[Forbidden], message=[Cannot access Google Cloud Functions API in project
I faced the same error. It got resolved once I did gcloud init
in my command prompt terminal. Mentioned command linked my GCP project to the folder where my files were present. After that command mentioned by you worked.
You should Initialize the SDK first.
gcloud init
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With