firebase / firebase/firebase-tools

CORS issue after failed to deploy a v2 function

Open
#8,071 8 comments 0 reactions 0 assignees View on GitHub
api: functions
Dominant language
TypeScript
Stars
4.5k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
84

Description

### Related issues

firebase/firebase-functions#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.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.