question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Connection Error: undefined, file "Util", Project "FirestoreApp"

See original GitHub issue

Until 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:closed
  • Created 5 years ago
  • Reactions:39
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
archywillhecommented, Sep 7, 2018

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

4reactions
grahamearleycommented, Sep 7, 2018

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found