lloydzhou 1 год назад
Родитель
Сommit
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);