lloydzhou 1 年之前
父节点
当前提交
2c74559010
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/utils/stream.ts

+ 2 - 1
app/utils/stream.ts

@@ -100,7 +100,8 @@ export function fetch(url: string, options?: RequestInit): Promise<any> {
       })
       .catch((e) => {
         console.error("stream error", e);
-        throw e;
+        // throw e;
+        return new Response("", { status: 599 });
       });
   }
   return window.fetch(url, options);