Skip to content

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

Closed

Description

**firebase-tools: 10.3.0

**Platform: macOS M1 Pro

[REQUIRED] Test case

[REQUIRED] Steps to reproduce

sudo npm i -g firebase-tools
sudo firebase deploy --only functions

[REQUIRED] Expected behavior

✔  functions: Finished running predeploy script.
⚠  functions: package.json indicates an outdated version of firebase-functions. Please upgrade using npm install --save firebase-functions@latest in your functions directory.
i  functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i  functions: ensuring required API cloudbuild.googleapis.com is enabled...
✔  functions: required API cloudfunctions.googleapis.com is enabled
✔  functions: required API cloudbuild.googleapis.com is enabled
i  functions: preparing functions directory for uploading...
i  functions: packaged functions (124.01 KB) for uploading
✔  functions: functions folder uploaded successfully
i  functions: updating Node.js 16 function testing(us-central1)...
i  functions: updating Node.js 16 function signUp(us-central1)...
i  functions: updating Node.js 16 function signIn(us-central1)...
i  functions: updating Node.js 16 function getAuthUserInfo(us-central1)...
i  functions: updating Node.js 16 function editProfile(us-central1)...
i  functions: updating Node.js 16 function deleteProfile(us-central1)...
i  functions: updating Node.js 16 function userEmailVerified(us-central1)...
i  functions: updating Node.js 16 function changeUserEmail(us-central1)...
i  functions: updating Node.js 16 function updateUserId(us-central1)...
i  functions: updating Node.js 16 function mapSearch(us-central1)...
i  functions: updating Node.js 16 function followingLoc(us-central1)...
i  functions: updating Node.js 16 function unfollowingLoc(us-central1)...
i  functions: updating Node.js 16 function createActivity(us-central1)...
i  functions: updating Node.js 16 function deleteActivity(us-central1)...
i  functions: updating Node.js 16 function activityNotification(us-central1)...
✔  functions[mapSearch(us-central1)] Successful update operation.
✔  functions[updateUserId(us-central1)] Successful update operation.
✔  functions[deleteActivity(us-central1)] Successful update operation.
✔  functions[signUp(us-central1)] Successful update operation.
✔  functions[unfollowingLoc(us-central1)] Successful update operation.
✔  functions[activityNotification(us-central1)] Successful update operation.
✔  functions[userEmailVerified(us-central1)] Successful update operation.
✔  functions[followingLoc(us-central1)] Successful update operation.
✔  functions[deleteProfile(us-central1)] Successful update operation.
✔  functions[signIn(us-central1)] Successful update operation.
✔  functions[getAuthUserInfo(us-central1)] Successful update operation.
✔  functions[editProfile(us-central1)] Successful update operation.
✔  functions[testing(us-central1)] Successful update operation.
✔  functions[changeUserEmail(us-central1)] Successful update operation.
✔  functions[createActivity(us-central1)] Successful update operation.

[REQUIRED] Actual behavior

(base) fbc % sudo firebase deploy --only functions

=== Deploying to 'mobile-app'...

i  deploying functions
Running command: npm --prefix "$RESOURCE_DIR" run build

> build
> tsc

✔  functions: Finished running predeploy script.
⚠  functions: package.json indicates an outdated version of firebase-functions. Please upgrade using npm install --save firebase-functions@latest in your functions directory.
i  functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i  functions: ensuring required API cloudbuild.googleapis.com is enabled...
✔  functions: required API cloudfunctions.googleapis.com is enabled
✔  functions: required API cloudbuild.googleapis.com is enabled
i  functions: preparing functions directory for uploading...
i  functions: packaged functions (124.01 KB) for uploading
✔  functions: functions folder uploaded successfully

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

Having trouble? Try firebase [command] --help

Activity

  1. ghost added on Mar 15, 2022
  2. google-oss-bot commented on Mar 15, 2022

    @google-oss-bot
    Collaborator

    This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.

  3. ghost closed this as completedon Mar 15, 2022
  4. arnoutvandervorst commented on Mar 15, 2022

    @arnoutvandervorst

    Same for me with 10.30, cannot deploy any callable function. When I delete the mentioned function the same error remains.

  5. pavelvlasov commented on Mar 16, 2022

    @pavelvlasov

    Can confirm the same behavior with 10.3.0. Deployment succeeded after the function is deleted, but the next run is failing again.

  6. arnoutvandervorst commented on Mar 16, 2022

    @arnoutvandervorst

    Downgraded to 10.2.2, can successfully deploy again.

  7. qqpann commented on Mar 16, 2022

    @qqpann

    I thought downgrading helped, but I'm not sure now. In my case npm install again seems to have fixed the issue.

  8. andreibarabas commented on Mar 16, 2022

    @andreibarabas

    Happened to me as well. Had to downgrade back to 10.2.2 in order to be able to deploy

  9. ijemmao commented on Mar 16, 2022

    @ijemmao

    I started to see this error when I was deploying on version 9.10.2. I've upgraded to 10.2.2, but I'm still getting the same error :/

    Screen Shot 2022-03-16 at 9 45 04 AM

  10. bkendall commented on Mar 16, 2022

    @bkendall
    Contributor

    Since this is closed, I'll direct folks over to...

    Duplicate of #4307

  11. CalvinJamesHeath commented on May 14, 2024

    @CalvinJamesHeath

    Same issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions