[go: nahoru, domu]

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

CORS Error When Deploying V1, V2 Functions in a Single Directory and Calling Callable V2 Function #6481

Closed
leeyongeun9 opened this issue Oct 27, 2023 · 4 comments

Comments

@leeyongeun9
Copy link

[REQUIRED] Environment info

firebase-tools: 12.7.0

Platform: macOS

[REQUIRED] Test case

After deploying V1 functions and V2 functions, which include a callable V2 function (onCall), all within a single directory using the command firebase deploy --only functions, I encountered a problem when attempting to call the callable V2 function from a web app using the web-modular API (specifically, httpsCallable). The function failed to work and returned a CORS error.

However, I noticed that when I deployed only the onCall function with its name specified, using the command firebase deploy --only functions:theFunction, the function worked as expected and returned the intended result.

[REQUIRED] Steps to reproduce

Provided above

[REQUIRED] Expected behavior

Provided above

[REQUIRED] Actual behavior

Provided above

@leeyongeun9
Copy link
Author

I did not have this issue when I use firebase-tools version 12.4.8

@aalej
Copy link
Contributor
aalej commented Oct 30, 2023

Hi @leeyongeun9, sorry to hear that you’re encountering this issue and thanks for reporting this. Looking at the details provided, it seems like the issue you're encountering could be related to #6414.

To help us verify if the issues could be related, could you share stack traces of the error raised during runtime of your functions?

@aalej aalej added the Needs: Author Feedback Issues awaiting author feedback label Oct 30, 2023
@google-oss-bot
Copy link
Contributor

Hey @leeyongeun9. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 3 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@google-oss-bot
Copy link
Contributor

Since there haven't been any recent updates here, I am going to close this issue.

@leeyongeun9 if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

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

No branches or pull requests

3 participants