Fixing another timeout problem
This commit is contained in:
parent
d42ec39038
commit
d394f265c5
@ -1,4 +1,3 @@
|
||||
import AbortController from 'abort-controller';
|
||||
import DebugInfo from '../models/DebugInfo.js';
|
||||
import Vehicle from '../models/vehicle.js';
|
||||
import Utils from '../utils/utils.js';
|
||||
@ -20,15 +19,16 @@ class Vin01Provider {
|
||||
}
|
||||
|
||||
static async runCheck(type, vin, token) {
|
||||
let result = await fetchWithTimeout(reportBaseUrl, {
|
||||
let result = await fetch(reportBaseUrl, {
|
||||
method: 'POST',
|
||||
body: new URLSearchParams({
|
||||
typeCheckValue: type,
|
||||
vinValue: vin,
|
||||
key: token,
|
||||
token: null
|
||||
})
|
||||
}, 25000);
|
||||
}),
|
||||
signal: AbortSignal.timeout(14000)
|
||||
});
|
||||
console.log('Vin01 response for: ', type);
|
||||
return await result.json();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user