Fix ephemeral response body reading

This commit is contained in:
Gregory Schier
2025-09-22 14:07:25 -07:00
parent 8fe50959b9
commit b3414ee60f
7 changed files with 11 additions and 13 deletions

View File

@@ -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}`,