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]: Shopify CLI returns: The Admin GraphQL API responded unsuccessfully with the HTTP status 502 and errors: {} #5247

Open
2 tasks done
t-haak-tqgg opened this issue Jan 21, 2025 · 3 comments
Labels
Area: @shopify/theme @shopify/theme package issues Severity: 2 High Severity Type: Bug Something isn't working

Comments

@t-haak-tqgg
Copy link

t-haak-tqgg commented Jan 21, 2025

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?

Theme

Expected behavior

We are migrating from Themekit to Shopify CLI, which should be a simple migration.
Just a drop in replacement, use Shopify CLI in our CI like described here:
https://shopify.dev/docs/storefronts/themes/tools/cli/ci-cd

Actual behavior

Using this in our Github CI, Themekit works fine, but using Shopify CLI we get this error:

Running command: yarn shopify theme push --*** --theme=*** --store=*** --path=dist
Error: Command failed: yarn shopify theme push --*** --theme=*** --*** --path=dist

╭─ error ──────────────────────────────────────────────────────────────────────╮
│                                                                              │
│                                                                              │
│  The Admin GraphQL API responded unsuccessfully with the HTTP status 502     │
│  and errors:                                                                 │
│                                                                              │
│  {}                                                                          │
│                                                                              │
│  Request ID: 103211e2-1da2-45a5-96f9-c5c167511e42-1737455699                 │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

╭─ error ──────────────────────────────────────────────────────────────────────╮
│                                                                              │
│                                                                              │
│  The Admin GraphQL API responded unsuccessfully with the HTTP status 502     │
│  and errors:                                                                 │
│                                                                              │
│  {}                                                                          │
│                                                                              │
│  Request ID: 103211e2-1da2-45a5-96f9-c5c167511e42-1737455699                 │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

error Command failed with exit code 1.

And I can't find a fix to this problem

Also, running it locally, I sometimes get the same error, sometimes the error that I don't have enough rights and need to be a Shop Owner (even though I am).

Verbose output

Verbose output
Error: stdout maxBuffer length exceeded

Reproduction steps

We just installed latest Shopify CLI and ran yarn shopify theme push --*** --theme=*** --store=***.

Operating System

ubuntu-24.04

Shopify CLI version (shopify --version)

3.74.0

Shell

No response

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

20.18.1

What language and version are you using in your application?

No response

@t-haak-tqgg t-haak-tqgg added the Type: Bug Something isn't working label Jan 21, 2025
@craigmichaelmartin craigmichaelmartin added the Area: @shopify/theme @shopify/theme package issues label Jan 21, 2025
@gallagherdkd
Copy link

Were seeing this too, Deploy scripts work locally, but not in CI

@aswamy aswamy added Theme Sev-2 second highest severity for theme related bug Severity: 2 High Severity and removed Theme Sev-2 second highest severity for theme related bug labels Jan 23, 2025
@Mooh07
Copy link

Mooh07 commented Jan 28, 2025

Same issue on my end.

Downgraded to multiple 3.6x versions and nothing worked.

Eventually I changed my network and it stopped even giving the error, it just stays with no logs.

Currently at latest version it stops at this with --verbose it stops at:

2025-01-28T20:58:27.350Z: Ignoring theme file config/settings_schema.json via .shopifyignore...
2025-01-28T20:58:27.461Z: Files to be deleted:

@AndrewKuktenko
Copy link

AndrewKuktenko commented Jan 30, 2025

We are seen this error when running our deployment scripts. Any solution for that?

Request ID: 3642b699-8681-4aa3-b8f3-6b8945f1dcd2-1738280474

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