Skip to content
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

[Bug]: The Admin GraphQL API responded unsuccessfully with errors #5094

Closed
2 tasks done
magify-expert-shopify opened this issue Dec 12, 2024 · 6 comments
Closed
2 tasks done
Labels
Area: @shopify/theme @shopify/theme package issues Severity: 2 High Severity Type: Bug Something isn't working

Comments

@magify-expert-shopify
Copy link

Please confirm that you have:

  • 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.)
  • Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?

App

Expected behavior

Pull the code from shopify to locale

Actual behavior

API Error

 The Admin GraphQL API responded unsuccessfully with errors:                 │
│                                                                              │
│  [                                                                           │
│    {                                                                         │
│      "message": "Internal error. Looks like something went wrong on our      │
│  end.\nRequest ID: 7b5e6663-37f6-48d2-a7b7-c2dc2fd07b1d-1734005670 (include  │
│   this in support requests).",                                               │
│      "extensions": {                                                         │
│        "code": "INTERNAL_SERVER_ERROR",                                      │
│        "requestId": "7b5e6663-37f6-48d2-a7b7-c2dc2fd07b1d-1734005670"        │
│      }                                                                       │
│    }                                                                         │
│  ]

Verbose output

Verbose output
> shopify theme pull --store muscsoyeux --theme Magify --ignore package.json


╭─ error ──────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                      │
│                                                                                                      │
│  The Admin GraphQL API responded unsuccessfully with errors:                                         │
│                                                                                                      │
│  [                                                                                                   │
│    {                                                                                                 │
│      "message": "Internal error. Looks like something went wrong on our end.\nRequest ID:            │
│  f7fa983d-7cb2-4686-9fd6-a288c8a949ef-1734005682 (include this in support requests).",               │
│      "extensions": {                                                                                 │
│        "code": "INTERNAL_SERVER_ERROR",                                                              │
│        "requestId": "f7fa983d-7cb2-4686-9fd6-a288c8a949ef-1734005682"                                │
│      }                                                                                               │
│    }                                                                                                 │
│  ]                                                                                                   │
│                                                                                                      │
│  Request ID: f7fa983d-7cb2-4686-9fd6-a288c8a949ef-1734005682                                         │
│                                                                                                      │
│                                                                                                      │
│  To investigate the issue, examine this stack trace:                                                 │
│    at makeRequest                                                                                    │
│    (Users/Admin/AppData/Roaming/npm/node_modules/@shopify/cli/dist/chunk-D4DJJ4PZ.js:27246)          │
│    at processTicksAndRejections (node:internal/process/task_queues:95)                               │
│    at async makeVerboseRequest                                                                       │
│    (Users/Admin/AppData/Roaming/npm/node_modules/@shopify/cli/dist/chunk-D4DJJ4PZ.js:27276)          │
│    at async retryAwareRequest                                                                        │
│    (Users/Admin/AppData/Roaming/npm/node_modules/@shopify/cli/dist/chunk-D4DJJ4PZ.js:27363)          │
│    at (Users/Admin/AppData/Roaming/npm/node_modules/@shopify/cli/dist/chunk-3QKHLZPS.js:3453)        │
│    at (Users/Admin/AppData/Roaming/npm/node_modules/@shopify/cli/dist/chunk-3IUDQUHD.js:29973)       │
│    at async fetchThemeAssets                                                                         │
│    (Users/Admin/AppData/Roaming/npm/node_modules/@shopify/cli/dist/index.js:149387)                  │
│    at async downloadFiles                                                                            │
│    (Users/Admin/AppData/Roaming/npm/node_modules/@shopify/cli/dist/index.js:154237)                  │
│    at async runTask2                                                                                 │
│    (Users/Admin/AppData/Roaming/npm/node_modules/@shopify/cli/dist/chunk-3IUDQUHD.js:31282)          │
│    at (Users/Admin/AppData/Roaming/npm/node_modules/@shopify/cli/dist/chunk-3IUDQUHD.js:31296)       │
│                                                                                                      │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────╯

Reproduction steps

  1. Run shopify theme pull command

Operating System

Windows 11

Shopify CLI version (shopify --version)

@shopify/cli/3.72.0 win32-x64 node-v22.5.1

Shell

PowerShell

Node version (run node -v if you're not sure)

v22.5.1

What language and version are you using in your application?

ruby 3.0.6p216 (2023-03-30 revision 23a532679b) [x64-mingw32]

@magify-expert-shopify magify-expert-shopify added the Type: Bug Something isn't working label Dec 12, 2024
@azycimo
Copy link

azycimo commented Dec 12, 2024

Duplicate of #5031. Temporary solution is to downgrade Shopify CLI. In that thread, it's downgrade to 3.70.0, but I had to go back to 3.69.x to get theme pull working again.

@frandiox frandiox added the Area: @shopify/theme @shopify/theme package issues label Dec 13, 2024
@HandHugs
Copy link

same error happening for me :(

@graygilmore
Copy link
Contributor

@HandHugs if you have any request IDs to add that we can look into that would be great.

@Waynenabors
Copy link

I have another one from today if it helps 3cf80078-66db-4a1a-9d0d-f984cd5a403b-1734380135

@graygilmore
Copy link
Contributor

Looks like this is related to #5010 and we've found the final edge case here. This error is being caused when an empty file is being uploaded to the assets directory and attempted to be read back. A short term fix for users experiencing this is to find and remove any empty files in your theme folder:

find . -type f -empty

In the mean time we'll be working on a fix to allow assets to also work as empty files. Thank you for your patience.

@graygilmore
Copy link
Contributor

✅ you should no longer see this error when your theme has empty files in the assets folder. If you see this bug again please create a new issue, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: @shopify/theme @shopify/theme package issues Severity: 2 High Severity Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants