Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 opened this issue Mar 15, 2022 · 11 comments

Comments

@ghost
Copy link

ghost commented Mar 15, 2022

**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

@ghost ghost added the bug label Mar 15, 2022
@google-oss-bot
Copy link
Contributor

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.

@ghost ghost closed this as completed Mar 15, 2022
@arnoutvandervorst
Copy link

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

@pavelvlasov
Copy link

pavelvlasov commented Mar 16, 2022

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

@MergeCommits
Copy link

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

@arnoutvandervorst
Copy link

Downgraded to 10.2.2, can successfully deploy again.

@qqpann
Copy link

qqpann commented Mar 16, 2022

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

@andreibarabas
Copy link

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

@ijemmao
Copy link

ijemmao commented Mar 16, 2022

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
Copy link
Contributor

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

Duplicate of #4307

taeold pushed a commit that referenced this issue Mar 16, 2022
Fixes #4307 and #4302.

`endpointFromFunction` was correctly identifying that `labels["deployment-callable"]` gives an endpoint a `callableTrigger` but `parseTriggers.ts` had no codepath that gave them a `callableTrigger` (instead falling back to an `httpsTriggerr` and labels).
@ghost
Copy link
Author

ghost commented Mar 17, 2022

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
Copy link

Same issue here.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants