firebasedeploymentgoogle-cloud-functions

Firebase deploy failed even without changing the function from onCallable to onRequest


Error: [functionName(us-central1)] Changing from a callable function to an HTTPS function is not allowed. Please delete your function and create a new one instead.

Any advice and insight is appreciated.


Solution

  • Which version of Firebase CLI (firebase --version) are you using? Last night I updated firebase-tools package to 10.3.0 and functions deployment started giving me the error you mention. I downgraded to 10.2.2 and functions deployment started working as before.

    Update: Firebase team confirmed there is an issue with 10.3.0 firebase-tools. They are working on a fix: https://github.com/firebase/firebase-tools/issues/4307