Skip to content

Commit abb930f

Browse files
committed
Set request timeout to 60s
1 parent 0ac2d0e commit abb930f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/DefaultRESTClient.ts

+2
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ export default class DefaultRESTClient<RT, ERT> implements IRESTClient<RT, ERT>
183183
body: this.body as BodyInit,
184184
// @ts-ignore (Credentials are not supported on NodeJS)
185185
credentials: this.credentials,
186+
// 60-second timeout expressed in ms
187+
timeout: 60000,
186188
},
187189
);
188190

0 commit comments

Comments
 (0)