Timeout for nomerogram query
This commit is contained in:
parent
8473564260
commit
bcd8d91cb5
@ -22,7 +22,7 @@ class NomerogramProvider {
|
||||
console.log('secret: ', secret);
|
||||
|
||||
let url = `${baseUrl}/group/list?from=${from}&carplate=${number}×tamp=${timestamp}&secret=${secret}&app_id=${appId}&device_id=${deviceId}`;
|
||||
let result = await fetch(utf8.encode(url));
|
||||
let result = await fetch(utf8.encode(url), { timeout: 30000 });
|
||||
let json = await result.json();
|
||||
|
||||
if(!json.success) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user