Repository navigation
Closed
Description
[REQUIRED] Environment info
firebase-tools: 10.3.0
Platform: Windows
[REQUIRED] Test case
Function in module, named by path httpsDeptest:
const { functions } = require('utils')
exports = module.exports = functions.https.onCall(() => {
console.log('ok')
})
[REQUIRED] Steps to reproduce
Deploy twice. First deploy works fine, second fails:
$ firebase deploy --only=functions:httpsDeptest
=== Deploying to '[REMOVED]'...
i deploying functions
i functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i functions: ensuring required API cloudbuild.googleapis.com is enabled...
+ functions: required API cloudbuild.googleapis.com is enabled
+ functions: required API cloudfunctions.googleapis.com is enabled
i functions: preparing functions directory for uploading...
i functions: packaged functions (120.01 KB) for uploading
i functions: ensuring required API cloudscheduler.googleapis.com is enabled...
+ functions: required API cloudscheduler.googleapis.com is enabled
+ functions: functions folder uploaded successfully
i functions: creating Node.js 14 function httpsDeptest(us-central1)...
+ functions[httpsDeptest(us-central1)] Successful create operation.
Function URL (httpsDeptest(us-central1)): https://us-central1-[REMOVED].cloudfunctions.net/httpsDeptest
i functions: cleaning up build files...
+ Deploy complete!
$ firebase deploy --only=functions:httpsDeptest
=== Deploying to '[REMOVED]'...
i deploying functions
i functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i functions: ensuring required API cloudbuild.googleapis.com is enabled...
+ functions: required API cloudbuild.googleapis.com is enabled
+ functions: required API cloudfunctions.googleapis.com is enabled
i functions: preparing functions directory for uploading...
i functions: packaged functions (120.01 KB) for uploading
i functions: ensuring required API cloudscheduler.googleapis.com is enabled...
+ functions: required API cloudscheduler.googleapis.com is enabled
+ functions: functions folder uploaded successfully
Error: [httpsDeptest(us-central1)] Changing from a callable function to an HTTPS function is not allowed. Please delete your function and create a new one instead.
[REQUIRED] Expected behavior
That the function would redeploy.
[REQUIRED] Actual behavior
Deployment ends with:
Error: [httpsDeptest(us-central1)] Changing from a callable function to an HTTPS function is not allowed. Please delete your function and create a new one instead.
Reacted by ugritboon, Matouš Skála, Ijemma Onwuzulike, Nacho, m-j-g, Murad Aghakishiyev, David Gudeman, Dan McSorley, George Gebbett, riebel and 4 more
Metadata
Metadata
Assignees
Labels
No labels
Activity
dsl101 commentedon Mar 16, 2022
Reverting to 10.2.2 works around the problem for now. I didn't include the full
--debugoutput, as it seemed to contain quite a bit of sensitive info. Please advise if it required.Schmale97 commentedon Mar 16, 2022
I am also seeing this issue on Ubuntu
nachoalthabe commentedon Mar 16, 2022
Also on Mac
bkendall commentedon Mar 16, 2022
Sounds like an issue in the CLI - I'll quickly raise with the Functions team.
LeadDreamer commentedon Mar 16, 2022
I just dropped back to 10.2.2 - did NOT solve the problem. Otherwise same symptomsImproper fallback. Forced it again. seems to be working.
dcgudeman commentedon Mar 16, 2022
Any update on this?
gustavopch commentedon Mar 16, 2022
Same error here when redeploying a function with
[email protected]on GitHub Actions on an Ubuntu 20.04.4 machine.ivan416 commentedon Mar 16, 2022
Downgraded to 10.2.2 for now, since it works ok there. Glad to hear I'm not the only one experiencing this issue.
https://stackoverflow.com/questions/71368085/gcp-cloud-function-environment-variable-becomes-unset
taeold commentedon Mar 16, 2022
Hi folks - apologies for trouble here.
We are working hard to get a fix out. We expect new version w/ the fix to be out by this afternoon US Pacific time.
In the meantime, here are some workarounds:
Pin Firebase CLI to v10.2.2.
If you must use the latest Firebase CLI: A temporary workaround is to remove "deployment-callable" or "deployment-callabled" label from your callable function. To do this, go to https://pantheon.corp.google.com/functions/list and find your function, and remove the said label:
Note that the label will reappear after Firebase CLI deploy, so this is more-or-less a one time fix.
Again, apologies and will keep this thread updated as we release a patch.
Trigger parser can create callable triggers (#4310)
dcgudeman commentedon Mar 16, 2022
when will fix #4310 be released?
taeold commentedon Mar 16, 2022
@dcgudeman We just shipped v10.3.1:
https://github.com/firebase/firebase-tools/releases/tag/v10.3.1
Please give the latest cli version a go:
gustavopch commentedon Mar 16, 2022
That was fast!
taeold commentedon Mar 16, 2022
@gustavopch It was a very bad bug :( Apologies everyone!
davidhowe commentedon May 12, 2025
I see the same. I had switched projects and when redeploying the trigger functions all experienced the same fate, until I deleted said functions and redeployed.
Justus-M commentedon Aug 13, 2025
I'm also seeing this issue, even when the initial deployment failed. Also I can't actually find the function anywhere in the console
michi88 commentedon Feb 16, 2026
Also ran into this. For some reason, sometimes, the function that you need to delete is only visible in the firebase console (and not in GCP directly).
https://console.firebase.google.com/u/0/project/[your project]/functions. You can delete it using the cli.