-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shopify headers stripped from Remix GraphQL client responses #637
Comments
Hi @hsdonkin, thank you for opening this issue. We can definitely look into adding headers back to the response, I'll add this to our backlog. |
Cheers Matteo! It's giving me a really bad time with Shopify support right now because they keep asking about the |
We're labeling this issue as stale because there hasn't been any activity on it for 60 days. While the issue will stay open and we hope to resolve it, this helps us prioritize community requests. You can add a comment to remove the label if it's still relevant, and we can re-evaluate it. |
We're labeling this issue as stale because there hasn't been any activity on it for 60 days. While the issue will stay open and we hope to resolve it, this helps us prioritize community requests. You can add a comment to remove the label if it's still relevant, and we can re-evaluate it. |
I asked Shopify support for help, he asked me to provide the request id, the return I got through Graphql request return contains only 3 fields: data, extensions, errors, I can't get the request id in the headers.
|
Issue summary
Shopify headers like
x-request-id
are missing from the GraphQL client responses. It looks like these headers were originally passed on to the Response object returned byquery()
, but aren't included anymore2e56ff3#diff-047f59df7546492ff3ec1669214d3aa77d47fb12c6488529d0366479a3a06f0eR30
@shopify/[email protected]
Expected behavior
When logging responses from the GraphQL client, headers like
x-request-id
should be included on the responseActual behavior
No headers are returned on response
Steps to reproduce the problem
npm init @shopify/app@latest
console.log(await admin.graphql( ... ))
npm i @shopify/[email protected]
The text was updated successfully, but these errors were encountered: