This commit is contained in:
Daniel 2024-09-26 23:24:46 +08:00
parent 7c7d8af650
commit c3ae2a30f0
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -67,7 +67,7 @@ export const fetchPost = (url: string, data?: any, cb?: (response: IWebSocketDat
cb(response);
}
}).catch((e) => {
console.warn("fetch post error", e);
console.warn("fetch post failed [" + e + "], url [" + url + "]");
if (url === "/api/transactions" && (e.message === "Failed to fetch" || e.message === "Unexpected end of JSON input")) {
kernelError();
return;