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

samples for external-account: should acquire ADC for AWS creds failed #1780

Closed
flaky-bot bot opened this issue Mar 25, 2024 · 2 comments · Fixed by #1791
Closed

samples for external-account: should acquire ADC for AWS creds failed #1780

flaky-bot bot opened this issue Mar 25, 2024 · 2 comments · Fixed by #1791
Assignees
Labels
flakybot: flaky Tells the Flaky Bot not to close or comment on this issue. flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p2 Moderately-important priority. Fix may not be included in next release. samples Issues that are directly related to samples. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@flaky-bot
Copy link

flaky-bot bot commented Mar 25, 2024

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


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

@flaky-bot flaky-bot bot added flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Mar 25, 2024
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Mar 25, 2024
Copy link
Author

flaky-bot bot commented Mar 26, 2024

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 (fc8dfe9), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge).

@flaky-bot flaky-bot bot added the flakybot: flaky Tells the Flaky Bot not to close or comment on this issue. label Mar 26, 2024
@danielbankhead
Copy link
Member

Extracted error:

<testcase classname="samples for external-account" name="should acquire ADC for AWS creds" time="0.277">
<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 AwsClient.refreshAccessTokenAsync (/workspace/build/src/auth/baseexternalclient.js:315:29) at async AwsClient.getAccessToken (/workspace/build/src/auth/baseexternalclient.js:165:13) at async AwsClient.getRequestHeaders (/workspace/build/src/auth/baseexternalclient.js:182:37) at async AwsClient.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/aws 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 AwsClient.refreshAccessTokenAsync (/workspace/build/src/auth/baseexternalclient.js:315:29) at async AwsClient.getAccessToken (/workspace/build/src/auth/baseexternalclient.js:165:13) at async AwsClient.getRequestHeaders (/workspace/build/src/auth/baseexternalclient.js:182:37) at async AwsClient.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/aws 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:430:12) at processTicksAndRejections (internal/process/task_queues.js:95:5)</failure>
</testcase>

@danielbankhead danielbankhead self-assigned this Mar 29, 2024
@danielbankhead danielbankhead added priority: p2 Moderately-important priority. Fix may not be included in next release. and removed priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. labels Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flakybot: flaky Tells the Flaky Bot not to close or comment on this issue. flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p2 Moderately-important priority. Fix may not be included in next release. samples Issues that are directly related to samples. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant