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
{{ message }}
Repository navigation
Functions deploy fails with 403 on Extensions API when no extensions are used #9987
firebase deploy --only functions fails with a 403 error on the Firebase Extensions API (firebaseextensions.googleapis.com) even when the project uses zero extensions.
Steps to Reproduce
Create a Firebase project with Cloud Functions (2nd gen, Node 22) and no extensions
Ensure firebase.json has no extensions key
Ensure no code imports from firebase-functions/extensions
Run firebase deploy --only functions
Expected Behavior
Deploy succeeds — extensions check is skipped when no extensions are defined.
Actual Behavior
i extensions: ensuring required API firebaseextensions.googleapis.com is enabled...
Error: Request to https://firebaseextensions.googleapis.com/v1beta/projects/<project>/instances?pageSize=100&pageToken= had HTTP Error: 403, The caller does not have permission
The firebase-functions SDK runtime loader always includes an extensions key in the build output — even when no extensions are defined, it returns extensions: {}. Since {} is truthy in JavaScript, the check passes and prepareDynamicExtensions is called, which then hits listInstances on the Extensions API.
Fix
Change the check to also verify the extensions object is non-empty:
This just started happening for me too. Running firebase-functions ^6.3 and firebase-tools ^14.27. This has caused us to not be able to deploy an update today
Timeline: Deploys with the exact same CLI version (15.7.0), same service account, same project, and same permissions were succeeding on Feb 25 but started failing on Feb 27. This points to a backend change on Google's side rather than a CLI regression.
Key details:
The project has an extensions/ directory with BigQuery export configs (.env files), but the deploy command uses --only functions,firestore,storage — extensions are not being deployed.
The service account has roles/firebaseextensions.admin — confirmed via gcloud projects get-iam-policy.
The firebaseextensions.googleapis.com API is enabled on the project — confirmed via gcloud services list.
Even a project Owner account gets the same 403 when calling the endpoint directly:
curl -H "Authorization: Bearer $(gcloud auth print-access-token)" \
"https://firebaseextensions.googleapis.com/v1beta/projects/<project>/instances?pageSize=100"
# Returns: {"error":{"code":403,"message":"The caller does not have permission"}}
Workaround: Removing/renaming the extensions/ directory before deploying bypasses the check entirely and the deploy succeeds. We've added rm -rf extensions as a CI step for now.
Sorry for the issue here folks. It looks like the issue should be fixed, I tried deploying functions and did not encounter any issues. The 403 error from the Extensions API seems to be related to a backend issue, if you're still encountering this, please reach out to our Firebase Support team.
Though, I do understand that we could improve this behavior on firebase-tools. I'll try asking our engineering team to see if we could skip the Extensions API calls if there are no extension in the codebase
Sorry for the issue here folks. It looks like the issue should be fixed, I tried deploying functions and did not encounter any issues. The 403 error from the Extensions API seems to be related to a backend issue, if you're still encountering this, please reach out to our Firebase Support team.
Though, I do understand that we could improve this behavior on firebase-tools. I'll try asking our engineering team to see if we could skip the Extensions API calls if there are no extension in the codebase
Activity
SammyDiqs commentedon Feb 27, 2026
This is also happening with me, working fine throughout the day started happening around 6 pm EST
fix: deploy functions via gcloud to bypass firebase-tools Extensions bug
cjoy commentedon Feb 27, 2026
This has also started happening for me as well
mike-cao commentedon Feb 27, 2026
This just started happening for me too. Running firebase-functions ^6.3 and firebase-tools ^14.27. This has caused us to not be able to deploy an update today
kingsurf commentedon Feb 27, 2026
+1 Happening for me, upgraded firebase-tools
mike-cao commentedon Feb 27, 2026
@kingsurf did upgrading fix it for you or is it still happening with those versions?
kingsurf commentedon Feb 27, 2026
No, it continues to fail
shariqkhwaja commentedon Feb 27, 2026
Confirming this issue. Additional data points:
Timeline: Deploys with the exact same CLI version (15.7.0), same service account, same project, and same permissions were succeeding on Feb 25 but started failing on Feb 27. This points to a backend change on Google's side rather than a CLI regression.
Key details:
extensions/directory with BigQuery export configs (.envfiles), but the deploy command uses--only functions,firestore,storage— extensions are not being deployed.roles/firebaseextensions.admin— confirmed viagcloud projects get-iam-policy.firebaseextensions.googleapis.comAPI is enabled on the project — confirmed viagcloud services list.Workaround: Removing/renaming the
extensions/directory before deploying bypasses the check entirely and the deploy succeeds. We've addedrm -rf extensionsas a CI step for now.kingsurf commentedon Feb 27, 2026
we are not using extensions and are not referencing extensions in our project at all, any idea how to bypass this extension check?
kingsurf commentedon Feb 27, 2026
Yes thank you adding this step above the deploy works
qlereboursFR commentedon Feb 27, 2026
There's a workaround mentioned in a related issue, closed since a long time but reactivated yesterday: firebase/firebase-functions#1596
aalej commentedon Feb 27, 2026
Sorry for the issue here folks. It looks like the issue should be fixed, I tried deploying functions and did not encounter any issues. The 403 error from the Extensions API seems to be related to a backend issue, if you're still encountering this, please reach out to our Firebase Support team.
Though, I do understand that we could improve this behavior on firebase-tools. I'll try asking our engineering team to see if we could skip the Extensions API calls if there are no extension in the codebase
qlereboursFR commentedon Feb 27, 2026
I confirm that it's fixed for me, thanks!