lloydzhou 1 ano atrás
pai
commit
2c74559010
1 arquivos alterados com 2 adições e 1 exclusões
  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);