Skip to content

Commit af96cc0

Browse files
auth: TimeoutError OIDC client fix attempt (aws#5213)
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]>
1 parent 719628e commit af96cc0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/core/src/auth/sso/clients.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ export class OidcClient {
120120
{ retryDecider: updatedRetryDecider }
121121
),
122122
customUserAgent: getUserAgent({ includePlatform: true, includeClientId: true }),
123+
requestHandler: {
124+
requestTimeout: 30_000,
125+
},
123126
})
124127

125128
addLoggingMiddleware(client)

0 commit comments

Comments
 (0)