Skip to content
New issue

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

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

Already on GitHub? # to your account

CORS issue after failed to deploy a v2 function #1628

Open
risalfajar opened this issue Oct 17, 2024 · 3 comments
Open

CORS issue after failed to deploy a v2 function #1628

risalfajar opened this issue Oct 17, 2024 · 3 comments

Comments

@risalfajar
Copy link

Related issues

#1128

[REQUIRED] Version info

node: 20.13.1

firebase-functions: 6.0.1

firebase-tools: 13.22.0

firebase-admin: 12.5.0

[REQUIRED] Test case

This happens randomly, can't provide a test case.

[REQUIRED] Steps to reproduce

  1. Create a new v2 function
  2. Deploy it
  3. Sometimes it'll throw the error, then it needs to be deleted and deployed again to make it work

[REQUIRED] Expected behavior

It always works 100%

[REQUIRED] Actual behavior

It's not always works

Were you able to successfully deploy your functions?

Unable to set the invoker for the IAM policy on the following functions:
        createChamferWeigh(asia-southeast2)

Some common causes of this:

- You may not have the roles/functions.admin IAM role. Note that roles/functions.developer does not allow you to change IAM policies.

- An organization policy that restricts Network Access on your project.
@google-oss-bot
Copy link
Collaborator

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@Rohit1024
Copy link

This might be related to the Domain Restricting Policy enforced within your organization.

The same issue was also raised in this GitHub issue suggesting the same solution.

https://cloud.google.com/blog/topics/developers-practitioners/how-create-public-cloud-run-services-when-domain-restricted-sharing-enforced

@risalfajar
Copy link
Author

I'm not in any organization. It's a personal account.

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

No branches or pull requests

3 participants