diff --git a/apps/webapp/app/utils/longPollingFetch.ts b/apps/webapp/app/utils/longPollingFetch.ts index 94ea0851d..7d183d3ac 100644 --- a/apps/webapp/app/utils/longPollingFetch.ts +++ b/apps/webapp/app/utils/longPollingFetch.ts @@ -12,7 +12,8 @@ export async function longPollingFetch(url: string, options?: RequestInit) { // Check if the response is ok (status in the range 200-299) if (!response.ok) { - throw new Error(`HTTP error! status: ${response.status}`); + const body = await response.text(); + throw new Error(`HTTP error! status: ${response.status}. ${body}`); } if (response.headers.get(`content-encoding`)) {