Comments (5)
@Jared00m which version of Node are you running?
from google-auth-library-nodejs.
@danielbankhead , thanks for asking. I've tried it on Node 18, 16, 15, 14, and 12.
On node 15 I get a useful error that says:
data: {
error: {
code: 403,
message: 'Forbidden',
errors: [
{
message: 'Forbidden',
domain: 'global',
reason: 'forbidden'
}
]
}
},
On Node 18 I get this error:
config: {
method: 'POST',
url: 'https://www.googleapis.com/oauth2/v4/token',
data: {
grant_type: '<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.',
assertion: '<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.'
},
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'User-Agent': 'google-api-nodejs-client/9.2.0',
'x-goog-api-client': 'gl-node/18.3.0',
Accept: 'application/json'
},
responseType: 'json',
paramsSerializer: [Function: paramsSerializer],
body: '<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.',
validateStatus: [Function: validateStatus],
errorRedactor: [Function: defaultErrorRedactor]
},
response: undefined,
error: FetchError: Invalid response body while trying to fetch https://www.googleapis.com/oauth2/v4/token: read ECONNRESET
at Gunzip.<anonymous> (/Users/jared/Coding/language-app-test/language-app/functions/node_modules/node-fetch/lib/index.js:400:12)
at Gunzip.emit (node:events:539:35)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
type: 'system',
errno: 'ECONNRESET',
code: 'ECONNRESET'
},
code: 'ECONNRESET'
}
from google-auth-library-nodejs.
Investigating. Potentially related items:
from google-auth-library-nodejs.
After discussing with the team, this is best handled by setting up automatic retries in this library.
I'll prioritize this work and it can be tracked here:
from google-auth-library-nodejs.
This PR should provide some relief for the immediate issue:
from google-auth-library-nodejs.
Related Issues (20)
- googleauth googleauth for impersonated types for impersonated credentials signing: should use IAMCredentials signBlob endpoint when impersonation is used failed HOT 3
- googleauth googleauth for external_account types sign(): should reject when no impersonation is used failed HOT 3
- googleauth googleauth for external_account types sign(): should use IAMCredentials endpoint when impersonation is used failed HOT 3
- googleauth googleauth for external_account_authorized_user types sign(): should reject failed HOT 3
- pack and install: should be able to use the d.ts failed HOT 1
- pack and install: should be able to webpack the library failed HOT 2
- Version 9.6.1 breaks @google-cloud/pubsub's emulator mode HOT 1
- pack and install: "after each" hook: cleanup staging for "should be able to use the d.ts" failed HOT 1
- Workload Identity with AWS & IMDSv2 use expired token
- Slow response times when obtaining Domain Wide Delegation token and during inbound Authorization header validation HOT 4
- samples for external-account: should acquire ADC for file-sourced creds failed HOT 3
- Isue
- Retrieving User Account MFA Flags HOT 4
- Unable to obtain token HOT 5
- Use ENVAR for service account impersonation
- Occasional timeout when requesting Google ID Token Verify HOT 2
- Allow passing in AWS credentials instead of only using environment variables HOT 2
- Type definitions in google-auth-library >= 9.5.0 incompatible with client libraries HOT 3
- GaxiosError: Failed to retrieve verification certificates: request to https://www.googleapis.com/oauth2/v1/certs failed HOT 1
- refactor!: Move Base `AuthClient` Types to `authclient.ts` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-auth-library-nodejs.