Shopify / cli

Build apps, themes, and hydrogen storefronts for Shopify
https://shopify.dev
MIT License
411 stars 125 forks source link

[Bug]: shopify app dev has been failing for the last 6 hours due to 504 from Partners GraphQL API #4280

Closed seven-binoche closed 1 month ago

seven-binoche commented 1 month ago

Please confirm that you have:

In which of these areas are you experiencing a problem?

App

Expected behavior

shopify app dev should have executed correctly

Actual behavior

shopify app dev failed, with the following message:

The Partners GraphQL API responded unsuccessfully with the HTTP status 504 and errors: {}

Verbose output

deep@Deeps-Laptop backgrounds-app % shopify app dev --verbose
2024-08-07T14:26:54.522Z: Running command app dev
2024-08-07T14:26:54.540Z: Getting a random port...
2024-08-07T14:26:54.555Z: Random port obtained: 49491
2024-08-07T14:26:55.398Z: cloudflared already installed, skipping
2024-08-07T14:26:55.403Z: 
Running system process:
  · Command: /opt/homebrew/Cellar/shopify-cli/3.65.1/libexec/lib/node_modules/@shopify/cli/bin/cloudflared tunnel --url http://localhost:49491 --no-autoupdate
  · Working directory: /Users/deep/vto-deep-mvp/backgrounds-app

2024-08-07T14:26:55.408Z: Reading cached app information for directory /Users/deep/vto-deep-mvp/backgrounds-app...
2024-08-07T14:26:55.409Z: Reading the content of file at shopify.app.toml...
2024-08-07T14:26:55.414Z: Reading the content of file at shopify.app.toml...
2024-08-07T14:26:55.457Z: 2024-08-07T14:26:55Z INF Thank you for trying Cloudflare Tunnel. Doing so, without a Cloudflare account, is a quick way to experiment and try it out. However, be aware that these account-less Tunnels have no uptime guarantee. If you intend to use Tunnels in production you should use a pre-created named tunnel by following: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps
2024-08-07T14:26:55Z INF Requesting new quick Tunnel on trycloudflare.com...

2024-08-07T14:26:55.480Z: Reading cached app information for directory /Users/deep/vto-deep-mvp/backgrounds-app...
2024-08-07T14:26:55.481Z: Reading cached app information for directory /Users/deep/vto-deep-mvp/backgrounds-app...
2024-08-07T14:26:55.482Z: Reading cached app information for directory /Users/deep/vto-deep-mvp/backgrounds-app...
2024-08-07T14:26:55.482Z: Reading the content of file at shopify.app.toml...
2024-08-07T14:26:55.483Z: Reading the content of file at shopify.app.toml...
2024-08-07T14:26:55.543Z: Ensuring that the user is authenticated with the Partners API with the following scopes:
[]

2024-08-07T14:26:55.544Z: Getting session store...
2024-08-07T14:26:55.545Z: Validating existing session against the scopes:
[
  "openid",
  "https://api.shopify.com/auth/shop.admin.graphql",
  "https://api.shopify.com/auth/shop.admin.themes",
  "https://api.shopify.com/auth/partners.collaborator-relationships.readonly",
  "https://api.shopify.com/auth/shop.storefront-renderer.devtools",
  "https://api.shopify.com/auth/partners.app.cli.access",
  "https://api.shopify.com/auth/destinations.readonly"
]
For applications:
{
  "partnersApi": {
    "scopes": []
  }
}

2024-08-07T14:26:55.545Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-08-07T14:26:55.545Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.65.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-08-07T14:26:56.012Z: Request to https://accounts.shopify.com/oauth/introspection completed in 461 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"7ab8a66234d81e7ea1da88d16c569291"
 - x-request-id: 403d38cd-a412-414a-a469-92c6cac9d417-1723040815

2024-08-07T14:26:56.019Z: The identity token is valid: true
2024-08-07T14:26:56.019Z: 
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false

2024-08-07T14:26:56.020Z: Verifying that the user has a Partner organization
2024-08-07T14:26:56.025Z: Sending "Partners" GraphQL request:
  {
    organizations(first: 1) {
      nodes {
        id
      }
    }
  }

With request headers:
 - User-Agent: Shopify CLI; v=3.65.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-08-07T14:26:56.520Z: Request to https://partners.shopify.com/api/cli/graphql completed in 490 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"0d16316cf3410032e82b558dd4c6eff5"
 - x-request-id: 1912ad58-2945-4405-a617-5af46704a33f-1723040816

2024-08-07T14:26:56.525Z: Sending "Partners" GraphQL request:
  query currentAccountInfo {
    currentAccountInfo {
      __typename
      ... on ServiceAccount {
        orgName
      }
      ... on UserAccount {
        email
      }
    }
  }

With request headers:
 - User-Agent: Shopify CLI; v=3.65.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-08-07T14:26:56.927Z: Request to https://partners.shopify.com/api/cli/graphql completed in 399 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"4cbb69ecaeba842c758cfba6ee545076"
 - x-request-id: 10f23aaa-f6b6-4028-9900-141bc668d002-1723040816

2024-08-07T14:26:56.932Z: Sending "Partners" GraphQL request:
  query FindApp($apiKey: String!) {
    app(apiKey: $apiKey) {
      id
      title
      apiKey
      organizationId
      apiSecretKeys {
        secret
      }
      appType
      grantedScopes
      applicationUrl
      redirectUrlWhitelist
      requestedAccessScopes
      webhookApiVersion
      embedded
      posEmbedded
      preferencesUrl
      gdprWebhooks {
        customerDeletionUrl
        customerDataRequestUrl
        shopDeletionUrl
      }
      appProxy {
        subPath
        subPathPrefix
        url
      }
      developmentStorePreviewEnabled
      disabledFlags
    }
  }

With variables:
{
  "apiKey": "*****"
}

With request headers:
 - User-Agent: Shopify CLI; v=3.65.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-08-07T14:26:57.836Z: Request to https://partners.shopify.com/api/cli/graphql completed in 901 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"e251811f30937e2a92545bb9a7af15d2"
 - x-request-id: 0f41bc5f-06ef-4763-895b-f3d1d0e699ad-1723040816

2024-08-07T14:26:57.842Z: Sending "Partners" GraphQL request:
  query FindOrganization($id: ID!) {
    organizations(id: $id, first: 1) {
      nodes {
        id
        businessName
      }
    }
  }

With variables:
{
  "id": "3710411"
}

With request headers:
 - User-Agent: Shopify CLI; v=3.65.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-08-07T14:26:58.183Z: Request to https://partners.shopify.com/api/cli/graphql completed in 338 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"81617b802e9d665ce5a3aba1eeb71777"
 - x-request-id: 3eae4266-bc1f-4aee-8110-2b0eb62b8bd2-1723040817

2024-08-07T14:26:58.190Z: Sending "Partners" GraphQL request:
  query FindOrganization($orgId: ID!, $shopDomain: String) {
    organizations(id: $orgId, first: 1) {
      nodes {
        id
        businessName
        stores(shopDomain: $shopDomain, first: 1, archived: false) {
          nodes {
            shopId
            link
            shopDomain
            shopName
            transferDisabled
            convertableToPartnerTest
          }
        }
      }
    }
  }

With variables:
{
  "orgId": "3710411",
  "shopDomain": "quickstart-81f108b8.myshopify.com"
}

With request headers:
 - User-Agent: Shopify CLI; v=3.65.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-08-07T14:26:58.648Z: Request to https://partners.shopify.com/api/cli/graphql completed in 456 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"2eaf4ed1b87f5f83a1754904d7d2acfd"
 - x-request-id: 6b80e7bf-d880-4314-8dea-3696d381e2ef-1723040818

2024-08-07T14:26:58.655Z: Sending "Partners" GraphQL request:
  query fetchSpecifications($api_key: String!) {
    extensionSpecifications(apiKey: $api_key) {
      name
      externalName
      externalIdentifier
      identifier
      gated
      experience
      options {
        managementExperience
        registrationLimit
      }
      features {
        argo {
          surface
        }
      }
      validationSchema {
        jsonSchema
      }
    }
  }

With variables:
{
  "api_key": "236e160b05726d54ed996314851d30a9"
}

With request headers:
 - User-Agent: Shopify CLI; v=3.65.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-08-07T14:26:59.184Z: 2024-08-07T14:26:59Z INF +--------------------------------------------------------------------------------------------+
2024-08-07T14:26:59Z INF |  Your quick Tunnel has been created! Visit it at (it may take some time to be reachable):  |
2024-08-07T14:26:59Z INF |  https://market-filling-russia-adware.trycloudflare.com                                    |

2024-08-07T14:26:59.184Z: 2024-08-07T14:26:59Z INF +--------------------------------------------------------------------------------------------+

2024-08-07T14:26:59.185Z: 2024-08-07T14:26:59Z INF Cannot determine default configuration path. No file [config.yml config.yaml] in [~/.cloudflared ~/.cloudflare-warp ~/cloudflare-warp /etc/cloudflared /usr/local/etc/cloudflared]

2024-08-07T14:26:59.185Z: 2024-08-07T14:26:59Z INF Version 2024.6.1
2024-08-07T14:26:59Z INF GOOS: darwin, GOVersion: go1.22.2-devel-cf, GoArch: amd64

2024-08-07T14:26:59.185Z: 2024-08-07T14:26:59Z INF Settings: map[ha-connections:1 no-autoupdate:true protocol:quic url:http://localhost:49491]

2024-08-07T14:26:59.190Z: 2024-08-07T14:26:59Z INF Generated Connector ID: 82d818dc-3efb-424b-90d2-10064f3fd4ab

2024-08-07T14:26:59.212Z: 2024-08-07T14:26:59Z INF Initial protocol quic

2024-08-07T14:26:59.213Z: 2024-08-07T14:26:59Z INF ICMP proxy will use 192.168.29.4 as source for IPv4

2024-08-07T14:26:59.213Z: 2024-08-07T14:26:59Z INF ICMP proxy will use fe80::183d:44aa:3f6b:ef2d in zone en0 as source for IPv6

2024-08-07T14:26:59.214Z: 2024-08-07T14:26:59Z INF Created ICMP proxy listening on 192.168.29.4:0

2024-08-07T14:26:59.214Z: 2024-08-07T14:26:59Z INF Created ICMP proxy listening on [fe80::183d:44aa:3f6b:ef2d%en0]:0

2024-08-07T14:26:59.233Z: 2024-08-07T14:26:59Z INF Starting metrics server on 127.0.0.1:49502/metrics

2024-08-07T14:26:59.278Z: Request to https://partners.shopify.com/api/cli/graphql completed in 619 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"6ac79f8126e4cc1739e558469e73428c"
 - x-request-id: b3c83221-21ec-42ca-8370-2f884b0501ed-1723040818

2024-08-07T14:26:59.280Z: The following extension specifications were defined locally but not found in the remote specifications: data, payments_extension, tax_calculation
2024-08-07T14:26:59.280Z: The following extension specifications were found in the remote specifications but not defined locally: cloud_terminal_management
2024-08-07T14:26:59.284Z: Sending "Partners" GraphQL request:
  query activeAppVersion($apiKey: String!) {
    app(apiKey: $apiKey) {
      activeAppVersion {
        appModuleVersions {
          registrationId
          registrationUuid
          registrationTitle
          type
          config
          specification {
            identifier
            name
            experience
            options {
              managementExperience
            }
          }
        }
      }
    }
  }

With variables:
{
  "apiKey": "*****"
}

With request headers:
 - User-Agent: Shopify CLI; v=3.65.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-08-07T14:26:59.685Z: 2024-08-07T14:26:59Z WRN Your version 2024.6.1 is outdated. We recommend upgrading it to 2024.8.2

2024-08-07T14:26:59.860Z: Request to https://partners.shopify.com/api/cli/graphql completed in 573 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"9994c0b5b387737a64284f7051183d5d"
 - x-request-id: 57ec1428-ad72-4ccd-aa6b-350644785061-1723040819

2024-08-07T14:26:59.865Z: Reading cached app information for directory /Users/deep/vto-deep-mvp/backgrounds-app...
2024-08-07T14:26:59.865Z: Reading the content of file at shopify.app.toml...
2024-08-07T14:26:59.866Z: Reading the content of file at shopify.app.toml...
2024-08-07T14:26:59.934Z: Reading the .env file at .env
2024-08-07T14:26:59.934Z: Reading the content of file at .env...
2024-08-07T14:26:59.943Z: Reading the content of file at package.json...
2024-08-07T14:26:59.944Z: Reading the content of file at package.json...
2024-08-07T14:26:59.946Z: 
Running system process:
  · Command: npm prefix
  · Working directory: /Users/deep/vto-deep-mvp/backgrounds-app

2024-08-07T14:27:00.114Z: Obtaining the dependency manager in directory /Users/deep/vto-deep-mvp/backgrounds-app...
2024-08-07T14:27:00.246Z: 2024-08-07T14:27:00Z INF Registered tunnel connection connIndex=0 connection=d611ee73-f728-4217-b85f-df0b213fa2a2 event=0 ip=198.41.192.107 location=maa04 protocol=quic

2024-08-07T14:27:00.251Z: Reading the content of file at shopify.web.toml...
2024-08-07T14:27:00.252Z: Reading the content of file at package.json...
2024-08-07T14:27:00.254Z: Writing app configuration to /Users/deep/vto-deep-mvp/backgrounds-app/shopify.app.toml
2024-08-07T14:27:00.255Z: File-writing some content to file at shopify.app.toml...
╭─ info ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                  │
│  Using shopify.app.toml:                                                                                                         │
│                                                                                                                                  │
│    • Org:             Caracal                                                                                                    │
│    • App:             Beautiful Backgrounds                                                                                      │
│    • Dev store:       quickstart-81f108b8.myshopify.com                                                                          │
│    • Update URLs:     Yes                                                                                                        │
│                                                                                                                                  │
│   You can pass `--reset` to your command to reset your app configuration.                                                        │
│                                                                                                                                  │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

2024-08-07T14:27:00.285Z: Port 3457 is free
2024-08-07T14:27:00.287Z: Polling tunnel status for cloudflare (attempt 0): connected
2024-08-07T14:27:00.287Z: Getting a random port...
2024-08-07T14:27:00.288Z: Random port obtained: 49505
2024-08-07T14:27:00.292Z: Sending "Partners" GraphQL request:
  mutation appUpdate($apiKey: String!, $applicationUrl: Url!, $redirectUrlWhitelist: [Url]!, $appProxy: AppProxyInput) {
    appUpdate(
      input: {
        apiKey: $apiKey
        applicationUrl: $applicationUrl
        redirectUrlWhitelist: $redirectUrlWhitelist
        appProxy: $appProxy
      }
    ) {
      userErrors {
        message
        field
      }
    }
  }

With variables:
{
  "apiKey": "*****",
  "applicationUrl": "https://market-filling-russia-adware.trycloudflare.com",
  "redirectUrlWhitelist": [
    "https://market-filling-russia-adware.trycloudflare.com/auth/callback",
    "https://market-filling-russia-adware.trycloudflare.com/auth/shopify/callback",
    "https://market-filling-russia-adware.trycloudflare.com/api/auth/callback"
  ]
}

With request headers:
 - User-Agent: Shopify CLI; v=3.65.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-08-07T14:27:01.481Z: Request to https://partners.shopify.com/api/cli/graphql completed in 1187 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"76acb4e44b91f928c3744a856cacdd2e"
 - x-request-id: eaac14c6-8070-41dc-9de0-9272c5f961fd-1723040820

2024-08-07T14:27:01.484Z: Writing app configuration to /Users/deep/vto-deep-mvp/backgrounds-app/shopify.app.toml
2024-08-07T14:27:01.485Z: File-writing some content to file at shopify.app.toml...
2024-08-07T14:27:01.493Z: Sending "Partners" GraphQL request:
  query allAppExtensionRegistrations($apiKey: String!) {
    app(apiKey: $apiKey) {
      extensionRegistrations {
        id
        uuid
        title
        type
        draftVersion {
          config
          context
        }
        activeVersion {
          config
          context
        }
      }
      configurationRegistrations {
        id
        uuid
        title
        type
        draftVersion {
          config
          context
        }
        activeVersion {
          config
          context
        }
      }
      dashboardManagedExtensionRegistrations {
        id
        uuid
        title
        type
        activeVersion {
          config
          context
        }
        draftVersion {
          config
          context
        }
      }
    }
  }

With variables:
{
  "apiKey": "*****"
}

With request headers:
 - User-Agent: Shopify CLI; v=3.65.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-08-07T14:28:01.851Z: Request to https://partners.shopify.com/api/cli/graphql completed in 60354 ms
With response headers:
 - content-type: text/html
 - x-request-id: 6fb0762b-6937-473c-afb1-2d946eaa3cef-1723040821

╭─ error ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                  │
│                                                                                                                                  │
│  The Partners GraphQL API responded unsuccessfully with the HTTP status 504 and errors:                                          │
│                                                                                                                                  │
│  {}                                                                                                                              │
│                                                                                                                                  │
│  Request ID: 6fb0762b-6937-473c-afb1-2d946eaa3cef-1723040821                                                                     │
│                                                                                                                                  │
│                                                                                                                                  │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

2024-08-07T14:28:01.883Z: 
Running system process:
  · Command: npm prefix
  · Working directory: /Users/deep/vto-deep-mvp/backgrounds-app

2024-08-07T14:28:02.157Z: Obtaining the dependency manager in directory /Users/deep/vto-deep-mvp/backgrounds-app...
2024-08-07T14:28:02.159Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/ruby -v
  · Working directory: /Users/deep/vto-deep-mvp/backgrounds-app

2024-08-07T14:28:02.508Z: Request to https://monorail-edge.shopifysvc.com/v1/produce completed in 325 ms
With response headers:
 - x-request-id: 084897e0-0d7f-4a6d-849c-305627715749

2024-08-07T14:28:02.509Z: Analytics event sent: {
  "command": "app dev",
  "time_start": 1723040814525,
  "time_end": 1723040881875,
  "total_time": 67350,
  "success": false,
  "cli_version": "3.65.1",
  "ruby_version": "3.3.4",
  "node_version": "22.5.1",
  "is_employee": false,
  "uname": "darwin arm64",
  "env_ci": false,
  "env_plugin_installed_any_custom": false,
  "env_plugin_installed_shopify": "[\"@shopify/cli\"]",
  "env_shell": "zsh",
  "env_device_id": "05cfdd19cb8353f5b50258bfda7c825d765a7931",
  "env_cloud": "localhost",
  "env_package_manager": "npm",
  "env_is_global": true,
  "cmd_app_warning_api_key_deprecation_displayed": false,
  "cmd_app_all_configs_any": true,
  "cmd_app_all_configs_clients": "{\"shopify.app.toml\":\"236e160b05726d54ed996314851d30a9\"}",
  "cmd_app_linked_config_used": true,
  "cmd_app_linked_config_name": "shopify.app.toml",
  "cmd_app_linked_config_git_tracked": true,
  "cmd_app_linked_config_source": "cached",
  "cmd_app_linked_config_uses_cli_managed_urls": true,
  "partner_id": 3710411,
  "api_key": "****",
  "project_type": "node",
  "app_extensions_any": false,
  "app_extensions_breakdown": "{}",
  "app_extensions_count": 0,
  "app_extensions_custom_layout": false,
  "app_extensions_function_any": false,
  "app_extensions_function_count": 0,
  "app_extensions_theme_any": false,
  "app_extensions_theme_count": 0,
  "app_extensions_ui_any": false,
  "app_extensions_ui_count": 0,
  "app_name_hash": "d4e7afa7e5bc9de758f59ff8af651d16216f2aa5",
  "app_path_hash": "71eb56548cf131a2e5d34d916d3606523ef270a7",
  "app_scopes": "[\"read_products\",\"write_products\"]",
  "app_web_backend_any": true,
  "app_web_backend_count": 1,
  "app_web_custom_layout": true,
  "app_web_framework": "remix",
  "app_web_frontend_any": true,
  "app_web_frontend_count": 1,
  "env_package_manager_workspaces": true,
  "cmd_all_timing_network_ms": 65814,
  "cmd_all_timing_prompts_ms": 0,
  "cmd_all_launcher": "unknown",
  "cmd_all_topic": "app",
  "cmd_all_plugin": "@shopify/app",
  "cmd_all_verbose": true,
  "cmd_all_path_override": true,
  "cmd_all_path_override_hash": "71eb56548cf131a2e5d34d916d3606523ef270a7",
  "cmd_app_dependency_installation_skipped": false,
  "cmd_app_reset_used": false,
  "cmd_dev_tunnel_type": "cloudflare",
  "cmd_all_timing_active_ms": 1535,
  "cmd_all_exit": "expected_error",
  "args": "--verbose",
  "error_message": "\nThe Partners GraphQL API responded unsuccessfully with the HTTP status 504 and errors:\n\n\u001b[33m{}\u001b[0m\n      \nRequest ID: 6fb0762b-6937-473c-afb1-2d946eaa3cef-1723040821\n",
  "app_name": "backgrounds-app",
  "env_plugin_installed_all": "[\"@shopify/cli\"]",
  "metadata": "{\"extraPublic\":{},\"extraSensitive\":{}}"
}
2024-08-07T14:28:02.517Z: Reporting handled error to Bugsnag: 
The Partners GraphQL API responded unsuccessfully with the HTTP status 504 and errors:

{}

Request ID: 6fb0762b-6937-473c-afb1-2d946eaa3cef-1723040821

2024-08-07T14:28:02.585Z: 
Running system process:
  · Command: npm prefix
  · Working directory: /Users/deep/vto-deep-mvp/backgrounds-app

2024-08-07T14:28:02.711Z: Obtaining the dependency manager in directory /Users/deep/vto-deep-mvp/backgrounds-app...

Reproduction steps

  1. Run shopify app dev in console

Operating System

macOS 14.5

Shopify CLI version (check your project's package.json if you're not sure)

3.65.1

Shell

zsh

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

v22.5.1

What language and version are you using in your application?

TypeScript 5.2.2

gsouf commented 1 month ago

Similar issue from today:

2024-08-12T04:13:54.352Z: Sending "Partners" GraphQL request:
  query allAppExtensionRegistrations($apiKey: String!) {
    app(apiKey: $apiKey) {
      extensionRegistrations {
        id
        uuid
        title
        type
        draftVersion {
          config
          context
        }
        activeVersion {
          config
          context
        }
      }
      configurationRegistrations {
        id
        uuid
        title
        type
        draftVersion {
          config
          context
        }
        activeVersion {
          config
          context
        }
      }
      dashboardManagedExtensionRegistrations {
        id
        uuid
        title
        type
        activeVersion {
          config
          context
        }
        draftVersion {
          config
          context
        }
      }
    }
  }

With variables:
{
  "apiKey": "*****"
}

With request headers:
 - User-Agent: Shopify CLI; v=3.65.3
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: linux
 - Content-Type: application/json

2024-08-12T04:14:54.658Z: Request to https://partners.shopify.com/api/cli/graphql completed in 60302 ms
With response headers:
 - content-type: text/html
 - x-request-id: 5085d80b-af1f-4e96-9224-93c572d6094a-1723436034

╭─ error ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                    │
│                                                                                                                                    │
│  The Partners GraphQL API responded unsuccessfully with the HTTP status 504 and errors:                                            │
│                                                                                                                                    │
│  {}                                                                                                                                │
│                                                                                                                                    │
│  Request ID: 5085d80b-af1f-4e96-9224-93c572d6094a-1723436034                                                                       │
│                                                                                                                                    │
│                                                                                                                                    │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Most requests take long time to complete, someone here on the same network, but on a different computer and different app does not have this issue.

I can provide further info upon request.

gordonhirsch commented 1 month ago

We've fixed an issue in the allAppExtensionRegistrations query on the back end. It will run much faster now, and these particular timeouts/504 errors should be resolved now.

seven-binoche commented 3 weeks ago

To anyone who's facing a similar problem, make sure your prisma is set up correctly (mine was connected incorrectly to Supabase, thus the issue)