mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-21 17:09:37 +01:00
Fix ephemeral response body reading
This commit is contained in:
@@ -66,7 +66,7 @@ export function useIntrospectGraphQL(
|
||||
return setError(response.error);
|
||||
}
|
||||
|
||||
const bodyText = await getResponseBodyText({ responseId: response.id, filter: null });
|
||||
const bodyText = await getResponseBodyText({ response, filter: null });
|
||||
if (response.status < 200 || response.status >= 300) {
|
||||
return setError(
|
||||
`Request failed with status ${response.status}.\nThe response text is:\n\n${bodyText}`,
|
||||
|
||||
Reference in New Issue
Block a user