We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93463a9 commit 5756ebdCopy full SHA for 5756ebd
1 file changed
src/App/src/utils/httpClient.ts
@@ -70,7 +70,7 @@ class HttpClient {
70
}
71
const contentType = response.headers.get('content-type') || '';
72
if (!contentType.toLowerCase().includes('application/json')) {
73
- throw new Error(`${config.method || 'GET'} ${url} returned non-JSON response`);
+ throw new Error(`${config.method || 'GET'} ${url} returned non-JSON response (content-type: ${contentType || 'unknown'})`);
74
75
return response.json();
76
0 commit comments