1

Following the Firebase examples to create and deploy a function, I keep failing at the deploy phase. The error, with --debug enabled, shows:

<<< [apiv2][body] POST https://cloudfunctions.googleapis.com/v1/projects/actus-poc2/locations/us-central1/functions {"error":{"code":403,"message":"Cloud Functions uses Artifact Registry to store function docker images. Artifact Registry API is not enabled in your project. To enable the API, visit https://console.developers.google.com/apis/api/artifactregistry.googleapis.com/overview?project=...

Now I was expecting to be able to stay within the confines of the firebase console but this message seems to imply I need to open the Google Cloud Console to enable additional permissions. Should the code samples better document this? Or is this a recent change in firebase functions that breaks many of the existing examples?

3
  • Could you share the documentation you were following? Commented Jul 5, 2022 at 22:53
  • Sorry for the late reply. I am following this: firebase.google.com/docs/functions/get-started Commented Jul 17, 2022 at 15:57
  • Hello, Reuben! It's a good practice here at Stack Overflow that if mine or any answer has solved your question please consider accepting it by clicking the check-mark. This indicates to the wider community that you've found a solution and gives some reputation to both the answerer and yourself. There is no obligation to do this. Commented Aug 5, 2022 at 15:50

1 Answer 1

1

I need to open the Google Cloud Console to enable additional permissions.

The reason why you need to use the Google Cloud Console is because Cloud Functions for Firebase relies on some Google Cloud services. See.

Function deployments with Firebase CLI 11.2.0 and higher rely on Cloud Build and Artifact Registry.

is this a recent change in firebase functions that breaks many of the existing examples?

Deployments to older versions also do rely on some Google Cloud services. Deployments to older versions use Cloud Build in the same way, but rely on Container Registry and Cloud Storage for storage instead of Artifact Registry.

Should the code samples better document this?

If you do think an update to said documentation could be helpful, here is more about opening Feature requests.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.