Skip to content

Commit 85813ae

Browse files
theogravityTheo Gravity
authored and
Theo Gravity
committed
Set request timeout to 60s
1 parent e93e2ef commit 85813ae

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
@@ -219,6 +219,8 @@ export default class DefaultRESTClient<RT, ERT> implements IRESTClient<RT, ERT>
219219
body: this.body as BodyInit,
220220
// @ts-ignore (Credentials are not supported on NodeJS)
221221
credentials: this.credentials,
222+
// 60-second timeout expressed in ms
223+
timeout: 60000,
222224
},
223225
);
224226

0 commit comments

Comments
 (0)