lloydzhou 1 tahun lalu
induk
melakukan
2c74559010
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  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);