App reviews, troubleshooting, and recommendations
Hi! Is someone experiencing an issue like this? Whenever I start my shopify app, within about one hour I get:
"Error: GraphQL Error (Code: 401): {"response":{"error":"","status":401,"headers":{}},"request":{"query":"\n query FindApp($apiKey: String!) {\n app(apiKey: $apiKey) {\n developmentStorePreviewEnabled\n }\n }\n","variables": ...".
I narrowed it down to being checkout extension. Tried to use different computer and partner account and still got the same issue.
Steps:
Happy to give more details if you think of anything. Here are my versions:
+1 same issue for me. i've had it in as little as 10 minutes or so. mine isn't a checkout extension; it seems just related to running the local dev server
stack trace isn't very helpful:
at makeRequest (file:///.../node_modules/graphql-request/build/esm/index.js:284:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async debugLogResponseInfo (file:///.../node_modules/@shopify/cli-kit/dist/private/node/api.js:13:20)
at async graphqlRequest (file:///.../node_modules/@shopify/cli-kit/dist/public/node/api/graphql.js:20:22)
I have the same error after idling for a short while.
Was working ok before I upgrade shopify cli.
Error: GraphQL Error (Code: 401): {"response":{"error":"","status":401,"headers":{}},"request":{"query":"\n query FindApp($apiKey: String!) {\n app(apiKey: $apiKey) {\n developmentStorePreviewEnabled\n }\n }\n","variables":{"apiKey":"XX"}}}
not sure if modify the esm/index.js to catch error rather than 'throw' will help..
I created an issue on github a few days ago, but still haven't gotten the response back. Hopefully it's the right repository. As for the issue - I'm still getting it.
https://github.com/Shopify/shopify-app-template-remix/issues/330
I had the same problem with the Shopify PHP Template.
In `.env` file I didn't give
This can happen due to a hung app state. To fix it, delete the .shopify folder from the root of your app, then rerun the app using the Shopify CLI. You’ll be prompted to log in to Shopify for verification, and everything should work fine afterward.
I have the same error, simple solution i try to solve it , check the node version in your environment, v22 or v18 ...
Make sure your request includes the Authorization header with a valid token.
Confirm the endpoint matches the type of query (Partners API vs Admin API).
If using Shopify CLI, try re-authenticating:
Steps:
1. shopify logout
2. shopify login
Sami B2B Wholesale — Unlock powerful wholesale features
Sami Request a Quote — Let customers request quotes easily
If our reply helped, please give it a Like or mark it as a Solution!
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025