Shopify / cli

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

[Bug]: Loop causes app load to take 10 secs #2209

Closed BatuhanUsluel closed 1 year ago

BatuhanUsluel commented 1 year ago

Please confirm that you have:

In which of these areas are you experiencing a problem?

App

Expected behavior

Opening the app page inside Shopify is done in a reasonable timeframe and a single request to index.js is made

Actual behavior

Takes ~10 seconds to load.

app.use("/*", ...) is called twice each time (added a print statement inside index.js).

This is in response to a single refresh. Refresh is done at 20 seconds past, page loads at 37 seconds past.

2023-06-21 01:27:27 │ backend │ [shopify-app/INFO] Running ensureInstalledOnShop 2023-06-21 01:27:27 │ backend │ [shopify-app/INFO] App is installed and ready to load | {shop: testingdevstore1.myshopify.com} 2023-06-21 01:27:27 │ backend │ Serving index.html 2023-06-21 01:27:28 │ backend │ [shopify-app/INFO] Running ensureInstalledOnShop 2023-06-21 01:27:28 │ backend │ [shopify-app/INFO] App is installed and ready to load | {shop: testingdevstore1.myshopify.com} 2023-06-21 01:27:28 │ backend │ Serving index.html 2023-06-21 01:27:35 │ backend │ [shopify-app/INFO] Running validateAuthenticatedSession 2023-06-21 01:27:36 │ backend │ [shopify-app/INFO] Request session has a valid access token | {shop: testingdevstore1.myshopify.com}

Verbose output

> qr-code-sample-app@0.1.0 dev
> shopify app dev --verbose

2023-06-21T01:37:53.613Z: Running command app dev
2023-06-21T01:37:53.626Z: Getting a random port...
2023-06-21T01:37:53.634Z: Random port obtained: 57968
2023-06-21T01:37:53.745Z: 
Running system process:
  · Command: C:/Users/batuh/OneDrive/Documents/Workstation/ShopifyAIChatBot/testing-app/shopify-app-examples/qr-code/node/node_modules/@shopify/plugin-cloudflare/bin/cloudflared.exe tunnel --url http://localhost:57968 --no-autoupdate
  · Working directory: C:/Users/batuh/OneDrive/Documents/Workstation/ShopifyAIChatBot/testing-app/shopify-app-examples/qr-code/node

2023-06-21T01:37:53.751Z: Ensuring that the user is authenticated with the Partners API with the following scopes:
[]

2023-06-21T01:37:53.764Z: Getting session store...
2023-06-21T01:37:53.771Z: 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"
]
For applications:
{
  "partnersApi": {
    "scopes": []
  }
}

2023-06-21T01:37:53.772Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2023-06-21T01:37:53.773Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.46.5
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: win32
 - Content-Type: application/json

2023-06-21T01:37:53.794Z: 2023-06-21T01:37:53Z 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
2023-06-21T01:37:53Z INF Requesting new quick Tunnel on trycloudflare.com...

2023-06-21T01:37:53.938Z: Request to https://accounts.shopify.com/oauth/introspection completed in 154 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/"b5f9bd2ce49c2af9a068d396c1bbdbb9"
 - x-request-id: 9dd98c95-0a03-49a3-ace8-9c4838eba90e

2023-06-21T01:37:53.942Z: The identity token is valid: true
2023-06-21T01:37:53.942Z: 
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false

2023-06-21T01:37:53.942Z: Verifying that the user has a Partner organization
2023-06-21T01:37:53.943Z: Sending "Partners" GraphQL request:
  {
    organizations(first: 1) {
      nodes {
        id
      }
    }
  }

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

2023-06-21T01:37:54.161Z: Request to https://partners.shopify.com/api/cli/graphql completed in 203 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"7053570002c89518ccb7e9fcb764a04d"
 - x-request-id: b2b45c02-b751-45a1-8b57-f4b3e796bb0e

2023-06-21T01:37:54.163Z: Reading cached app information for directory C:/Users/batuh/OneDrive/Documents/Workstation/ShopifyAIChatBot/testing-app/shopify-app-examples/qr-code/node...
2023-06-21T01:37:54.164Z: Sending "Partners" GraphQL request:
  query FindOrganization($id: ID!) {
    organizations(id: $id, first: 1) {
      nodes {
        id
        businessName
        website
        betas {
          cliTunnelAlternative
        }
      }
    }
  }

With variables:
{
  "id": "2753195"
}

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

2023-06-21T01:37:54.350Z: Request to https://partners.shopify.com/api/cli/graphql completed in 183 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"47ac9d23c853f4f454211fdff7b57c23"
 - x-request-id: 13591658-9e69-4bb4-aba5-dd0ea715d3ff

2023-06-21T01:37:54.351Z: Sending "Partners" GraphQL request:
  query FindApp($apiKey: String!) {
    app(apiKey: $apiKey) {
      id
      title
      apiKey
      organizationId
      apiSecretKeys {
        secret
      }
      appType
      grantedScopes
      betas {
        unifiedAppDeployment
      }
    }
  }

With variables:
{
  "apiKey": "5155e85c8825fba095d9bcc064a671bc"
}

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

2023-06-21T01:37:54.351Z: Sending "Partners" GraphQL request:
  query FindOrganization($id: ID!, $shopDomain: String) {
    organizations(id: $id, first: 1) {
      nodes {
        id
        businessName
        website
        stores(shopDomain: $shopDomain, first: 1, archived: false) {
          nodes {
            shopId
            link
            shopDomain
            shopName
            transferDisabled
            convertableToPartnerTest
          }
        }
      }
    }
  }

With variables:
{
  "id": "2753195",
  "shopDomain": "testingdevstore1.myshopify.com"
}

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

2023-06-21T01:37:54.566Z: Request to https://partners.shopify.com/api/cli/graphql completed in 209 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"62da400f9cda6188fb34ab24949eaf0b"
 - x-request-id: 16b732b3-5d92-46eb-809c-e945826e8e2d

2023-06-21T01:37:54.790Z: 2023-06-21T01:37:54Z INF +--------------------------------------------------------------------------------------------+
2023-06-21T01:37:54Z INF |  Your quick Tunnel has been created! Visit it at (it may take some time to be reachable):  |
2023-06-21T01:37:54Z INF |  https://rational-strictly-prompt-hood.trycloudflare.com                                   |
2023-06-21T01:37:54Z INF +--------------------------------------------------------------------------------------------+

2023-06-21T01:37:54.790Z: 2023-06-21T01:37:54Z INF Cannot determine default configuration path. No file [config.yml config.yaml] in [~/.cloudflared ~/.cloudflare-warp ~/cloudflare-warp]
2023-06-21T01:37:54Z INF Version 2023.4.2
2023-06-21T01:37:54Z INF GOOS: windows, GOVersion: go1.19, GoArch: amd64
2023-06-21T01:37:54Z INF Settings: map[ha-connections:1 no-autoupdate:true protocol:quic url:http://localhost:57968]

2023-06-21T01:37:54.791Z: 2023-06-21T01:37:54Z INF cloudflared will not automatically update on Windows systems.

2023-06-21T01:37:54.791Z: 2023-06-21T01:37:54Z INF Generated Connector ID: b90f8b6f-5913-4c68-a917-4115d29fdc0b

2023-06-21T01:37:54.793Z: 2023-06-21T01:37:54Z INF Initial protocol quic

2023-06-21T01:37:54.794Z: 2023-06-21T01:37:54Z INF ICMP proxy will use 172.22.13.16 as source for IPv4

2023-06-21T01:37:54.840Z: 2023-06-21T01:37:54Z INF ICMP proxy will use fd7a:8125:5ef8:4cee:9b7d:9a88:996a:9e62 in zone Wi-Fi as source for IPv6

2023-06-21T01:37:54.849Z: 2023-06-21T01:37:54Z INF cloudflared does not support loading the system root certificate pool on Windows. Please use --origin-ca-pool <PATH> to specify the path to the certificate pool

2023-06-21T01:37:54.849Z: 2023-06-21T01:37:54Z INF Starting metrics server on 127.0.0.1:57977/metrics

2023-06-21T01:37:54.899Z: 2023-06-21T01:37:54Z WRN Your version 2023.4.2 is outdated. We recommend upgrading it to 2023.6.1

2023-06-21T01:37:54.990Z: 2023-06-21T01:37:54Z INF Registered tunnel connection connIndex=0 connection=6bef2ea9-c8eb-4f73-bfc1-0f6effd46b34 event=0 ip=198.41.200.113 location=ORD protocol=quic

2023-06-21T01:37:55.048Z: Request to https://partners.shopify.com/api/cli/graphql completed in 693 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"f2328ebab56c6aec8457be1c35b71583"
 - x-request-id: dbbf2d1e-0413-4774-985d-5d00e79a65ad

2023-06-21T01:37:55.048Z: Storing app information for directory C:/Users/batuh/OneDrive/Documents/Workstation/ShopifyAIChatBot/testing-app/shopify-app-examples/qr-code/node:{
  "appId": "5155e85c8825fba095d9bcc064a671bc",
  "title": "qr-code-sample-app",
  "directory": "C:/Users/batuh/OneDrive/Documents/Workstation/ShopifyAIChatBot/testing-app/shopify-app-examples/qr-code/node",
  "storeFqdn": "testingdevstore1.myshopify.com",
  "orgId": "2753195"
}
2023-06-21T01:37:55.065Z: Obtaining the dependency manager in directory C:/Users/batuh/OneDrive/Documents/Workstation/ShopifyAIChatBot/testing-app/shopify-app-examples/qr-code/node...
╭─ info ───────────────────────────────────────────────────────────────────────╮
│                                                                              │
│  Using your previous dev settings:                                           │
│                                                                              │
│    • Org:          BTU                                                       │
│    • App:          qr-code-sample-app                                        │
│    • Dev store:    testingdevstore1.myshopify.com                            │
│    • Update URLs:  Always                                                    │
│                                                                              │
│  To reset your default dev config, run `npm run dev -- --reset`              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

2023-06-21T01:37:55.180Z: Sending "Partners" GraphQL request:
  query fetchSpecifications($api_key: String!) {
    extensionSpecifications(apiKey: $api_key) {
      name
      externalName
      externalIdentifier
      identifier
      gated
      options {
        managementExperience
        registrationLimit
      }
      features {
        argo {
          surface
        }
      }
    }
  }

With variables:
{
  "api_key": "5155e85c8825fba095d9bcc064a671bc"
}

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

2023-06-21T01:37:55.425Z: Request to https://partners.shopify.com/api/cli/graphql completed in 243 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"105e4d6110087756a8c7f619b7f47ae6"
 - x-request-id: 34192837-afca-4209-9a36-c86d48a7e8c6

2023-06-21T01:37:55.482Z: Reading the content of file at shopify.app.toml...
2023-06-21T01:37:55.492Z: Reading the content of file at package.json...
2023-06-21T01:37:55.493Z: Reading the content of file at package.json...
2023-06-21T01:37:55.494Z: Obtaining the dependency manager in directory C:/Users/batuh/OneDrive/Documents/Workstation/ShopifyAIChatBot/testing-app/shopify-app-examples/qr-code/node...
2023-06-21T01:37:55.696Z: Reading the content of file at web/shopify.web.toml...
2023-06-21T01:37:55.696Z: Reading the content of file at web/frontend/shopify.web.toml...
2023-06-21T01:37:55.805Z: Reading the content of file at package.json...
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Installing dependencies ...
2023-06-21T01:37:55.935Z: 
Running system process:
  · Command: npm install
  · Working directory: C:/Users/batuh/OneDrive/Documents/Workstation/ShopifyAIChatBot/testing-app/shopify-app-examples/qr-code/node

▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Installing dependencies ...
2023-06-21T01:37:56.037Z: 
Running system process:
  · Command: npm install
  · Working directory: C:/Users/batuh/OneDrive/Documents/Workstation/ShopifyAIChatBot/testing-app/shopify-app-examples/qr-code/node/web

▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Installing dependencies ...
2023-06-21T01:37:56.169Z: 
Running system process:
  · Command: npm install
  · Working directory: C:/Users/batuh/OneDrive/Documents/Workstation/ShopifyAIChatBot/testing-app/shopify-app-examples/qr-code/node/web/frontend

▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Installing dependencies ...

2023-06-21T01:38:00.698Z: Reading the content of file at package.json...
2023-06-21T01:38:00.700Z: Polling tunnel status for cloudflare (attempt 0): connected
2023-06-21T01:38:00.700Z: Getting a random port...
2023-06-21T01:38:00.700Z: Sending "Partners" GraphQL request:
  query getApp($apiKey: String!) {
    app(apiKey: $apiKey) {
      applicationUrl
      redirectUrlWhitelist
    }
  }

With variables:
{
  "apiKey": "5155e85c8825fba095d9bcc064a671bc"
}

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

2023-06-21T01:38:00.703Z: Random port obtained: 57986
2023-06-21T01:38:01.088Z: Request to https://partners.shopify.com/api/cli/graphql completed in 386 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"bc5cc86b8b03f1ac52b3439dca973b30"
 - x-request-id: aae87da2-a5ac-45a2-a6d2-24f117edb570

2023-06-21T01:38:01.089Z: Sending "Partners" GraphQL request:
  mutation appUpdate($apiKey: String!, $applicationUrl: Url!, $redirectUrlWhitelist: [Url]!) {
    appUpdate(input: {apiKey: $apiKey, applicationUrl: $applicationUrl, redirectUrlWhitelist: $redirectUrlWhitelist}) {
      userErrors {
        message
        field
      }
    }
  }

With variables:
{
  "apiKey": "5155e85c8825fba095d9bcc064a671bc",
  "applicationUrl": "https://rational-strictly-prompt-hood.trycloudflare.com",
  "redirectUrlWhitelist": [
    "https://rational-strictly-prompt-hood.trycloudflare.com/auth/callback",
    "https://rational-strictly-prompt-hood.trycloudflare.com/auth/shopify/callback",
    "https://rational-strictly-prompt-hood.trycloudflare.com/api/auth/callback"
  ]
}

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

2023-06-21T01:38:02.088Z: Request to https://partners.shopify.com/api/cli/graphql completed in 998 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: fa562780-0486-409e-bdc1-9b29b60b20a1

2023-06-21T01:38:02.150Z: Obtaining the dependency manager in directory C:/Users/batuh/OneDrive/Documents/Workstation/ShopifyAIChatBot/testing-app/shopify-app-examples/qr-code/node...
2023-06-21T01:38:02.210Z: 
Running system process:
  · Command: ruby -v
  · Working directory: C:/Users/batuh/OneDrive/Documents/Workstation/ShopifyAIChatBot/testing-app/shopify-app-examples/qr-code/node

2023-06-21T01:38:02.297Z: Request to https://monorail-edge.shopifysvc.com/v1/produce completed in 52 ms
With response headers:
 - x-request-id: f5205340-b180-4f78-b615-b79cc7b6ca95

2023-06-21T01:38:02.298Z: Analytics event sent: {
  "command": "app dev",
  "time_start": 1687311473615,
  "time_end": 1687311482138,
  "total_time": 8523,
  "success": true,
  "cli_version": "3.46.5",
  "ruby_version": "3.1.2",
  "node_version": "18.16.1",
  "is_employee": false,
  "uname": "windows amd64",
  "env_ci": false,
  "env_plugin_installed_any_custom": false,
  "env_plugin_installed_shopify": "[\"@shopify/app\",\"@shopify/cli\",\"@shopify/plugin-cloudflare\",\"@shopify/plugin-did-you-mean\",\"@shopify/plugin-ngrok\"]",
  "env_shell": "cmd.exe",
  "env_device_id": "524fba8ea9bb376a62ad2cd1988927eb6807caee",
  "env_cloud": "localhost",
  "env_package_manager": "npm",
  "partner_id": 2753195,
  "api_key": "5155e85c8825fba095d9bcc064a671bc",
  "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_function_custom_layout": false,
  "app_extensions_theme_any": false,
  "app_extensions_theme_count": 0,
  "app_extensions_theme_custom_layout": false,
  "app_extensions_ui_any": false,
  "app_extensions_ui_count": 0,
  "app_extensions_ui_custom_layout": false,
  "app_name_hash": "8aa43b4e6b9cb74e855a151440841959098d8c45",
  "app_path_hash": "0a5c3c2d2c9958c7d432810570ce277ca3eb4f88",
  "app_scopes": "[\"read_discounts\",\"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": false,
  "cmd_dev_tunnel_type": "cloudflare",
  "cmd_dev_urls_updated": true,
  "store_fqdn_hash": "b59f7c7643c1e20c4e7c73437b310f55378686f8",
  "cmd_app_dependency_installation_skipped": false,
  "cmd_app_reset_used": false,
  "cmd_all_launcher": "npm",
  "cmd_all_topic": "app",
  "cmd_all_plugin": "@shopify/app",
  "cmd_all_verbose": true,
  "cmd_all_path_override": true,
  "cmd_all_path_override_hash": "0a5c3c2d2c9958c7d432810570ce277ca3eb4f88",
  "args": "--verbose",
  "app_name": "qr-code-sample-app",
  "store_fqdn": "testingdevstore1.myshopify.com",
  "env_plugin_installed_all": "[\"@shopify/app\",\"@shopify/cli\",\"@shopify/plugin-cloudflare\",\"@shopify/plugin-did-you-mean\",\"@shopify/plugin-ngrok\"]",
  "metadata": "{\"extraPublic\":{},\"extraSensitive\":{}}"
}
2023-06-21T01:38:02.313Z: Getting a random port...
2023-06-21T01:38:02.315Z: Random port obtained: 57991
2023-06-21T01:38:02.316Z: 
Starting reverse HTTP proxy on port 57968
Routing traffic rules:
{
  "default": "http://localhost:57991"
}

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21T01:38:02.422Z: 
Running system process:
  · Command: npm run dev
  · Working directory: C:/Users/batuh/OneDrive/Documents/Workstation/ShopifyAIChatBot/testing-app/shopify-app-examples/qr-code/node/web

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21T01:38:02.524Z: 
Running system process:
  · Command: npm run dev
  · Working directory: C:/Users/batuh/OneDrive/Documents/Workstation/ShopifyAIChatBot/testing-app/shopify-app-examples/qr-code/node/web/frontend

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21 01:38:04 │ backend  │
2023-06-21 01:38:04 │ backend  │ > dev
2023-06-21 01:38:04 │ backend  │ > cross-env NODE_ENV=development nodemon index.js --ignore ./frontend
2023-06-21 01:38:04 │ backend  │

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21 01:38:04 │ frontend │
2023-06-21 01:38:04 │ frontend │ > dev
2023-06-21 01:38:04 │ frontend │ > vite
2023-06-21 01:38:04 │ frontend │

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.038Z nodemon bus new listener: reset (0)

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.039Z nodemon bus new listener: reset (0)

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.062Z nodemon bus new listener: quit (0)

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.062Z nodemon bus new listener: quit (0)
2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.062Z nodemon bus new listener: restart (0)
2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.063Z nodemon bus new listener: restart (0)
2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.067Z nodemon bus new listener: reset (2)

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.069Z nodemon bus emit: reset
2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.069Z nodemon resetting watchers
2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.069Z nodemon reset

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.121Z nodemon config: dirs [
2023-06-21 01:38:05 │ backend  │   'C:\\Users\\batuh\\OneDrive\\Documents\\Workstation\\ShopifyAIChatBot\\testin
                                 g-app\\shopify-app-examples\\qr-code\\node\\web'
2023-06-21 01:38:05 │ backend  │ ]

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21 01:38:05 │ backend  │ [nodemon] 2.0.22
2023-06-21 01:38:05 │ backend  │ [nodemon] to restart at any time, enter `rs`
2023-06-21 01:38:05 │ backend  │ [nodemon] watching path(s): *.*
2023-06-21 01:38:05 │ backend  │ [nodemon] watching extensions: js,mjs,json
2023-06-21 01:38:05 │ backend  │ [nodemon] starting `node index.js`

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.128Z nodemon bus new listener: error (0)
2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.129Z nodemon bus new listener: error (0)

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.148Z nodemon:run fork C:\WINDOWS\system32\cmd.exe /d /s /c
                                 node index.js
2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.149Z nodemon bus new listener: exit (0)
2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.149Z nodemon bus new listener: exit (0)
2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.150Z nodemon:run start watch on: [ '*.*', re: /.*\..*/ ]
2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.150Z nodemon start watch on:
                                 C:\Users\batuh\OneDrive\Documents\Workstation\ShopifyAIChatBot\testing-app\shop
                                 ify-app-examples\qr-code\node\web
2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.151Z nodemon ignored [
2023-06-21 01:38:05 │ backend  │   '**/.git/**',
2023-06-21 01:38:05 │ backend  │   '**/.nyc_output/**',
2023-06-21 01:38:05 │ backend  │   '**/.sass-cache/**',
2023-06-21 01:38:05 │ backend  │   '**/bower_components/**',
2023-06-21 01:38:05 │ backend  │   '**/coverage/**',
2023-06-21 01:38:05 │ backend  │   '**/node_modules/**',
2023-06-21 01:38:05 │ backend  │   './frontend',
2023-06-21 01:38:05 │ backend  │   re:
                                 /.*.*\/\.git\/.*.*|.*.*\/\.nyc_output\/.*.*|.*.*\/\.sass\-cache\/.*.*|.*.*\/bow
                                 er_components\/.*.*|.*.*\/coverage\/.*.*|.*.*\/node_modules\/.*.*|\.\/frontend/
2023-06-21 01:38:05 │ backend  │ ]

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.191Z nodemon:watch chokidar watching:
                                 C:\Users\batuh\OneDrive\Documents\Workstation\ShopifyAIChatBot\testing-app\shop
                                 ify-app-examples\qr-code\node\web\database.sqlite

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.194Z nodemon:watch chokidar watching:
                                 C:\Users\batuh\OneDrive\Documents\Workstation\ShopifyAIChatBot\testing-app\shop
                                 ify-app-examples\qr-code\node\web\gdpr.js
2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.196Z nodemon:watch chokidar watching:
                                 C:\Users\batuh\OneDrive\Documents\Workstation\ShopifyAIChatBot\testing-app\shop
                                 ify-app-examples\qr-code\node\web\index.js

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.198Z nodemon:watch chokidar watching:
                                 C:\Users\batuh\OneDrive\Documents\Workstation\ShopifyAIChatBot\testing-app\shop
                                 ify-app-examples\qr-code\node\web\package-lock.json
2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.200Z nodemon:watch chokidar watching:
                                 C:\Users\batuh\OneDrive\Documents\Workstation\ShopifyAIChatBot\testing-app\shop
                                 ify-app-examples\qr-code\node\web\package.json
2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.201Z nodemon:watch chokidar watching:
                                 C:\Users\batuh\OneDrive\Documents\Workstation\ShopifyAIChatBot\testing-app\shop
                                 ify-app-examples\qr-code\node\web\qr-codes-db.js
2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.203Z nodemon:watch chokidar watching:
                                 C:\Users\batuh\OneDrive\Documents\Workstation\ShopifyAIChatBot\testing-app\shop
                                 ify-app-examples\qr-code\node\web\shopify.js
2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.205Z nodemon:watch chokidar watching:
                                 C:\Users\batuh\OneDrive\Documents\Workstation\ShopifyAIChatBot\testing-app\shop
                                 ify-app-examples\qr-code\node\web\shopify.web.toml

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.226Z nodemon:watch chokidar watching:
                                 C:\Users\batuh\OneDrive\Documents\Workstation\ShopifyAIChatBot\testing-app\shop
                                 ify-app-examples\qr-code\node\web\helpers\qr-codes.js

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.231Z nodemon:watch chokidar watching:
                                 C:\Users\batuh\OneDrive\Documents\Workstation\ShopifyAIChatBot\testing-app\shop
                                 ify-app-examples\qr-code\node\web\middleware\qr-code-api.js

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.233Z nodemon:watch chokidar watching:
                                 C:\Users\batuh\OneDrive\Documents\Workstation\ShopifyAIChatBot\testing-app\shop
                                 ify-app-examples\qr-code\node\web\middleware\qr-code-public.js
2023-06-21 01:38:05 │ backend  │ 2023-06-21T01:38:05.233Z nodemon watch is complete

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21 01:38:05 │ frontend │ 2023-06-21T01:38:05.418Z vite:config native esm config loaded in 433.21ms URL {
2023-06-21 01:38:05 │ frontend │   href: 'file:///C:/Users/batuh/OneDrive/Documents/Workstation/ShopifyAIChatBot
                                 /testing-app/shopify-app-examples/qr-code/node/web/frontend/vite.config.js',
2023-06-21 01:38:05 │ frontend │   origin: 'null',
2023-06-21 01:38:05 │ frontend │   protocol: 'file:',
2023-06-21 01:38:05 │ frontend │   username: '',
2023-06-21 01:38:05 │ frontend │   password: '',
2023-06-21 01:38:05 │ frontend │   host: '',
2023-06-21 01:38:05 │ frontend │   hostname: '',
2023-06-21 01:38:05 │ frontend │   port: '',
2023-06-21 01:38:05 │ frontend │   pathname: '/C:/Users/batuh/OneDrive/Documents/Workstation/ShopifyAIChatBot/te
                                 sting-app/shopify-app-examples/qr-code/node/web/frontend/vite.config.js',
2023-06-21 01:38:05 │ frontend │   search: '',
2023-06-21 01:38:05 │ frontend │   searchParams: URLSearchParams {},
2023-06-21 01:38:05 │ frontend │   hash: ''
2023-06-21 01:38:05 │ frontend │ }

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21 01:38:05 │ frontend │ 2023-06-21T01:38:05.452Z vite:config using resolved config: {
2023-06-21 01:38:05 │ frontend │   root: 'C:/Users/batuh/OneDrive/Documents/Workstation/ShopifyAIChatBot/testing
                                 -app/shopify-app-examples/qr-code/node/web/frontend',
2023-06-21 01:38:05 │ frontend │   plugins: [
2023-06-21 01:38:05 │ frontend │     'vite:pre-alias',
2023-06-21 01:38:05 │ frontend │     'alias',
2023-06-21 01:38:05 │ frontend │     'vite:react-babel',
2023-06-21 01:38:05 │ frontend │     'vite:react-refresh',
2023-06-21 01:38:05 │ frontend │     'vite:react-jsx',
2023-06-21 01:38:05 │ frontend │     'vite:modulepreload-polyfill',
2023-06-21 01:38:05 │ frontend │     'vite:resolve',
2023-06-21 01:38:05 │ frontend │     'vite:optimized-deps',
2023-06-21 01:38:05 │ frontend │     'vite:html-inline-proxy',
2023-06-21 01:38:05 │ frontend │     'vite:css',
2023-06-21 01:38:05 │ frontend │     'vite:esbuild',
2023-06-21 01:38:05 │ frontend │     'vite:json',
2023-06-21 01:38:05 │ frontend │     'vite:wasm',
2023-06-21 01:38:05 │ frontend │     'vite:worker',
2023-06-21 01:38:05 │ frontend │     'vite:asset',
2023-06-21 01:38:05 │ frontend │     'vite:define',
2023-06-21 01:38:05 │ frontend │     'vite:css-post',
2023-06-21 01:38:05 │ frontend │     'vite:worker-import-meta-url',
2023-06-21 01:38:05 │ frontend │     'vite:client-inject',
2023-06-21 01:38:05 │ frontend │     'vite:import-analysis'
2023-06-21 01:38:05 │ frontend │   ],
2023-06-21 01:38:05 │ frontend │   define: {
2023-06-21 01:38:05 │ frontend │     'process.env.SHOPIFY_API_KEY': '"5155e85c8825fba095d9bcc064a671bc"'
2023-06-21 01:38:05 │ frontend │   },
2023-06-21 01:38:05 │ frontend │   resolve: {
2023-06-21 01:38:05 │ frontend │     dedupe: [ 'react', 'react-dom' ],
2023-06-21 01:38:05 │ frontend │     preserveSymlinks: true,
2023-06-21 01:38:05 │ frontend │     alias: [ [Object], [Object] ]
2023-06-21 01:38:05 │ frontend │   },
2023-06-21 01:38:05 │ frontend │   server: {
2023-06-21 01:38:05 │ frontend │     preTransformRequests: true,
2023-06-21 01:38:05 │ frontend │     host: 'localhost',
2023-06-21 01:38:05 │ frontend │     port: '57991',
2023-06-21 01:38:05 │ frontend │     hmr: {
2023-06-21 01:38:05 │ frontend │       protocol: 'wss',
2023-06-21 01:38:05 │ frontend │       host: 'rational-strictly-prompt-hood.trycloudflare.com',
2023-06-21 01:38:05 │ frontend │       port: '57991',
2023-06-21 01:38:05 │ frontend │       clientPort: 443
2023-06-21 01:38:05 │ frontend │     },
2023-06-21 01:38:05 │ frontend │     proxy: {
2023-06-21 01:38:05 │ frontend │       '^/(\\?.*)?$': [Object],
2023-06-21 01:38:05 │ frontend │       '^/api(/|(\\?.*)?$)': [Object],
2023-06-21 01:38:05 │ frontend │       '^/qrcodes/[0-9]+/image(\\?.*)?$': [Object],
2023-06-21 01:38:05 │ frontend │       '^/qrcodes/[0-9]+/scan(\\?.*)?$': [Object]
2023-06-21 01:38:05 │ frontend │     },
2023-06-21 01:38:05 │ frontend │     fs: { strict: true, allow: [Array], deny: [Array] }
2023-06-21 01:38:05 │ frontend │   },
2023-06-21 01:38:05 │ frontend │   optimizeDeps: {
2023-06-21 01:38:05 │ frontend │     include: [ 'react/jsx-dev-runtime' ],
2023-06-21 01:38:05 │ frontend │     esbuildOptions: { keepNames: undefined, preserveSymlinks: true }
2023-06-21 01:38:05 │ frontend │   },
2023-06-21 01:38:05 │ frontend │   configFile: 'C:/Users/batuh/OneDrive/Documents/Workstation/ShopifyAIChatBot/t
                                 esting-app/shopify-app-examples/qr-code/node/web/frontend/vite.config.js',
2023-06-21 01:38:05 │ frontend │   configFileDependencies: [
2023-06-21 01:38:05 │ frontend │     'C:/Users/batuh/OneDrive/Documents/Workstation/ShopifyAIChatBot/testing-app
                                 /shopify-app-examples/qr-code/node/web/frontend/vite.config.js'
2023-06-21 01:38:05 │ frontend │   ],
2023-06-21 01:38:05 │ frontend │   inlineConfig: {
2023-06-21 01:38:05 │ frontend │     root: undefined,
2023-06-21 01:38:05 │ frontend │     base: undefined,
2023-06-21 01:38:05 │ frontend │     mode: undefined,
2023-06-21 01:38:05 │ frontend │     configFile: undefined,
2023-06-21 01:38:05 │ frontend │     logLevel: undefined,
2023-06-21 01:38:05 │ frontend │     clearScreen: undefined,
2023-06-21 01:38:05 │ frontend │     server: {}
2023-06-21 01:38:05 │ frontend │   },
2023-06-21 01:38:05 │ frontend │   base: '/',
2023-06-21 01:38:05 │ frontend │   publicDir: 'C:\\Users\\batuh\\OneDrive\\Documents\\Workstation\\ShopifyAIChat
                                 Bot\\testing-app\\shopify-app-examples\\qr-code\\node\\web\\frontend\\public',
2023-06-21 01:38:05 │ frontend │   cacheDir:
                                 'C:\\Users\\batuh\\OneDrive\\Documents\\Workstation\\ShopifyAIChatBot\\testing-
                                 app\\shopify-app-examples\\qr-code\\node\\web\\frontend\\node_modules\\.vite',
2023-06-21 01:38:05 │ frontend │   command: 'serve',
2023-06-21 01:38:05 │ frontend │   mode: 'development',
2023-06-21 01:38:05 │ frontend │   isWorker: false,
2023-06-21 01:38:05 │ frontend │   isProduction: false,
2023-06-21 01:38:05 │ frontend │   build: {
2023-06-21 01:38:05 │ frontend │     target: [ 'es2019', 'edge88', 'firefox78', 'chrome87', 'safari13.1' ],
2023-06-21 01:38:05 │ frontend │     polyfillModulePreload: true,
2023-06-21 01:38:05 │ frontend │     outDir: 'dist',
2023-06-21 01:38:05 │ frontend │     assetsDir: 'assets',
2023-06-21 01:38:05 │ frontend │     assetsInlineLimit: 4096,
2023-06-21 01:38:05 │ frontend │     cssCodeSplit: true,
2023-06-21 01:38:05 │ frontend │     cssTarget: [ 'es2019', 'edge88', 'firefox78', 'chrome87', 'safari13.1' ],
2023-06-21 01:38:05 │ frontend │     sourcemap: false,
2023-06-21 01:38:05 │ frontend │     rollupOptions: {},
2023-06-21 01:38:05 │ frontend │     minify: 'esbuild',
2023-06-21 01:38:05 │ frontend │     terserOptions: {},
2023-06-21 01:38:05 │ frontend │     write: true,
2023-06-21 01:38:05 │ frontend │     emptyOutDir: null,
2023-06-21 01:38:05 │ frontend │     manifest: false,
2023-06-21 01:38:05 │ frontend │     lib: false,
2023-06-21 01:38:05 │ frontend │     ssr: false,
2023-06-21 01:38:05 │ frontend │     ssrManifest: false,
2023-06-21 01:38:05 │ frontend │     reportCompressedSize: true,
2023-06-21 01:38:05 │ frontend │     chunkSizeWarningLimit: 500,
2023-06-21 01:38:05 │ frontend │     watch: null,
2023-06-21 01:38:05 │ frontend │     commonjsOptions: { include: [Array], extensions: [Array] },
2023-06-21 01:38:05 │ frontend │     dynamicImportVarsOptions: { warnOnError: true, exclude: [Array] }
2023-06-21 01:38:05 │ frontend │   },
2023-06-21 01:38:05 │ frontend │   preview: {
2023-06-21 01:38:05 │ frontend │     port: undefined,
2023-06-21 01:38:05 │ frontend │     strictPort: undefined,
2023-06-21 01:38:05 │ frontend │     host: 'localhost',
2023-06-21 01:38:05 │ frontend │     https: undefined,
2023-06-21 01:38:05 │ frontend │     open: undefined,
2023-06-21 01:38:05 │ frontend │     proxy: {
2023-06-21 01:38:05 │ frontend │       '^/(\\?.*)?$': [Object],
2023-06-21 01:38:05 │ frontend │       '^/api(/|(\\?.*)?$)': [Object],
2023-06-21 01:38:05 │ frontend │       '^/qrcodes/[0-9]+/image(\\?.*)?$': [Object],
2023-06-21 01:38:05 │ frontend │       '^/qrcodes/[0-9]+/scan(\\?.*)?$': [Object]
2023-06-21 01:38:05 │ frontend │     },
2023-06-21 01:38:05 │ frontend │     cors: undefined,
2023-06-21 01:38:05 │ frontend │     headers: undefined
2023-06-21 01:38:05 │ frontend │   },
2023-06-21 01:38:05 │ frontend │   env: { BASE_URL: '/', MODE: 'development', DEV: true, PROD: false },
2023-06-21 01:38:05 │ frontend │   assetsInclude: [Function: assetsInclude],
2023-06-21 01:38:05 │ frontend │   logger: {
2023-06-21 01:38:05 │ frontend │     hasWarned: false,
2023-06-21 01:38:05 │ frontend │     info: [Function: info],
2023-06-21 01:38:05 │ frontend │     warn: [Function: warn],
2023-06-21 01:38:05 │ frontend │     warnOnce: [Function: warnOnce],
2023-06-21 01:38:05 │ frontend │     error: [Function: error],
2023-06-21 01:38:05 │ frontend │     clearScreen: [Function: clearScreen],
2023-06-21 01:38:05 │ frontend │     hasErrorLogged: [Function: hasErrorLogged]
2023-06-21 01:38:05 │ frontend │   },
2023-06-21 01:38:05 │ frontend │   packageCache: Map(0) {},
2023-06-21 01:38:05 │ frontend │   createResolver: [Function: createResolver],
2023-06-21 01:38:05 │ frontend │   worker: {
2023-06-21 01:38:05 │ frontend │     format: 'iife',
2023-06-21 01:38:05 │ frontend │     plugins: [
2023-06-21 01:38:05 │ frontend │       [Object], [Object],
2023-06-21 01:38:05 │ frontend │       [Object], [Object],
2023-06-21 01:38:05 │ frontend │       [Object], [Object],
2023-06-21 01:38:05 │ frontend │       [Object], [Object],
2023-06-21 01:38:05 │ frontend │       [Object], [Object],
2023-06-21 01:38:05 │ frontend │       [Object], [Object],
2023-06-21 01:38:05 │ frontend │       [Object], [Object],
2023-06-21 01:38:05 │ frontend │       [Object], [Object],
2023-06-21 01:38:05 │ frontend │       [Object]
2023-06-21 01:38:05 │ frontend │     ],
2023-06-21 01:38:05 │ frontend │     rollupOptions: {}
2023-06-21 01:38:05 │ frontend │   }
2023-06-21 01:38:05 │ frontend │ }

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21 01:38:05 │ frontend │
2023-06-21 01:38:05 │ frontend │   vite v2.9.16 dev server running at:
2023-06-21 01:38:05 │ frontend │
2023-06-21 01:38:05 │ frontend │   > Network:  http://192.168.56.1:57991/
2023-06-21 01:38:05 │ frontend │   > Network:  http://192.168.33.1:57991/
2023-06-21 01:38:05 │ frontend │   > Network:  http://172.22.13.16:57991/
2023-06-21 01:38:05 │ frontend │   > Local:    http://localhost:57991/
2023-06-21 01:38:05 │ frontend │
2023-06-21 01:38:05 │ frontend │   ready in 701ms.
2023-06-21 01:38:05 │ frontend │

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21 01:38:05 │ frontend │ Wed, 21 Jun 2023 01:38:05 GMT connect:dispatcher use / viteTimeMiddleware
2023-06-21 01:38:05 │ frontend │ Wed, 21 Jun 2023 01:38:05 GMT connect:dispatcher use / corsMiddleware
2023-06-21 01:38:05 │ frontend │ Wed, 21 Jun 2023 01:38:05 GMT connect:dispatcher use / viteProxyMiddleware
2023-06-21 01:38:05 │ frontend │ Wed, 21 Jun 2023 01:38:05 GMT connect:dispatcher use /__open-in-editor
                                 launchEditorMiddleware
2023-06-21 01:38:05 │ frontend │ Wed, 21 Jun 2023 01:38:05 GMT connect:dispatcher use /__vite_ping
                                 viteHMRPingMiddleware
2023-06-21 01:38:05 │ frontend │ Wed, 21 Jun 2023 01:38:05 GMT connect:dispatcher use /
                                 viteServePublicMiddleware
2023-06-21 01:38:05 │ frontend │ Wed, 21 Jun 2023 01:38:05 GMT connect:dispatcher use / viteTransformMiddleware
2023-06-21 01:38:05 │ frontend │ Wed, 21 Jun 2023 01:38:05 GMT connect:dispatcher use / viteServeRawFsMiddleware
2023-06-21 01:38:05 │ frontend │ Wed, 21 Jun 2023 01:38:05 GMT connect:dispatcher use /
                                 viteServeStaticMiddleware
2023-06-21 01:38:05 │ frontend │ Wed, 21 Jun 2023 01:38:05 GMT connect:dispatcher use /
                                 viteSpaFallbackMiddleware
2023-06-21 01:38:05 │ frontend │ Wed, 21 Jun 2023 01:38:05 GMT connect:dispatcher use / viteIndexHtmlMiddleware
2023-06-21 01:38:05 │ frontend │ Wed, 21 Jun 2023 01:38:05 GMT connect:dispatcher use / vite404Middleware
2023-06-21 01:38:05 │ frontend │ Wed, 21 Jun 2023 01:38:05 GMT connect:dispatcher use / viteErrorMiddleware
2023-06-21 01:38:05 │ frontend │ 2023-06-21T01:38:05.485Z vite:deps Hash is consistent. Skipping. Use --force to
                                  override.

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21 01:38:06 │ backend  │ [shopify-api/INFO] version 7.3.1, environment Node v18.16.1

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:application set "x-powered-by" to true

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:application set "etag" to 'weak'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:application set "etag fn" to [Function:
                                 generateETag]
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:application set "env" to 'development'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:application set "query parser" to
                                 'extended'

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:application set "query parser fn" to
                                 [Function: parseExtendedQueryString]
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:application set "subdomain offset" to 2
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:application set "trust proxy" to false
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:application set "trust proxy fn" to
                                 [Function: trustNone]
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:application booting in development mode
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:application set "view" to [Function:
                                 View]
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:application set "views" to
                                 'C:\\Users\\batuh\\OneDrive\\Documents\\Workstation\\ShopifyAIChatBot\\testing-
                                 app\\shopify-app-examples\\qr-code\\node\\web\\views'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:application set "jsonp callback name" to
                                 'callback'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router use '/' query
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router use '/' expressInit
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:route new '/api/auth'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/api/auth'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:route get '/api/auth'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:route new '/api/auth/callback'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/api/auth/callback'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:route get '/api/auth/callback'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:route get '/api/auth/callback'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/'

› Press p │ preview in your browser
› Press q │ quit

Preview URL: https://rational-strictly-prompt-hood.trycloudflare.com?shop=testin
gdevstore1.myshopify.com&host=dGVzdGluZ2RldnN0b3JlMS5teXNob3BpZnkuY29tL2FkbWlu

2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:route new '/api/webhooks'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/api/webhooks'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:route post '/api/webhooks'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:route post '/api/webhooks'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:route new '/qrcodes/:id/image'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/qrcodes/:id/image'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:route get '/qrcodes/:id/image'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:route new '/qrcodes/:id/scan'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/qrcodes/:id/scan'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:route get '/qrcodes/:id/scan'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router use '/api/*' <anonymous>
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/api/*'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router use '/' jsonParser
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:route new '/api/shop-data'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/api/shop-data'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:route get '/api/shop-data'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:route new '/api/qrcodes'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/api/qrcodes'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:route post '/api/qrcodes'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:route new '/api/qrcodes/:id'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/api/qrcodes/:id'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:route patch '/api/qrcodes/:id'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:route new '/api/qrcodes'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/api/qrcodes'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:route get '/api/qrcodes'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:route new '/api/qrcodes/:id'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/api/qrcodes/:id'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:route get '/api/qrcodes/:id'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:route new '/api/qrcodes/:id'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/api/qrcodes/:id'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:route delete '/api/qrcodes/:id'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router use '/' serveStatic
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router use '/*' <anonymous>
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/*'
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router use '/*' <anonymous>
2023-06-21 01:38:06 │ backend  │ Wed, 21 Jun 2023 01:38:06 GMT express:router:layer new '/*'

Reproduction steps

  1. Clone https://github.com/Shopify/shopify-app-examples/tree/main
  2. Run npm install inside the project folder for qrcode
  3. npm run dev
  4. Follow default settings, create new app
  5. Install app by following link. Try to open the apps page

Issue wasn't happening initially with my project. Once it started happening, couldn't fix it. Tried cloning and running with the example project and saw it faced the same error. Tried with node 16, faced same issue.

NOTE: Cut off the Verbose output because of github issue character limit. It only includes up to the app loading, doesn't contain messages related to my refresh. Cut off at about line ~1000, which is when the loading finishes. Refreshing the page causes it to go to ~180k lines. Included first ~4000 lines here https://pastebin.com/QynUFGqH

Operating System

Windows 10

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

3.46.5

Shell

Command Prompt

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

v18.16.1

What language and version are you using in your application?

Node 18.16.1

github-actions[bot] commented 1 year ago

This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's dev tooling and experience.

P.S. You can learn more about why we stale issues here.