You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
Hi, the headers are not included in response when there's an error:
letproducts;try{products=awaitclient.query({data: `{ products (first: 10) { edges { node { id title descriptionNotExistentToGetERror } } } }`,});}catch(error){if(errorinstanceofShopifyErrors.GraphqlQueryError){// goes here//error.response.errors is set// err.response.headers is not set}else{// handle other errors}// the entire err object doesn't include any headers}
Expected behavior
err should include response.headers, but it's not included. Shopify code:
thrownewShopifyErrors.GraphqlQueryError({message: 'GraphQL query returned errors',response: result.body,});
Checklist
I have described this issue in a way that is actionable (if possible)
Issue summary
Hi, the headers are not included in response when there's an error:
Expected behavior
err should include response.headers, but it's not included. Shopify code:
Checklist
See also #340
The text was updated successfully, but these errors were encountered: