Comments (2)
Looks like this issue is flaky. 😟
I'm going to leave this open and stop commenting.
A human should fix and close this.
When run at the same commit (16e5cae), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge).
from google-auth-library-nodejs.
Extracted error:
<testcase classname="samples for external-account" name="should acquire ADC for file-sourced creds" time="0.216">
<failure>GaxiosError: Invalid response body while trying to fetch https://sts.googleapis.com/v1/token: read ECONNRESET at Gaxios._request (/workspace/node_modules/gaxios/build/src/gaxios.js:149:19) at processTicksAndRejections (internal/process/task_queues.js:95:5) at async StsCredentials.exchangeToken (/workspace/build/src/auth/stscredentials.js:90:30) at async IdentityPoolClient.refreshAccessTokenAsync (/workspace/build/src/auth/baseexternalclient.js:315:29) at async IdentityPoolClient.getAccessToken (/workspace/build/src/auth/baseexternalclient.js:165:13) at async IdentityPoolClient.getRequestHeaders (/workspace/build/src/auth/baseexternalclient.js:182:37) at async IdentityPoolClient.requestAsync (/workspace/build/src/auth/baseexternalclient.js:242:36) at async main (/workspace/samples/adc.js:31:15) { config: { url: 'https://sts.googleapis.com/v1/token', method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'x-goog-api-client': 'gl-node/14.21.3 auth/9.7.0 google-byoid-sdk source/file sa-impersonation/true config-lifetime/false', 'User-Agent': 'google-api-nodejs-client/9.7.0', Accept: 'application/json' }, data: '<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.', 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://sts.googleapis.com/v1/token: read ECONNRESET at Gunzip.<anonymous> (/workspace/node_modules/node-fetch/lib/index.js:400:12) at Gunzip.emit (events.js:412:35) at emitErrorNT (internal/streams/destroy.js:106:8) at emitErrorCloseNT (internal/streams/destroy.js:74:3) at processTicksAndRejections (internal/process/task_queues.js:82:21) { type: 'system', errno: 'ECONNRESET', code: 'ECONNRESET' }, code: 'ECONNRESET', [Symbol(gaxios-gaxios-error)]: '6.3.0' } : expected 'GaxiosError: Invalid response body wh…' to match /DNS Info:/ AssertionError: GaxiosError: Invalid response body while trying to fetch https://sts.googleapis.com/v1/token: read ECONNRESET at Gaxios._request (/workspace/node_modules/gaxios/build/src/gaxios.js:149:19) at processTicksAndRejections (internal/process/task_queues.js:95:5) at async StsCredentials.exchangeToken (/workspace/build/src/auth/stscredentials.js:90:30) at async IdentityPoolClient.refreshAccessTokenAsync (/workspace/build/src/auth/baseexternalclient.js:315:29) at async IdentityPoolClient.getAccessToken (/workspace/build/src/auth/baseexternalclient.js:165:13) at async IdentityPoolClient.getRequestHeaders (/workspace/build/src/auth/baseexternalclient.js:182:37) at async IdentityPoolClient.requestAsync (/workspace/build/src/auth/baseexternalclient.js:242:36) at async main (/workspace/samples/adc.js:31:15) { config: { url: 'https://sts.googleapis.com/v1/token', method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'x-goog-api-client': 'gl-node/14.21.3 auth/9.7.0 google-byoid-sdk source/file sa-impersonation/true config-lifetime/false', 'User-Agent': 'google-api-nodejs-client/9.7.0', Accept: 'application/json' }, data: '<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.', 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://sts.googleapis.com/v1/token: read ECONNRESET at Gunzip.<anonymous> (/workspace/node_modules/node-fetch/lib/index.js:400:12) at emitErrorNT (internal/streams/destroy.js:106:8) at emitErrorCloseNT (internal/streams/destroy.js:74:3) at processTicksAndRejections (internal/process/task_queues.js:82:21) { type: 'system', errno: 'ECONNRESET', code: 'ECONNRESET' }, code: 'ECONNRESET', [Symbol(gaxios-gaxios-error)]: '6.3.0' } : expected 'GaxiosError: Invalid response body wh…' to match /DNS Info:/ at Context.<anonymous> (test/externalclient.test.js:293:12) at processTicksAndRejections (internal/process/task_queues.js:95:5)</failure>
</testcase>
from google-auth-library-nodejs.
Related Issues (20)
- Type definitions in google-auth-library >= 9.5.0 incompatible with client libraries HOT 3
- Allow passing in AWS credentials instead of only using environment variables HOT 2
- 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
- samples for external-account: should acquire ADC for url-sourced creds failed HOT 2
- samples for external-account: should acquire ADC for AWS creds failed HOT 2
- Client args type error for GCP HOT 4
- Facing timeout issue for https://www.googleapis.com/oauth2/v4/token while generating oauth access token using google-auth-library HOT 7
- Ht
- G
- How to handle google auth with react and node js api HOT 1
- How to use nodejs api of google auth in axios fetch? HOT 3
- ToC for Reference Documentation is broken HOT 1
- error: FetchError: request to https://www.googleapis.com/oauth2/v1/certs failed, reason: connect ETIMEDOUT 142.251.43.10:443 HOT 1
- error: FetchError: request to https://oauth2.googleapis.com/token failed, reason: connect ETIMEDOUT 172.217.160.74:443 HOT 1
- use getToken error: FetchError: request to https://oauth2.googleapis.com/token failed, reason: connect ETIMEDOUT 172.217.160.74:443
- exchanging code for tokens: GaxiosError: request to https://oauth2.googleapis.com/token failed,
- oauth2client.d.ts references non existant type "QueryStringInput" in querystring.d.ts HOT 4
- pack and install: should be able to webpack the library failed 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.