Firebase 403 error

I have configured the firebase connector, attached the initialize firebase to the global page, and verified my firebase connector details in the data → Google Firebase tab. However, my app can’t read from the data base. I get this error in the inspect - Network part of chrome

Database rules set to
image

{
“error”: {
“code”: 403,
“message”: “Permission denied on resource project “cortina-inventory-app”.”,
“status”: “PERMISSION_DENIED”,
“details”: [
{
@type”: “type.googleapis.com/google.rpc.Help”,
“links”: [
{
“description”: “Google developer console API key”,
“url”: “Google Cloud Platform
}
]
},
{
@type”: “type.googleapis.com/google.rpc.ErrorInfo”,
“reason”: “CONSUMER_INVALID”,
“domain”: “googleapis.com”,
“metadata”: {
“consumer”: “projects/“cortina-inventory-app””,
“service”: “firestore.googleapis.com
}
}
]
}
}

did you modify firebase rules like this?
image

That is what the rules are set to. Sorry, I should have noted that.

1 Like

I was getting this 403 error and noticed that my “project Id” in my Firebase connector configuration had a space. https://firestore.googleapis.com/v1/projects/%20projectid in the URL.

So check for spaces in the URL you used to see if that might be the issue.