Gemini is unable to fix the error shown below. We have tried numerous things. Gemini believe the issue is how the “apphosting.yaml” file is formatted, but it’s made several attempts with no improvement. This is the error. I also have the text from the “apphosting.yaml” file if that helps. Error verifying session cookie: “FIREBASE_SERVICE_ACCOUNT_JSON environment variable is not set. Please provide the service account JSON as a single-line string.”
The FIREBASE_SERVICE_ACCOUNT_JSON env variable should live in the .env file in your project (along with all other variables). Ask the AI where the variables are stored in your project, is it the .env file?
If the FIREBASE_SERVICE_ACCOUNT_JSON variable is missing from this file, you can generate the JSON required via Google Firebase Console:
- Go to Project settings > Service Accounts (tab)
- Click Generate new private key
- Download the JSON and add it to the .env file
1 Like
