HTTP Error 400: OPERATION_NOT_ALLOWED - Blocking Functions Restricted to GCIP Projects

Hardik Desai avatar
Hardik Desai

25 September 2024

1 min read
HTTP Error 400: OPERATION_NOT_ALLOWED - Blocking Functions Restricted to GCIP Projects

Description

functions folder uploaded successfully i functions: creating Node.js 18 (1st Gen) function deleteInvalidUserBeforeCreate(us-central1)... HTTP Error: 400, OPERATION_NOT_ALLOWED : Blocking Functions may only be configured for GCIP projects. Functions deploy had errors with the following functions: deleteInvalidUserBeforeCreate(us-central1) i functions: cleaning up build files... Error: There was an error deploying functions

Summary

If you getting this type of error when deploying firebase function


Error:

✔ functions: functions folder uploaded successfully

i functions: creating Node.js 18 (1st Gen) function deleteInvalidUserBeforeCreate(us-central1)...

HTTP Error: 400, OPERATION_NOT_ALLOWED : Blocking Functions may only be configured for GCIP projects.

Functions deploy had errors with the following functions:

deleteInvalidUserBeforeCreate(us-central1)

i functions: cleaning up build files...

Error: There was an error deploying functions


Installation Guide

1. Get Service ( replace function name and region)

1
gcloud functions describe emailSend --region=us-central1 --format="value(eventTrigger.resource)"

2. List out service

1
gcloud run services list

3. Assign Role (replace with service name an region)

1
gcloud run services add-iam-policy-binding speechToText \
2
--region=us-central1 \
3
--member=allUsers \
4
--role=roles/run.invoker

Join the newsletter

Subscribe for weekly updates. No spams ever!

Copyright © 2024 | Hardik Desai | All Rights Reserved