App Management API returns 404 "Cannot find a valid organization" for newly created org - CLI fully blocked
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- graphql, typescript
- Domain
- api, backend-api-design, cli
Research direction
Start with the shopify app config link and shopify app dev request path to the App Management GraphQL endpoint named in the issue. Check whether the organization lookup fails for the reported organization; done means identifying or resolving why the API returns Cannot find a valid organization for it. The issue does not name files or tests, and says backend verification is needed.
Written by the indexing model from the issue text.
Description
Please confirm that you have:
- Reproduced the issue in the latest CLI version.
- Searched existing issues to see if your issue is a duplicate. (If you've found a duplicate issue, feel free to add additional information in a comment on it.)
In which of these areas are you experiencing a problem?
App
Expected behavior
shopify app config link / shopify app dev should resolve my organization and app record. The organization and app record are fully visible and functional on dev.shopify.com (web dashboard) under the same authenticated account.
Actual behavior
Every app command fails with HTTP 404 from the App Management GraphQL API: Cannot find a valid organization. This blocks app dev, app config link and app init entirely - we cannot upload our theme app extension or run preview.
Verbose reproduction (session token is valid, note It's expired: false):
$ shopify app config link --client-id bd8fb17b98cbe5db668095c63e8a602d --verbose
2026-10-05T06:13:11.855Z: - Token validation -> It's expired: false
2026-10-05T06:13:11.866Z: Sending "App Management" GraphQL request:
query ActiveAppReleaseFromApiKey($apiKey: String!) {
app: appByKey(key: "bd8fb...") { ...AppVersionInfo }
}
to https://app.shopify.com/app_management/unstable/graphql.json
# -> HTTP 404 "Cannot find a valid organization"
# Request ID: 01a10ab1-e08c-7faa-80b7-c9722543f172-1791180791
Timeline
- Organization created today (Oct 5, 2026) on dev.shopify.com; the first CLI attempt ~2h later already failed with the same 404. It has never succeeded.
- This is the only organization on the account (no comparison case).
- Re-auth (
shopify auth logout+ fresh device login), CLI 4.8.4 (latest stable) and nightly builds all fail identically - not a CLI release regression. - Partner Support ticket was filed first; support confirmed this needs backend verification and routed us here.
Details
- OS: Linux amd64 - CLI version: 4.8.4 - Node: 22.22.2 - auth method: device_auth
- Organization IDs: 239033978 (dev.shopify.com) / Partner org 5231408
- App Client ID: bd8fb17b98cbe5db668095c63e8a602d
- Dev store: mothertalk-dev.myshopify.com
- Partner Support Request ID: 7e47ea36-0fa8-45db-8877-bf3a59c5b885-1791177500
- Failing endpoint:
https://app.shopify.com/app_management/unstable/graphql.json
Ask: verify App Management API provisioning for organizations 239033978 / 5231408 - the org appears unresolvable on the App Management backend while everything on the web dashboard side is normal.
- Dominant language
- TypeScript
- Stars
- 778
- Forks
- 306
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 108
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Shopify/cli
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 5/100
Maintainers usually reply within 1 day
-
[Bug]: `theme dev --theme-editor-sync` re-downloads config/settings_data.json every ~45s when it contains a "/" (checksum mismatch)Possibly taken @efegokdemir claimed this 19 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Shopify/cli#9072 · 1 comment ·
Maintainers usually reply within 1 day
-
A background token refresh failure in a non-interactive process wipes every saved CLI session (all accounts)Possibly taken @efegokdemir claimed this 36 days ago. Open
Difficulty 5/5 Over a week Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
[Bug]: app-logs poll returns HTTP 400 "Malformed JWT" — `shopify app dev` loops "Error while polling app logs" (CLI 4.9.4)Possibly taken @jay23606 claimed this 28 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 30/100
Shopify/cli#8906 · 1 comment · 3 reactions ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
lidofinance/validator-ejector#233 ·
Maintainers usually reply within 1 day
-
desktop: app-version.v1 in drafts.sqlite is never refreshed — reports 1.19.4 while running 2.3.2Openarea/desktop platform/windows type/feature version/v2
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
anomalyco/opencode#66079 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
ai-driven-qa bug claude Major
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
linagora/twake-mail-admin#742 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
OpenSlides/openslides-client#6728 ·
Maintainers usually reply within 1 day