We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7aa02bc commit 68d80e9Copy full SHA for 68d80e9
index.js
@@ -237,7 +237,12 @@ TuyaCloud.prototype.request = async function (options) {
237
debug('Sending parameters:');
238
debug(JSON.stringify(pairs));
239
240
- const apiResult = await got(this.endpoint, {searchParams: pairs});
+ const apiResult = await got(this.endpoint, {
241
+ searchParams: pairs,
242
+ timeout: {
243
+ request: 10000
244
+ }
245
+ });
246
const data = JSON.parse(apiResult.body);
247
248
debug('Received response:');
0 commit comments