Skip to content

Commit

Permalink
auth: TimeoutError OIDC client fix attempt (aws#5213)
Browse files Browse the repository at this point in the history
During API calls with the OIDC client the request would
time out and we would get TimeoutError.

Solution:

See if adding an explicit request timeout amount will avoid this

Signed-off-by: Nikolas Komonen <[email protected]>
  • Loading branch information
nkomonen-amazon authored Jun 24, 2024
1 parent 719628e commit af96cc0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/src/auth/sso/clients.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ export class OidcClient {
{ retryDecider: updatedRetryDecider }
),
customUserAgent: getUserAgent({ includePlatform: true, includeClientId: true }),
requestHandler: {
requestTimeout: 30_000,
},
})

addLoggingMiddleware(client)
Expand Down

0 comments on commit af96cc0

Please sign in to comment.