Hello there,
I’m currently developing a Shopify app using Remix
At the moment, my colleagues and I are encountering an error when running the app locally using the shopify app dev command.
Strangely, everything was working fine yesterday, but today we’re all facing the same issue, and we’re not sure what’s causing it.
Here is the error we’re getting:
GraphQL Error (Code: 401):
{“response”:{“error”:“”,“status”:401,“headers”:{}},“request”:{“query”:“\n query FindApp($apiKey: String!) {\n app(apiKey: $apiKey) {\n id\n title\n apiKey\n organizationId\n apiSecretKeys {\n secret\n }\n appType\n grantedScopes\n applicationUrl\n redirectUrlWhitelist\n requestedAccessScopes\n webhookApiVersion\n embedded\n posEmbedded\n preferencesUrl\n gdprWebhooks {\n customerDeletionUrl\n customerDataRequestUrl\n shopDeletionUrl\n }\n appProxy {\n subPath\n subPathPrefix\n url\n }\n developmentStorePreviewEnabled\n disabledFlags\n }\n }\n”,“variables”:{“apiKey”:“b55958b176dcfd4e0bec22d6ea04468e”}}
Has anyone experienced this issue or knows how to fix it?
Any help would be greatly appreciated. Thank you!
1 Like
Hey @manh_nd_btn,
Is the issue still occurring? If so, can you confirm which networking option you’re using? Select a networking option for local development ?
If you try a different option does it work?
I would also suggest to do some local troubleshooting by logging out of the CLI and Shopify and clearing cache and cookies to see if that resolves it.
1 Like
Hi KyleG-Shopify,
The issue was resolved yesterday after I followed your suggestions — logging out of the Shopify CLI and my Shopify account, and clearing my browser’s cache and cookies.
However, the issue has returned again this morning.
I’m still using the default networking option, which means Shopify CLI is using
Cloudflare for tunneling
Hey @manh_nd_btn,
Are you and your team working on the same app from multiple machines? The reason I ask is running app dev would be updating your tunnel URLs each time, which may explain the errors.
Hey @manh_nd_btn, are you still experiencing this issue?
I have been having the same issue in the last hour - I haven’t made any code changes or changed my dev setup - seeing 401s whenever I try and use my embedded app:
Application Error: {
20:42:01 │ remix │ error: ErrorResponseImpl {
20:42:01 │ remix │ status: 401,
20:42:01 │ remix │ statusText: 'Unauthorized',
20:42:01 │ remix │ internal: false,
20:42:01 │ remix │ data: ''
20:42:01 │ remix │ },
20:42:01 │ remix │ path: '/app',
20:42:01 │ remix │ search: '?embedded=1&hmac=8d541ed4085814fb4f185106a69b3eaa7c4e2a3e6a861543d2c6c74f3a49cf64&host=Y
WRtaW4uc2hvcGlmeS5jb20vc3RvcmUvZGV2LWZsYXJlMy1hbGV4&locale=en&session=61772191504ac3cf3c2098e0924b1d4a59b9f56b6f3ae8c932426ad497420e40&sho
p=dev-flare3-alex.myshopify.com×tamp=1760384522',
20:42:01 │ remix │ url: null,
20:42:01 │ remix │ timestamp: '2025-10-14T19:42:01.429Z',
20:42:01 │ remix │ userAgent: 'Node.js/23'
20:42:01 │ remix │ }
Has something internally changed in the last day or so? I’ve tried on incognito browser, logged out and logged back into my shopify CLI to no avail.
Hey @Alex_Hooper, are you using localhost, cloudflare or your own tunnel for development? If you try an alternate method does it work for you?
Hey Kyle - yes it was my bad, I was running a VPN. turning that off fixed it 
Ah, good to know! I’ll add that to my list of things to check when we get similar reports. 