Avocadonic
Avocadonic3mo ago

Error code

Hello 🙂 I am new to rowy, and got quite a difficult start... I keep facing this issue. I tried many things but I dont know what to try anymore, creating my project I always end up with "Error setting Firestore/Storage rules: Credential implementation provided to initializeApp() via the "credential" property failed to fetch a valid Google OAuth2 access token with the following error: "Error fetching access token: invalidgrant (Invalid JWT Signature.)". There are two likely causes: (1) your server time is not properly synced or (2) your certificate key file has been revoked. To solve (1), re-sync the time on your server. To solve (2), make sure the key ID for your key file is still present at https://console.firebase.google.com/iam-admin/serviceaccounts/project. If not, generate a new key file at https://console.firebase.google.com/project//settings/serviceaccounts/adminsdk." when selecting the location. Anyone ever faced this? THank you very much!! 😁
No description
2 Replies
AI Support
AI Support3mo ago
AI Support Bot Information
<@870630034635907073> you can react on the relevant answer (message) with a ✅ in this thread when you think it has been solved, by the bot or by a human! Anyone can react on this message with a ❌ if the GPT bot is unhelpful or hallucinating answers. Please note: Team members will review and answer the questions on best efforts basis.
AI Support
AI Support3mo ago
AI Response
It seems like there is no specific answer regarding the error "Error setting Firestore/Storage rules: Credential implementation failed to fetch a valid Google OAuth2 access token" in the provided documentation. However, the error you are experiencing is typically related to issues with your Google Cloud Platform (GCP) credentials. Here's a general guide to troubleshoot and resolve this issue: 1. Check your Server Time: - Ensure that the time on your server is properly synchronized. You can use ntpdate or similar tools to sync the time with an NTP server. 2. Verify Service Account Key: - Go to the Google Cloud Console and ensure that the service account key you're using hasn’t been revoked. - If there's any issue with the current key, generate a new key for your service account. Make sure you replace the old key file in your application with this new one. 3. Scopes and Permissions: - Ensure that your service account has the appropriate permissions to access the Firestore and Storage services. 4. Credential JSON File: - Check if the JSON key file for your service account is correctly configured in your development environment. - Make sure that the environment variable GOOGLE_APPLICATION_CREDENTIALS is properly set to the path of your JSON key file if applicable. If these steps don't resolve your issue, or if you need further assistance, consider reaching out to Firebase support or consulting the Firebase Documentation for specific guidance related to credential configuration. Additionally, if you have any in-app support available, I recommend contacting them for more targeted assistance regarding your project's setup.
BuildShip AI Support

Did you find this page helpful?