Connection Error: undefined, file "Util", Project "FirestoreApp"
See original GitHub issueUntil Yesterday, the library works perfect, but today I got an error when connecting to FirestoreApp.
In GAS script, these following functions calling can cause error.
Logger.log(FirestoreApp)
Logger.log(FirestoreApp.getFirestore(config))
Firstly, I doubt connection error when authenticating with firebase, but it wasn’t. It might be some changes in firebase API, though I could not specify the causes.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:39
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Could not reach Cloud Firestore backend. Connection failed 1 ...
Your error message says FirebaseError: [code=permission-denied]: Cloud Firestore API has not been used in project xxxx before or it is ...
Read more >Connect Firestore to Google Sheets (the Quick and Dirty Way)
How to Sync Firestore to Google Sheets · Step 1: Open Google Apps Script in the Script editor · Step 2: Add the...
Read more >Next.js and Firebase DB full-stack app tutorial | LogRocket Blog
Learn how to set up Firestore's Cloud Firestore and communicate with the database through a Next.js app with API endpoints.
Read more >How to fix Firestore Error: PERMISSION_DENIED - Medium
Because all access to Cloud Firestore or the Realtime Database that comes from a backend server will bypass the security rules entirely.
Read more >Connect your app to the Cloud Firestore Emulator - Firebase
Choose a Firebase project; Instrument your app to talk to the emulators ... of the report highlights evaluations that throw undefined and null-value...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

okay fixed by updating the API URL to “https://oauth2.googleapis.com/token” (which can be found in a newly generated .json for the private key of a service account). https://github.com/grahamearley/FirestoreGoogleAppsScript/pull/44
I’m getting this too. Something must have changed in how we’re supposed to authenticate before accessing Firestore. I’m going to look into it — please share if you have any ideas!