fix: admin/internet: timeout on Verify
Massimo Melina committed
Nov 5, 2023 at 17:59 UTC
6792f746985650154f762edec1482cb3011a86a4
1 file changed
+1
-1
src/selfCheck.ts
+1
-1
@@ -39,7 +39,7 @@ export async function selfCheck(url: string) {
39
console.log('trying external service', service)
40
body = applySymbols(body)
41
serviceUrl = applySymbols(serviceUrl)!
42
- const res = await haveTimeout(10_000, httpString(serviceUrl, { family, ...rest, body }))
42
+ const res = await haveTimeout(6_000, httpString(serviceUrl, { family, ...rest, body }))
43
const success = new RegExp(regexpSuccess).test(res)
44
const failure = new RegExp(regexpFailure).test(res)
45
if (success === failure) throw 'inconsistent: ' + service + ': ' + res // this result cannot be trusted