Unable to Start Dev Server – Shopify CLI Tunnel Aborted (Cloudflare Error)

Hi everyone,

I’ve created a new Shopify node template app, but the server isn’t starting. When I run npm run dev or shopify app dev, I encounter this error:
Error:
╭─ error ────────────────────────────────────────────────────────────────────────────────╮
│ │
│ The operation was aborted. │
│ │
│ Run the command again or see Shopify CLI documentation [1] for more options. │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────╯
[1] Select a networking option for local development

shopify cli version
3.78.1

1 Like

Hey @Hemant_Gehlod :waving_hand: - it looks like a few other folks have reported this behaviour popping up here in the Github repo for the CLI App: GitHub - Shopify/cli: Build apps, themes, and hydrogen storefronts for Shopify

If you haven’t reached out there yet, that would be the best place to report the issue if you’re still seeing it since it should get you in touch with the CLI developers directly.

That said, can you also ping me here if you’re still seeing the issue? I can do a bit more digging on my end to see if we can narrow down the issue. I wasn’t able to replicate this on my side here, but if the issue persists, can you try running shopify app dev --verbose and sharing the full verbose command output in the thread?

With that, I can see if there’s anything on our end that we can relate the cause too.

Hope this helps!

1 Like

Here is complete output:

$ shopify app dev --verbose
2025-04-24T07:08:29.530Z: Running command app dev
2025-04-24T07:08:29.543Z: Running system process:
  · Command: C:\Program Files\nodejs\node.exe C:\Users\sunil\AppData\Roaming\npm\node_modules\@shopify\cli\bin\run.js notifications list --ignore-errors
  · Working directory: C:/Users/sunil/Desktop/shopyfi/sync-sphere

2025-04-24T07:08:29.581Z: Notifications to show: 0
2025-04-24T07:08:29.610Z: Reading cached app information for directory C:/Users/sunil/Desktop/shopyfi/sync-sphere...
2025-04-24T07:08:29.612Z: Reading the content of file at shopify.app.toml...
2025-04-24T07:08:29.615Z: Reading the content of file at shopify.app.toml...
2025-04-24T07:08:29.617Z: Ensuring that the user is authenticated with the Partners API with the following scopes:
[]

2025-04-24T07:08:29.618Z: Getting session store...
2025-04-24T07:08:29.622Z: 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.apps.manage"
]
For applications:
{
  "partnersApi": {
    "scopes": []
  }
}

2025-04-24T07:08:29.624Z: - Token validation -> It's expired: false
2025-04-24T07:08:29.632Z: Getting partner account info from cache
2025-04-24T07:08:29.673Z: 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.78.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: win32
 - Content-Type: application/json

to https://partners.shopify.com/api/cli/graphql
2025-04-24T07:08:31.286Z: Request to https://partners.shopify.com/api/cli/graphql completed in 1611 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"e79f557d78edd97f58ff8e1714aabe24"
 - server-timing: processing;dur=677, socket_queue;dur=2.048, util;dur=0.8, cfRequestDuration;dur=971.000195
 - x-request-id: 5657bb2c-2a13-406a-99d5-398de54f9d76-1745478501

2025-04-24T07:08:31.298Z: Sending "Partners" GraphQL request:
  query FindOrganization($id: ID!) {
    organizations(id: $id, first: 1) {
      nodes {
        id
        businessName
      }
    }
  }

With variables:
{
  "id": "4053941"
}

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

to https://partners.shopify.com/api/cli/graphql
2025-04-24T07:08:31.455Z: 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": "6b2eb8670c538766ef33cd2c6b30387a"
}

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

to https://partners.shopify.com/api/cli/graphql
2025-04-24T07:08:32.188Z: Request to https://partners.shopify.com/api/cli/graphql completed in 732 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"afc3b9b0074d419c8d1196f8df0f75f4"
 - server-timing: processing;dur=107, socket_queue;dur=14.128, util;dur=0.5, cfRequestDuration;dur=469.000101
 - x-request-id: bbda1494-876f-4884-aeb6-7fc1dabc7da5-1745478502

2025-04-24T07:08:32.216Z: The following extension specifications were defined locally but not found in the remote specifications: payments_extension, tax_calculation
2025-04-24T07:08:32.222Z: Reading the content of file at .gitignore...
2025-04-24T07:08:32.238Z: Reading the content of file at package.json...
2025-04-24T07:08:32.240Z: Reading the content of file at package.json...
2025-04-24T07:08:32.294Z: Running system process:
  · Command: npm prefix
  · Working directory: C:/Users/sunil/Desktop/shopyfi/sync-sphere

2025-04-24T07:08:32.628Z: Obtaining the dependency manager in directory C:\Users\sunil\Desktop\shopyfi\sync-sphere...
2025-04-24T07:08:32.630Z: Reading the content of file at package.json...
2025-04-24T07:08:32.631Z: Reading the content of file at .shopify/project.json...
2025-04-24T07:08:32.638Z: Reading the content of file at web/shopify.web.toml...
2025-04-24T07:08:32.638Z: Reading the content of file at web/frontend/shopify.web.toml...
2025-04-24T07:08:32.646Z: Notifications to show: 0
2025-04-24T07:08:32.649Z: Reading cached app information for directory C:/Users/sunil/Desktop/shopyfi/sync-sphere...
2025-04-24T07:08:32.650Z: Storing app information for directory C:/Users/sunil/Desktop/shopyfi/sync-sphere:{
  "appId": "6b2eb8670c538766ef33cd2c6b30387a",
  "title": "SyncSphere",
  "directory": "C:/Users/sunil/Desktop/shopyfi/sync-sphere",
  "orgId": "4053941"
}
2025-04-24T07:08:32.673Z: 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": "4053941",
  "shopDomain": "product-tag-store.myshopify.com"
}

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

to https://partners.shopify.com/api/cli/graphql
2025-04-24T07:08:33.265Z: Request to https://partners.shopify.com/api/cli/graphql completed in 591 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"ad63c634d25eaabb6ff91e86b02723e3"
 - server-timing: processing;dur=91, socket_queue;dur=1.874, util;dur=1.1, cfRequestDuration;dur=365.999937
 - x-request-id: b2fd27e8-5a64-4502-a694-8c8e5ca384c0-1745478504

2025-04-24T07:08:33.280Z: Getting a random port...
2025-04-24T07:08:33.290Z: Random port obtained: 53837
2025-04-24T07:08:33.366Z: version check failed, reinstalling
2025-04-24T07:08:35.596Z: Request to https://github.com/cloudflare/cloudflared/releases/download/2024.8.2/cloudflared-windows-amd64.exe completed in 2229 ms
With response headers:
 - content-type: application/octet-stream
 - etag: "0x8DCB613BFC41613"

2025-04-24T07:08:48.413Z: 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.78.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: win32
 - Content-Type: application/json

to https://partners.shopify.com/api/cli/graphql
2025-04-24T07:08:49.331Z: Request to https://partners.shopify.com/api/cli/graphql completed in 914 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"e7b053ab7c7b585a742fcdbd063c60f2"
 - server-timing: processing;dur=356, socket_queue;dur=2.487, util;dur=0.6, cfRequestDuration;dur=648.000002
 - x-request-id: 62827b8c-583a-44c0-9960-17817fdce3c2-1745478519

2025-04-24T07:08:49.339Z: Reading cached app information for directory C:/Users/sunil/Desktop/shopyfi/sync-sphere...
╭─ info ─────────────────────────────────────────────────────────────────────────────────╮
│                                                                                        │
│  Using shopify.app.toml for default values:                                            │
│                                                                                        │
│    • Org:             spark_developie                                                  │
│    • App:             SyncSphere                                                       │
│    • Dev store:       product-tag-store.myshopify.com                                  │
│    • Update URLs:     Yes                                                              │
│                                                                                        │
│   You can pass `--reset` to your command to reset your app configuration.              │
│                                                                                        │
╰────────────────────────────────────────────────────────────────────────────────────────╯

2025-04-24T07:08:49.588Z: Port 3457 is free
2025-04-24T07:08:49.630Z: Polling tunnel status for cloudflare (attempt 0): error
2025-04-24T07:08:49.632Z: Getting a random port...
╭─ error ────────────────────────────────────────────────────────────────────────────────╮
│                                                                                        │
│  The operation was aborted.                                                            │
│                                                                                        │
│  Run the command again or see Shopify CLI documentation [1] for more options.          │
│                                                                                        │
╰────────────────────────────────────────────────────────────────────────────────────────╯
[1] https://shopify.dev/docs/apps/build/cli-for-apps/networking-options

2025-04-24T07:08:49.870Z: Running system process:
  · Command: npm prefix
  · Working directory: C:/Users/sunil/Desktop/shopyfi/sync-sphere

2025-04-24T07:08:49.878Z: Random port obtained: 53875
2025-04-24T07:08:50.182Z: Obtaining the dependency manager in directory C:\Users\sunil\Desktop\shopyfi\sync-sphere...
2025-04-24T07:08:51.299Z: Request to https://monorail-edge.shopifysvc.com/v1/produce completed in 699 ms
With response headers:
 - x-request-id: 56107a51-e6f2-44b1-b819-13ba44ea51c2

2025-04-24T07:08:51.303Z: Analytics event sent: {
  "command": "app dev",
  "time_start": 1745478509531,
  "time_end": 1745478529687,
  "total_time": 20156,
  "success": false,
  "cli_version": "3.78.1",
  "ruby_version": "",
  "node_version": "20.18.3",
  "is_employee": false,
  "uname": "windows amd64",
  "env_ci": false,
  "env_plugin_installed_any_custom": false,
  "env_plugin_installed_shopify": "[\"@shopify/cli\"]",
  "env_shell": "C:\\Program Files\\Git\\usr\\bin\\bash.exe",
  "env_device_id": "1b0c44780c6904e7037ba4f604ae4d3d08c24929",
  "env_cloud": "localhost",
  "env_package_manager": "npm",
  "env_is_global": true,
  "env_auth_method": "device_auth",
  "cmd_app_warning_api_key_deprecation_displayed": false,
  "cmd_app_all_configs_any": true,
  "cmd_app_all_configs_clients": "{\"shopify.app.toml\":\"6b2eb8670c538766ef33cd2c6b30387a\"}",
  "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,
  "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": "a63ffa251981bbe5b82f92ae886a8839ead0678f",
  "app_path_hash": "2a07240c4c812f12fcc733058dc38ef9fd54035e",
  "app_scopes": "[\"write_products\"]",
  "app_web_backend_any": true,
  "app_web_backend_count": 1,
  "app_web_custom_layout": false,
  "app_web_framework": "unknown",
  "app_web_frontend_any": true,
  "app_web_frontend_count": 1,
  "env_package_manager_workspaces": true,
  "partner_id": 4053941,
  "api_key": "****",
  "cmd_app_reset_used": false,
  "store_fqdn_hash": "f65da5169ca7d46c9bcb6f14f6c698edf7798336",
  "cmd_all_timing_network_ms": 6083,
  "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": "2a07240c4c812f12fcc733058dc38ef9fd54035e",
  "cmd_app_dependency_installation_skipped": false,
  "cmd_dev_tunnel_type": "cloudflare",
  "cmd_all_last_graphql_request_id": "62827b8c-583a-44c0-9960-17817fdce3c2-1745478519",
  "cmd_all_timing_active_ms": 14072,
  "cmd_all_exit": "expected_error",
  "user_id": "013a166f-d1b6-4dca-8c84-0644af3e1a00",
  "request_ids": [
    "5657bb2c-2a13-406a-99d5-398de54f9d76-1745478501",
    "bbda1494-876f-4884-aeb6-7fc1dabc7da5-1745478502",
    "b2fd27e8-5a64-4502-a694-8c8e5ca384c0-1745478504",
    "62827b8c-583a-44c0-9960-17817fdce3c2-1745478519"
  ],
  "args": "--verbose",
  "error_message": "The operation was aborted.",
  "app_name": "sync-sphere",
  "store_fqdn": "product-tag-store.myshopify.com",
  "env_plugin_installed_all": "[\"@shopify/cli\"]",
  "metadata": "{\"extraPublic\":{},\"extraSensitive\":{}}"
}
2025-04-24T07:08:51.375Z: Reporting handled error to Bugsnag: The operation was aborted.
2025-04-24T07:08:54.440Z: Running system process:
  · Command: npm prefix
  · Working directory: C:/Users/sunil/Desktop/shopyfi/sync-sphere

2025-04-24T07:08:54.781Z: Obtaining the dependency manager in directory C:\Users\sunil\Desktop\shopyfi\sync-sphere...

Thanks @Hemant_Gehlod - appreciate you sending those logs over. I see you opened up a Github issue as well there - I’ll do a bit more digging into this internally on my end and loop back with you here when I have next steps/more info. Speak soon!

1 Like


When ever I setup shopify app for development either via shopify remix or via Express I got the same error