mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 05:43:55 +00:00
tweak: retry err
This commit is contained in:
parent
4b6575999d
commit
99e2112807
@ -611,8 +611,7 @@ export namespace MessageV2 {
|
||||
},
|
||||
{ cause: e },
|
||||
).toObject()
|
||||
case (e as SystemError)?.code === "ECONNRESET" &&
|
||||
(e as SystemError)?.message.includes("The socket connection was closed unexpectedly"):
|
||||
case (e as SystemError)?.code === "ECONNRESET":
|
||||
return new MessageV2.APIError(
|
||||
{
|
||||
message: "Connection reset by server",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user