Match fetchData error with TIMEOUT ErrorInfo.
This commit is contained in:
parent
f9943b4185
commit
ae8163b1ae
@ -136,7 +136,7 @@ export async function fetchData(connection: string | FetchRequest | ConnectionIn
|
||||
|
||||
const remainingTime = getTime() - t0;
|
||||
if (remainingTime < 0) {
|
||||
return logger.throwError("timeout", "TIMEOUT", { operation: "request", request });
|
||||
return logger.throwError("timeout", "TIMEOUT", { operation: "request", reason: "timeout", request });
|
||||
}
|
||||
|
||||
response = await getUrl(request, remainingTime);
|
||||
|
Loading…
Reference in New Issue
Block a user