mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 11:04:59 +00:00
fix(infra): treat nested network request errors as non-fatal
This commit is contained in:
committed by
Peter Steinberger
parent
445c7a65e6
commit
daaad03593
@@ -93,6 +93,10 @@ describe("installUnhandledRejectionHandler - fatal detection", () => {
|
||||
Object.assign(new Error("DNS resolve failed"), { code: "UND_ERR_DNS_RESOLVE_FAILED" }),
|
||||
Object.assign(new Error("Connection reset"), { code: "ECONNRESET" }),
|
||||
Object.assign(new Error("Timeout"), { code: "ETIMEDOUT" }),
|
||||
Object.assign(new Error("A request error occurred: getaddrinfo EAI_AGAIN slack.com"), {
|
||||
code: "slack_webapi_request_error",
|
||||
original: { code: "EAI_AGAIN", syscall: "getaddrinfo", hostname: "slack.com" },
|
||||
}),
|
||||
];
|
||||
|
||||
for (const transientErr of transientCases) {
|
||||
|
||||
Reference in New Issue
Block a user