firebase / firebase-tools

The Firebase Command Line Tools
MIT License
4.01k stars 929 forks source link

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 ghost closed 2 years ago

ghost commented 2 years ago

**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
google-oss-bot commented 2 years ago

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.

arnoutvandervorst commented 2 years ago

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

pavelvlasov commented 2 years ago

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

MergeCommits commented 2 years ago

It seems like this isn't an issue with the CLI cause I can replicate this on older versions where it previously worked.

arnoutvandervorst commented 2 years ago

Downgraded to 10.2.2, can successfully deploy again.

qqpann commented 2 years ago

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

andreibarabas commented 2 years ago

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

ijemmao commented 2 years ago

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
bkendall commented 2 years ago

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

Duplicate of #4307

ghost commented 2 years ago

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

Duplicate of #4307

Thank you. I am kinda new here and wanted to merged with that question. Couldn't find the way to do it. So, I closed it on my own!

CalvinJamesHeath commented 4 months ago

Same issue here.