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

Access Token Expired Error with Firebase Admin SDK v12.3.1 #2672

Closed
tinyscratch opened this issue Aug 13, 2024 · 5 comments
Closed

Access Token Expired Error with Firebase Admin SDK v12.3.1 #2672

tinyscratch opened this issue Aug 13, 2024 · 5 comments

Comments

@tinyscratch
Copy link

I updated to the latest version of **"firebase-admin": "12.3.1" but am still getting this issue with authentication. The same code was working easier, correct. I read that this version refresh token issue is fixed, but i am still getting this issue. please let me know how to resolve this. i am not able to upload bulk data using a Node.js script

at Object. (/Users/tushar/Documents/codebase/Node/bulk-upload-script/bulk-upload-playlist-songs.js:107:1)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49 {
code: 16,
details: 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.',
metadata: Metadata {
internalRepr: Map(4) {
'google.rpc.errorinfo-bin' => [Array],
'grpc-status-details-bin' => [Array],
'www-authenticate' => [Array],
'x-debug-tracking-id' => [Array]
},
options: {}
},
note: 'Exception occurred in retry method that was not classified as transient',
statusDetails: [
ErrorInfo {
metadata: [Object],
reason: 'ACCESS_TOKEN_EXPIRED',
domain: 'googleapis.com'
}
],
reason: 'ACCESS_TOKEN_EXPIRED',
domain: 'googleapis.com',
errorInfoMetadata: {
service: 'firestore.googleapis.com',
method: 'google.firestore.v1.Firestore.Commit'
}
}

@google-oss-bot
Copy link

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

@tinyscratch tinyscratch changed the title [Firestore] Access Token Expired Error with Firebase Admin SDK v12.3.1 Aug 13, 2024
@lahirumaramba
Copy link
Member

Hey @jonathanedey, could this be related to #2648?

@jonathanedey
Copy link
Contributor

I don't think it should be unless Firestore use our internal getToken method before making their rpc call.

@lahirumaramba
Copy link
Member

Hey @tinyscratch if you are still having this issue please reach out to https://firebase.google.com/support/troubleshooter/contact/ and file a support request so the relevent teams can take a look. Thanks!

@kiwavi
Copy link

kiwavi commented Sep 17, 2024

Hi. Getting this error using the raw protocol on nodeJS (with auth client). How does one get the refresh token using the raw protocol? The docs point out that this is handled automatically. Thanks.

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

No branches or pull requests

5 participants