googleapis / google-auth-library-nodejs

🔑 Google Auth Library for Node.js
Apache License 2.0
1.71k stars 374 forks source link

samples for external-account: should acquire ADC for url-sourced creds failed #1779

Closed flaky-bot[bot] closed 5 months ago

flaky-bot[bot] commented 6 months ago

Note: #1329 was also for this test, but it was closed more than 10 days ago. So, I didn't mark it flaky.


commit: fc8dfe9d373e30dd1bd06eb8cbb8b52e735b4d83 buildURL: Build Status, Sponge status: failed

danielbankhead commented 6 months ago

Extracted error:

<testcase classname="samples for external-account" name="should acquire ADC for url-sourced creds" time="0.28">
<failure>GaxiosError: Invalid response body while trying to fetch https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/kokoro-system-test@long-door-651.iam.gserviceaccount.com:generateAccessToken: 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 IdentityPoolClient.getImpersonatedAccessToken (/workspace/build/src/auth/baseexternalclient.js:389:26) at async IdentityPoolClient.refreshAccessTokenAsync (/workspace/build/src/auth/baseexternalclient.js:317:38) 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://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/kokoro-system-test@long-door-651.iam.gserviceaccount.com:generateAccessToken', method: 'POST', headers: { 'Content-Type': 'application/json', Authorization: 'Bearer ya29.d.c0AY_VpZhGxyj3tfMc-7OylqpN6QMt42grmN-Huo_W9t4JNby1MV-wwwPCeSM0suPFRtRUOMYUclhnRNAMXDx5uMxkO1h_tKDG3lBuY9I7N_rjE7KEpAbgYnDCvNruMmNQTHjOPKcGmgLmdr4Xe1CgG_A7sSq3Nwu0d-yidYatVgO-lC1mtgsKNBDzIROs4IU1O812ac3h9TbQqRhZ8DBZq6WqjMa4dKIraUe3eQWRonzIrVrEWHoc4VLSlrRKyyZ5sF8NzEymzlEfG7DU_prnfhWSnXH1a2t2qcEQeyq8j_72gJBcQlZEdSonmZEjOWN27ftdYQM0q2et1w-ag19StCYbihFuHs4lni40iclQhRmNxcTiQ_XjdgkCXKwIDDcw8jOt-aydNABlyXQfS_OxiCk7uGVH3AabUOCUuovuadi6XFWuqFdZ_aADnZ0Ie0vx0QOxZc12MU1I3wiTIg53o37wgH7SuwDBBw4xkm-C9ZhV3EenBHAkgRoaDpegZftli9ntvFoRr-p6gmpdsmS3bDVS3on3SfkvGtKGMb9qIt_cBBTajyV5Z12iA_EvTc3EFz14zedXN0w1I9DrtpQku11SfRpsvqP0xDlYpi9l2v2M72_L3mFi7mI5OSshU5V4IvYYZ4TN1t_qA_1fBjVEYs8ZAnyJoS2JzYA00S9L7dwZ_8VMiZYeWoN2BxpkiwIt5QLf8oaCM1wHuD9ccPmkwO-u8xoe-E2vbyPiMZ_CNRGvnmeyo83h6iMH8Ugbo3mmu1Od3FgL8DNk2zm4vDE2IfnBi9u3jrK96fOTQ5F-1ChqAa3GgDwuWUnhEAr9aRWwotPPiLpNtbtJY6CchpIN860Adixx-8f43mF1FBl4FXgm_vm3Ww7Jl1rfXsb8uiRntuIq8oQ_7uu9crtM3M3kYOb2MYz29dQu8tpv53X2FwW5qmwxV5yfRlXdhun3M02ouMm1Uvx1lZ8optQk5nBxhsJ0wMXlkR1c9p6a5aafZwJ4m83ZnwtZx4_', 'User-Agent': 'google-api-nodejs-client/9.7.0', 'x-goog-api-client': 'gl-node/14.21.3', Accept: 'application/json' }, data: { scope: [Array], lifetime: '3600s' }, responseType: 'json', paramsSerializer: [Function: paramsSerializer], body: '{"scope":["https://www.googleapis.com/auth/cloud-platform"],"lifetime":"3600s"}', validateStatus: [Function: validateStatus], errorRedactor: [Function: defaultErrorRedactor] }, response: undefined, error: FetchError: Invalid response body while trying to fetch https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/kokoro-system-test@long-door-651.iam.gserviceaccount.com:generateAccessToken: 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://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/kokoro-system-test@long-door-651.iam.gserviceaccount.com:generateAccessToken: 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 IdentityPoolClient.getImpersonatedAccessToken (/workspace/build/src/auth/baseexternalclient.js:389:26) at async IdentityPoolClient.refreshAccessTokenAsync (/workspace/build/src/auth/baseexternalclient.js:317:38) 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://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/kokoro-system-test@long-door-651.iam.gserviceaccount.com:generateAccessToken', method: 'POST', headers: { 'Content-Type': 'application/json', Authorization: 'Bearer ya29.d.c0AY_VpZhGxyj3tfMc-7OylqpN6QMt42grmN-Huo_W9t4JNby1MV-wwwPCeSM0suPFRtRUOMYUclhnRNAMXDx5uMxkO1h_tKDG3lBuY9I7N_rjE7KEpAbgYnDCvNruMmNQTHjOPKcGmgLmdr4Xe1CgG_A7sSq3Nwu0d-yidYatVgO-lC1mtgsKNBDzIROs4IU1O812ac3h9TbQqRhZ8DBZq6WqjMa4dKIraUe3eQWRonzIrVrEWHoc4VLSlrRKyyZ5sF8NzEymzlEfG7DU_prnfhWSnXH1a2t2qcEQeyq8j_72gJBcQlZEdSonmZEjOWN27ftdYQM0q2et1w-ag19StCYbihFuHs4lni40iclQhRmNxcTiQ_XjdgkCXKwIDDcw8jOt-aydNABlyXQfS_OxiCk7uGVH3AabUOCUuovuadi6XFWuqFdZ_aADnZ0Ie0vx0QOxZc12MU1I3wiTIg53o37wgH7SuwDBBw4xkm-C9ZhV3EenBHAkgRoaDpegZftli9ntvFoRr-p6gmpdsmS3bDVS3on3SfkvGtKGMb9qIt_cBBTajyV5Z12iA_EvTc3EFz14zedXN0w1I9DrtpQku11SfRpsvqP0xDlYpi9l2v2M72_L3mFi7mI5OSshU5V4IvYYZ4TN1t_qA_1fBjVEYs8ZAnyJoS2JzYA00S9L7dwZ_8VMiZYeWoN2BxpkiwIt5QLf8oaCM1wHuD9ccPmkwO-u8xoe-E2vbyPiMZ_CNRGvnmeyo83h6iMH8Ugbo3mmu1Od3FgL8DNk2zm4vDE2IfnBi9u3jrK96fOTQ5F-1ChqAa3GgDwuWUnhEAr9aRWwotPPiLpNtbtJY6CchpIN860Adixx-8f43mF1FBl4FXgm_vm3Ww7Jl1rfXsb8uiRntuIq8oQ_7uu9crtM3M3kYOb2MYz29dQu8tpv53X2FwW5qmwxV5yfRlXdhun3M02ouMm1Uvx1lZ8optQk5nBxhsJ0wMXlkR1c9p6a5aafZwJ4m83ZnwtZx4_', 'User-Agent': 'google-api-nodejs-client/9.7.0', 'x-goog-api-client': 'gl-node/14.21.3', Accept: 'application/json' }, data: { scope: [Array], lifetime: '3600s' }, responseType: 'json', paramsSerializer: [Function: paramsSerializer], body: '{"scope":["https://www.googleapis.com/auth/cloud-platform"],"lifetime":"3600s"}', validateStatus: [Function: validateStatus], errorRedactor: [Function: defaultErrorRedactor] }, response: undefined, error: FetchError: Invalid response body while trying to fetch https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/kokoro-system-test@long-door-651.iam.gserviceaccount.com:generateAccessToken: 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:392:12) at processTicksAndRejections (internal/process/task_queues.js:95:5)</failure>
</testcase>
flaky-bot[bot] commented 6 months ago

Looks like this issue is flaky. :worried:

I'm going to leave this open and stop commenting.

A human should fix and close this.


When run at the same commit (fc8dfe9d373e30dd1bd06eb8cbb8b52e735b4d83), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge).