Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
shuent opened this issue Sep 7, 2018 · 8 comments
Closed

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

shuent opened this issue Sep 7, 2018 · 8 comments

Comments

@shuent
Copy link

shuent commented Sep 7, 2018

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.

@tomokazukozuma
Copy link

I have same error.

Response was {error_description=Forbidden, error=internal_failure} when execute api(https://www.googleapis.com/oauth2/v4/token/) that can get auth token.

@joao-azevedo-hydradev
Copy link
Contributor

I have the same response error.

@grahamearley
Copy link
Owner

grahamearley commented 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!

@manzato
Copy link

manzato commented Sep 7, 2018

getting the same error here! Thanks @grahamearley !

@Danelund
Copy link

Danelund commented Sep 7, 2018

same here, anyone with a hotfix?

@archywillhe
Copy link

archywillhe commented Sep 7, 2018

likely related: https://stackoverflow.com/questions/52219552/forbidden-access-for-google-signin someone's andriod app ran into the same error 10h ago too.

@archywillhe
Copy link

archywillhe commented 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). #44

grahamearley added a commit that referenced this issue Sep 7, 2018
fixed #43 by updating the google auth uri
@grahamearley
Copy link
Owner

Fix is now in v20!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants