The BusinessPlatform GraphQL API responded unsuccessfully with the HTTP status 500 and errors

Hey :waving_hand:

I seem to be getting a BusinessPlatform GraphQL API error quite often. Iโ€™m not sure what the reasoning for it is. It seems to randomly resolve itself as well.

This is just trying to use the Next Gen Dev Platform with the --use-localhost and the latest version of the CLI

โฏ shopify --version                                                                                                                                                                                                                                          
@shopify/cli/3.81.2 darwin-arm64 node-v22.16.0

This happens for multiple apps as well, Remix, React Router, Rails. Iโ€™m guessing itโ€™s linked to the new dev platform vs the specific app?

Any ideas or help would be appreciated as I currently have to just sit around until it sorts itself out :sweat_smile:

My latest Request ID is Request ID: 2607fa5c-142e-46c8-9b71-0277144e18f6-1752488085.

The --verbose output is as follows:

โฏ yarn dev --verbose
yarn run v1.22.22
$ shopify app dev --use-localhost --verbose
2025-07-14T10:16:43.367Z: Running command app dev
2025-07-14T10:16:43.369Z: Running system process in background:
  ยท Command: /Users/dangamble/.local/share/mise/installs/node/22.16.0/bin/node /Users/dangamble/Code/rails-shopify-migration/node_modules/.bin/shopify notifications list --ignore-errors
  ยท Working directory: /Users/dangamble/Code/rails-shopify-migration
                                                                                                                                                                                                                                                             
2025-07-14T10:16:43.373Z: Notifications to show: 0
2025-07-14T10:16:43.380Z: Port 3458 is free
2025-07-14T10:16:43.385Z: Reading cached app information for directory /Users/dangamble/Code/rails-shopify-migration...
2025-07-14T10:16:43.385Z: Reading the content of file at shopify.app.toml...
2025-07-14T10:16:43.386Z: Reading the content of file at shopify.app.toml...
2025-07-14T10:16:43.387Z: Ensuring that the user is authenticated with the App Management API with the following scopes:
[]
                                                                                                                                                                                                                                                             
2025-07-14T10:16:43.387Z: Getting session store...
2025-07-14T10:16:43.389Z: 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",
  "https://api.shopify.com/auth/organization.store-management",
  "https://api.shopify.com/auth/organization.on-demand-user-access",
  "https://api.shopify.com/auth/organization.apps.manage"
]
For applications:
{
  "appManagementApi": {
    "scopes": []
  },
  "businessPlatformApi": {
    "scopes": []
  }
}
                                                                                                                                                                                                                                                             
2025-07-14T10:16:43.389Z: - Token validation -> It's expired: false
2025-07-14T10:16:43.390Z: Sending "BusinessPlatform" GraphQL request:
  query UserInfo {
  currentUserAccount {
    uuid
    email
    organizations(first: 2) {
      nodes {
        name
        __typename
      }
      __typename
    }
    __typename
  }
}
                                                                                                                                                                                                                                                             
With request headers:
 - User-Agent: Shopify CLI; v=3.82.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json
                                                                                                                                                                                                                                                             
to https://destinations.shopifysvc.com/destinations/api/2020-07/graphql
2025-07-14T10:16:43.396Z: Sending "App Management" GraphQL request:
  query ActiveAppReleaseFromApiKey($apiKey: String!) {
  app: appByKey(key: $apiKey) {
    ...AppVersionInfo
    __typename
  }
}
                                                                                                                                                                                                                                                             
fragment ReleasedAppModule on AppModule {
  uuid
  userIdentifier
  handle
  config
  specification {
    identifier
    externalIdentifier
    name
  }
}
                                                                                                                                                                                                                                                             
fragment AppVersionInfo on App {
  id
  key
  activeRoot {
    clientCredentials {
      secrets {
        key
      }
    }
  }
  activeRelease {
    id
    version {
      name
      appModules {
        ...ReleasedAppModule
      }
    }
  }
}
                                                                                                                                                                                                                                                             
With variables:
{
  "apiKey": "*****"
}
                                                                                                                                                                                                                                                             
With request headers:
 - User-Agent: Shopify CLI; v=3.82.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json
                                                                                                                                                                                                                                                             
to https://app.shopify.com/app_management/unstable/organizations/129332601/graphql.json
2025-07-14T10:16:43.876Z: Request to https://app.shopify.com/app_management/unstable/organizations/129332601/graphql.json completed in 480 ms
With response headers:
 - content-type: application/json; charset=utf-8
 - server-timing: processing;dur=138, cfRequestDuration;dur=274.000168
 - x-request-id: 1f3de844-96d2-4e78-8081-43a3bb955083-1752488203
                                                                                                                                                                                                                                                             
2025-07-14T10:16:43.878Z: Sending "BusinessPlatform" GraphQL request:
  query FindOrganizations($organizationId: OrganizationID!) {
  currentUserAccount {
    organization(id: $organizationId) {
      id
      name
      __typename
    }
    __typename
  }
}
                                                                                                                                                                                                                                                             
With variables:
{
  "organizationId": "Z2lkOi8vb3JnYW5pemF0aW9uL09yZ2FuaXphdGlvbi8xMjkzMzI2MDE="
}
                                                                                                                                                                                                                                                             
With request headers:
 - User-Agent: Shopify CLI; v=3.82.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json
                                                                                                                                                                                                                                                             
to https://destinations.shopifysvc.com/destinations/api/2020-07/graphql
2025-07-14T10:16:43.883Z: Sending "App Management" GraphQL request:
  query fetchSpecifications {
  specifications {
    name
    identifier
    externalIdentifier
    features
    uidStrategy {
      appModuleLimit
      isClientProvided
      __typename
    }
    validationSchema {
      jsonSchema
      __typename
    }
    __typename
  }
}
                                                                                                                                                                                                                                                             
With request headers:
 - User-Agent: Shopify CLI; v=3.82.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json
                                                                                                                                                                                                                                                             
to https://app.shopify.com/app_management/unstable/organizations/129332601/graphql.json
2025-07-14T10:16:44.390Z: Request to https://app.shopify.com/app_management/unstable/organizations/129332601/graphql.json completed in 507 ms
With response headers:
 - content-type: application/json; charset=utf-8
 - server-timing: processing;dur=148, cfRequestDuration;dur=290.999889
 - x-request-id: 112387ff-f7d7-4a4f-b25c-3aff20d92aea-1752488204
                                                                                                                                                                                                                                                             
2025-07-14T10:16:44.395Z: The following extension specifications were defined locally but not found in the remote specifications: product_subscription, tax_calculation
2025-07-14T10:16:44.396Z: The following extension specifications were found in the remote specifications but not defined locally: admin_app, app_link, app_nav_item, bulk_action, checkout_script_tag, flow_action_definition, flow_trigger_definition, flow_trigger_discovery_webhook, manage_marketplaces, marketing_action, merchandising_create_publication, merchandising_fulfillment_variant_details, ping_message_callback, pos_link, product_configuration_link, resource_publication_settings, retail_cart_promotion, retail_product_recommendation, subscription_link
2025-07-14T10:16:44.397Z: Reading the content of file at .gitignore...
2025-07-14T10:16:44.529Z: Reading the content of file at package.json...
2025-07-14T10:16:44.529Z: Reading the content of file at package.json...
2025-07-14T10:16:44.531Z: Running system process:
  ยท Command: npm prefix
  ยท Working directory: /Users/dangamble/Code/rails-shopify-migration
                                                                                                                                                                                                                                                             
2025-07-14T10:16:44.612Z: Obtaining the dependency manager in directory /Users/dangamble/Code/rails-shopify-migration...
2025-07-14T10:16:44.612Z: Reading the content of file at package.json...
2025-07-14T10:16:44.613Z: Reading the content of file at .shopify/project.json...
2025-07-14T10:16:44.617Z: Reading the content of file at shopify.web.toml...
2025-07-14T10:16:44.618Z: Notifications to show: 0
2025-07-14T10:16:44.619Z: Reading cached app information for directory /Users/dangamble/Code/rails-shopify-migration...
2025-07-14T10:16:44.619Z: Storing app information for directory /Users/dangamble/Code/rails-shopify-migration:{
  "appId": "eb22d8994bc6eadee5f928cdb4d6d9a6",
  "title": "Rails Migration (Dev)",
  "directory": "/Users/dangamble/Code/rails-shopify-migration",
  "orgId": "129332601"
}
2025-07-14T10:16:44.626Z: Sending "BusinessPlatform" GraphQL request:
  query ListAppDevStores($searchTerm: String) {
  organization {
    id
    name
    accessibleShops(
      filters: {field: STORE_TYPE, operator: EQUALS, value: "app_development"}
      search: $searchTerm
    ) {
      edges {
        node {
          id
          externalId
          name
          storeType
          primaryDomain
          shortName
          __typename
        }
        __typename
      }
      pageInfo {
        hasNextPage
        __typename
      }
      __typename
    }
    currentUser {
      organizationPermissions
      __typename
    }
    __typename
  }
}
                                                                                                                                                                                                                                                             
With variables:
{}
                                                                                                                                                                                                                                                             
With request headers:
 - User-Agent: Shopify CLI; v=3.82.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json
                                                                                                                                                                                                                                                             
to https://destinations.shopifysvc.com/organizations/api/unstable/organization/129332601/graphql
2025-07-14T10:16:45.274Z: Request to https://destinations.shopifysvc.com/organizations/api/unstable/organization/129332601/graphql completed in 647 ms
With response headers:
 - content-type: text/html; charset=UTF-8
 - server-timing: processing;dur=179, socket_queue;dur=1.887, util;dur=0.08, cfRequestDuration;dur=297.999859
 - x-request-id: c3b275ff-a666-48f4-a4fc-9b6c55695fd5-1752488204
                                                                                                                                                                                                                                                             
โ•ญโ”€ error โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚                                                                                                                                                                      โ”‚
โ”‚                                                                                                                                                                      โ”‚
โ”‚  The BusinessPlatform GraphQL API responded unsuccessfully with the HTTP status 500 and errors:                                                                      โ”‚
โ”‚                                                                                                                                                                      โ”‚
โ”‚  {}                                                                                                                                                                  โ”‚
โ”‚                                                                                                                                                                      โ”‚
โ”‚  Request ID: c3b275ff-a666-48f4-a4fc-9b6c55695fd5-1752488204                                                                                                         โ”‚
โ”‚                                                                                                                                                                      โ”‚
โ”‚                                                                                                                                                                      โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
                                                                                                                                                                                                                                                             
2025-07-14T10:16:45.314Z: Running system process:
  ยท Command: npm prefix
  ยท Working directory: /Users/dangamble/Code/rails-shopify-migration
                                                                                                                                                                                                                                                             
2025-07-14T10:16:45.403Z: Obtaining the dependency manager in directory /Users/dangamble/Code/rails-shopify-migration...
2025-07-14T10:16:46.146Z: Request to https://monorail-edge.shopifysvc.com/v1/produce completed in 656 ms
With response headers:
 - x-request-id: f3f12abb-a5d9-4b72-8357-71f608759688
                                                                                                                                                                                                                                                             
2025-07-14T10:16:46.147Z: Analytics event sent: {
  "command": "app dev",
  "time_start": 1752488203367,
  "time_end": 1752488205311,
  "total_time": 1944,
  "success": false,
  "cli_version": "3.82.1",
  "ruby_version": "",
  "node_version": "22.16.0",
  "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": "94a7b9159806c755c622e2fc1e9c331e345746b1",
  "env_cloud": "localhost",
  "env_package_manager": "yarn",
  "env_is_global": false,
  "env_auth_method": "device_auth",
  "env_is_wsl": false,
  "cmd_app_warning_api_key_deprecation_displayed": false,
  "cmd_app_all_configs_any": true,
  "cmd_app_all_configs_clients": "{\"shopify.app.toml\":\"eb22d8994bc6eadee5f928cdb4d6d9a6\"}",
  "cmd_app_linked_config_used": true,
  "cmd_app_linked_config_name": "shopify.app.toml",
  "cmd_app_linked_config_git_tracked": false,
  "cmd_app_linked_config_source": "cached",
  "cmd_app_linked_config_uses_cli_managed_urls": true,
  "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": "29de4824fbbef2556dd5a57a3bc2b53d5b38aabe",
  "app_path_hash": "3dcbfc0b965cd1bcff9466cf948636a799bf4e26",
  "app_scopes": "[]",
  "app_web_backend_any": true,
  "app_web_backend_count": 1,
  "app_web_custom_layout": true,
  "app_web_framework": "rails",
  "app_web_frontend_any": true,
  "app_web_frontend_count": 1,
  "env_package_manager_workspaces": false,
  "business_platform_id": 129332601,
  "api_key": "****",
  "cmd_app_reset_used": false,
  "cmd_all_timing_network_ms": 1652,
  "cmd_all_timing_prompts_ms": 0,
  "cmd_all_launcher": "yarn",
  "cmd_all_topic": "app",
  "cmd_all_plugin": "@shopify/app",
  "cmd_all_verbose": true,
  "cmd_all_path_override": true,
  "cmd_all_path_override_hash": "3dcbfc0b965cd1bcff9466cf948636a799bf4e26",
  "cmd_app_dependency_installation_skipped": false,
  "cmd_dev_tunnel_type": "use-localhost",
  "cmd_all_last_graphql_request_id": "c3b275ff-a666-48f4-a4fc-9b6c55695fd5-1752488204",
  "cmd_all_timing_active_ms": 291,
  "cmd_all_exit": "expected_error",
  "user_id": "7947b28a-cf95-4a9c-a807-617955c03bd1",
  "request_ids": [
    "1f3de844-96d2-4e78-8081-43a3bb955083-1752488203",
    "112387ff-f7d7-4a4f-b25c-3aff20d92aea-1752488204",
    "c3b275ff-a666-48f4-a4fc-9b6c55695fd5-1752488204"
  ],
  "args": "--use-localhost --verbose",
  "error_message": "\nThe BusinessPlatform GraphQL API responded unsuccessfully with the HTTP status 500 and errors:\n\n\u001b[33m{}\u001b[0m\n      \nRequest ID: c3b275ff-a666-48f4-a4fc-9b6c55695fd5-1752488204\n",
  "app_name": "shopify-hotwire-template",
  "env_plugin_installed_all": "[\"@shopify/cli\"]",
  "metadata": "{\"extraPublic\":{},\"extraSensitive\":{}}"
}
2025-07-14T10:16:46.164Z: Reporting handled error to Bugsnag:
The BusinessPlatform GraphQL API responded unsuccessfully with the HTTP status 500 and errors:
                                                                                                                                                                                                                                                             
{}
                                                                                                                                                                                                                                                             
Request ID: c3b275ff-a666-48f4-a4fc-9b6c55695fd5-1752488204
                                                                                                                                                                                                                                                             
2025-07-14T10:16:46.316Z: Running system process:
  ยท Command: npm prefix
  ยท Working directory: /Users/dangamble/Code/rails-shopify-migration
                                                                                                                                                                                                                                                             
2025-07-14T10:16:46.407Z: Obtaining the dependency manager in directory /Users/dangamble/Code/rails-shopify-migration...
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

This is working fine now so I imagine it is Shopifyโ€™s side. It does seem to happen frequently though

Thanks for reporting @DanGamble . This does look like an intermittent issue on our end. Iโ€™ve looked at logs + notified the responsible team with some potential mitigations. Hopefully we can reduce the frequency of this error.

1 Like