Firebase Storage Error Code 412

Database & APIs

Please help.

I am getting the following Firebase Storage error:

{ "error": { "code": 412, "message": "A required service account is missing necessary permissions. Please resolve by visiting the Storage page of the Firebase Console and re-linking your Firebase bucket or see this FAQ for more info: https://firebase.google.com/support/faq#storage-accounts. If you recently made changes to your service account, please wait a few minutes for the changes to propagate through our systems and try again." } }

Everything was working fine, and then all of a sudden, I got this error.

I have tried the solutions linked in the response message, other GitHub issues, and Stack Overflow. I have verified the correct IAM principal and permissions in Google Cloud, but the issue persists.

Principal: service-projectnumber@gcp-sa-firebasestorage.iam.gserviceaccount.com

permission: Cloud Storage for Firebase Service Agent

Note: I also don't have the upload file options in the Firebase console under storage options. See image below.

What have you tried so far?
Did you check FlutterFlow's Documentation for this topic?
Yes
1