Shopify / cli

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

[Bug]: dev --rest on Existing App Fails in TOML Generation Stage #3620

Closed sshaw closed 7 months ago

sshaw commented 7 months ago

Please confirm that you have:

In which of these areas are you experiencing a problem?

App

Expected behavior

I have a TOML file and can install the app on a development store.

When I manually add the values to this file then run dev command to start local sever, it prompts me to fill it out again, overwriting the file, and resulting in the same error!

I've tried with 3.57.1, same error, and the latest version 3.58.0 but that results in this error https://github.com/Shopify/cli/issues/3618

Actual behavior

~/code/ruby/ss/some-app >npm run dev -- --reset
npm WARN config init.author.name Use `--init-author-name` instead.
npm WARN config init.author.email Use `--init-author-email` instead.

> dev
> shopify app dev --reset

?  Which Partners organization is this work for?
✔  XXX

Before proceeding, your project needs to be associated with an app.

?  Create this project as a new app on Shopify?
✔  No, connect it to an existing app

?  Which existing app is this for?
✔  XXX (XXX.toml)

╭─ error ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                            │
│  Fix a schema error in XXX.toml:                                                     │
│  [                                                                                                                         │
│    {                                                                                                                       │
│      "code": "invalid_type",                                                                                               │
│      "expected": "string",                                                                                                 │
│      "received": "undefined",                                                                                              │
│      "path": [                                                                                                             │
│        "name"                                                                                                              │
│      ],                                                                                                                    │
│      "message": "Required"                                                                                                 │
│    },                                                                                                                      │
│    {                                                                                                                       │
│      "code": "invalid_type",                                                                                               │
│      "expected": "object",                                                                                                 │
│      "received": "undefined",                                                                                              │
│      "path": [                                                                                                             │
│        "auth"                                                                                                              │
│      ],                                                                                                                    │
│      "message": "Required"                                                                                                 │
│    },                                                                                                                      │
│    {                                                                                                                       │
│      "code": "invalid_type",                                                                                               │
│      "expected": "object",                                                                                                 │
│      "received": "undefined",                                                                                              │
│      "path": [                                                                                                             │
│        "webhooks"                                                                                                          │
│      ],                                                                                                                    │
│      "message": "Required"                                                                                                 │
│    },                                                                                                                      │
│    {                                                                                                                       │
│      "code": "invalid_type",                                                                                               │
│      "expected": "string",                                                                                                 │
│      "received": "undefined",                                                                                              │
│      "path": [                                                                                                             │
│        "application_url"                                                                                                   │
│      ],                                                                                                                    │
│      "message": "Required"                                                                                                 │
│    },                                                                                                                      │
│    {                                                                                                                       │
│      "code": "invalid_type",                                                                                               │
│      "expected": "boolean",                                                                                                │
│      "received": "undefined",                                                                                              │
│      "path": [                                                                                                             │
│        "embedded"                                                                                                          │
│      ],                                                                                                                    │
│      "message": "Required"                                                                                                 │
│    }                                                                                                                       │
│  ]                                                                                                                         │
│                                                                                                                            │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Verbose output

~/code/ruby/ss/the-app >npm run dev -- --reset --verbose
npm WARN config init.author.name Use `--init-author-name` instead.
npm WARN config init.author.email Use `--init-author-email` instead.

> dev
> shopify app dev --reset --verbose

2024-03-29T14:41:22.865Z: Running command app dev
2024-03-29T14:41:22.870Z: Getting a random port...
2024-03-29T14:41:22.874Z: Random port obtained: 61328
2024-03-29T14:41:22.884Z:
Running system process:
  · Command: /Users/sshaw/code/ruby/ss/the-app/node_modules/@shopify/plugin-cloudflare/bin/cloudflared tunnel --url http://localhost:61328 --no-autoupdate
  · Working directory: /Users/sshaw/code/ruby/ss/the-app

2024-03-29T14:41:22.885Z: Ensuring that the user is authenticated with the Partners API with the following scopes:
[]

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

2024-03-29T14:41:22.888Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-03-29T14:41:22.889Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.56.3
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-03-29T14:41:23.017Z: 2024-03-29T14:41:23Z INF Thank you for trying Cloudflare Tunnel. Doing so, without a Cloudflare account, is a quick way to experiment and try it out. However, be aware that these account-less Tunnels have no uptime guarantee. If you intend to use Tunnels in production you should use a pre-created named tunnel by following: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps

2024-03-29T14:41:23.017Z: 2024-03-29T14:41:23Z INF Requesting new quick Tunnel on trycloudflare.com...

2024-03-29T14:41:23.078Z: Request to https://accounts.shopify.com/oauth/introspection completed in 186 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/"57423c0affc290b3575ce97b8af24cce"
 - x-request-id: e8c99e8f-5814-4e51-a926-5d1dda447139-1711723282

2024-03-29T14:41:23.079Z: The identity token is valid: true
2024-03-29T14:41:23.080Z:
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false

2024-03-29T14:41:23.080Z: Verifying that the user has a Partner organization
2024-03-29T14:41:23.085Z: Sending "Partners" GraphQL request:
  {
    organizations(first: 1) {
      nodes {
        id
      }
    }
  }

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

2024-03-29T14:41:23.284Z: Request to https://partners.shopify.com/api/cli/graphql completed in 191 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"bbf2a54c80bcdc0ebbeaad29d3bcd1e3"
 - x-request-id: 51ad4566-d9f8-4d42-9519-d4a09433aa1c-1711723283

2024-03-29T14:41:23.289Z: Sending "Partners" GraphQL request:
  query currentAccountInfo {
    currentAccountInfo {
      __typename
      ... on ServiceAccount {
        orgName
      }
      ... on UserAccount {
        email
      }
    }
  }

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

2024-03-29T14:41:23.454Z: Request to https://partners.shopify.com/api/cli/graphql completed in 162 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"f12cad10dcb81de3ead433bf7d21c316"
 - x-request-id: dec6b97b-1b05-4429-a091-99265bdf9da5-1711723283

2024-03-29T14:41:23.458Z: Reading cached app information for directory /Users/sshaw/code/ruby/ss/the-app...
2024-03-29T14:41:23.459Z: Clearing app information for directory /Users/sshaw/code/ruby/ss/the-app...
2024-03-29T14:41:23.482Z: Reading cached app information for directory /Users/sshaw/code/ruby/ss/the-app...
2024-03-29T14:41:23.483Z: Reading the content of file at shopify.app.toml...
2024-03-29T14:41:23.485Z: Reading the content of file at shopify.app.toml...
2024-03-29T14:41:23.489Z: Reading the content of file at XXX.toml...
2024-03-29T14:41:23.489Z: Reading the content of file at shopify.app.toml...
2024-03-29T14:41:23.531Z: Reading the content of file at package.json...
2024-03-29T14:41:23.532Z: Reading the content of file at package.json...
2024-03-29T14:41:23.533Z: Obtaining the dependency manager in directory /Users/sshaw/code/ruby/ss/the-app...
2024-03-29T14:41:23.536Z: Reading the content of file at shopify.web.toml...
2024-03-29T14:41:23.538Z: Reading the content of file at package.json...
2024-03-29T14:41:23.562Z: Ensuring that the user is authenticated with the Partners API with the following scopes:
[]

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

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

2024-03-29T14:41:23.668Z: Request to https://accounts.shopify.com/oauth/introspection completed in 103 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/"57423c0affc290b3575ce97b8af24cce"
 - x-request-id: 12213577-06ef-468c-b0f0-b2244074b13e-1711723283

2024-03-29T14:41:23.669Z: The identity token is valid: true
2024-03-29T14:41:23.669Z:
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false

2024-03-29T14:41:23.669Z: Verifying that the user has a Partner organization
2024-03-29T14:41:23.672Z: Sending "Partners" GraphQL request:
  {
    organizations(first: 1) {
      nodes {
        id
      }
    }
  }

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

2024-03-29T14:41:23.845Z: Request to https://partners.shopify.com/api/cli/graphql completed in 172 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"bbf2a54c80bcdc0ebbeaad29d3bcd1e3"
 - x-request-id: 6c8a462c-b7b2-42db-8c87-f035cefef786-1711723283

2024-03-29T14:41:23.852Z: Sending "Partners" GraphQL request:
  query currentAccountInfo {
    currentAccountInfo {
      __typename
      ... on ServiceAccount {
        orgName
      }
      ... on UserAccount {
        email
      }
    }
  }

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

2024-03-29T14:41:24.008Z: Request to https://partners.shopify.com/api/cli/graphql completed in 153 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"f12cad10dcb81de3ead433bf7d21c316"
 - x-request-id: 1a22180b-a2e8-4eb5-8c0c-2270e17cdaa5-1711723283

2024-03-29T14:41:24.015Z: Sending "Partners" GraphQL request:
  {
    organizations(first: 200) {
      nodes {
        id
        businessName
        website
      }
    }
  }

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

2024-03-29T14:41:24.188Z: Request to https://partners.shopify.com/api/cli/graphql completed in 171 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"9cc0d67746fae63f1984b2a0d3fc1731"
 - x-request-id: 2f177bf7-f0ce-4040-a98b-80549930d1f8-1711723284

2024-03-29T14:41:24.243Z: 2024-03-29T14:41:24Z INF +--------------------------------------------------------------------------------------------+
2024-03-29T14:41:24Z INF |  Your quick Tunnel has been created! Visit it at (it may take some time to be reachable):  |
2024-03-29T14:41:24Z INF |  https://favor-defects-tire-portugal.trycloudflare.com                                     |
2024-03-29T14:41:24Z INF +--------------------------------------------------------------------------------------------+
2024-03-29T14:41:24Z INF Cannot determine default configuration path. No file [config.yml config.yaml] in [~/.cloudflared ~/.cloudflare-warp ~/cloudflare-warp /etc/cloudflared /usr/local/etc/cloudflared]
2024-03-29T14:41:24Z INF Version 2023.5.1
2024-03-29T14:41:24Z INF GOOS: darwin, GOVersion: go1.19.3, GoArch: amd64
2024-03-29T14:41:24Z INF Settings: map[ha-connections:1 no-autoupdate:true protocol:quic url:http://localhost:61328]
2024-03-29T14:41:24Z INF Generated Connector ID: d71b16dd-e13c-46c9-97a6-6a5b0b833795

2024-03-29T14:41:24.253Z: 2024-03-29T14:41:24Z INF Initial protocol quic

2024-03-29T14:41:24.255Z: 2024-03-29T14:41:24Z INF ICMP proxy will use 192.168.1.194 as source for IPv4

2024-03-29T14:41:24.256Z: 2024-03-29T14:41:24Z INF ICMP proxy will use fe80::c90:674c:d6aa:c7eb in zone en0 as source for IPv6

2024-03-29T14:41:24.257Z: 2024-03-29T14:41:24Z INF Created ICMP proxy listening on 192.168.1.194:0

2024-03-29T14:41:24.257Z: 2024-03-29T14:41:24Z INF Created ICMP proxy listening on [fe80::c90:674c:d6aa:c7eb%en0]:0

2024-03-29T14:41:24.301Z: 2024-03-29T14:41:24Z INF Starting metrics server on 127.0.0.1:61338/metrics

2024-03-29T14:41:24.369Z: 2024-03-29T14:41:24Z WRN Your version 2023.5.1 is outdated. We recommend upgrading it to 2024.3.0

2024-03-29T14:41:24.663Z: 2024-03-29T14:41:24Z INF Registered tunnel connection connIndex=0 connection=4503d1b8-46bb-4dfd-a8b6-070d45094717 event=0 ip=198.41.192.7 location=ewr11 protocol=quic

?  Which Partners organization is this work for?
✔  Staring

2024-03-29T14:41:28.202Z: Sending "Partners" GraphQL request:
  query FindOrganization($id: ID!, $title: String) {
    organizations(id: $id, first: 1) {
      nodes {
        id
        businessName
        website
        apps(first: 25, title: $title) {
          pageInfo {
            hasNextPage
          }
          nodes {
            id
            title
            apiKey
          }
        }
      }
    }
  }

With variables:
{
  "id": "343588"
}

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

2024-03-29T14:41:28.378Z: Request to https://partners.shopify.com/api/cli/graphql completed in 175 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"837d414b38b894bd2673699ec3f207fc"
 - x-request-id: 7c024ffb-ccd9-438c-9894-5169e27f5267-1711723288

2024-03-29T14:41:28.386Z: Sending "Partners" GraphQL request:
  query FindOrganization($id: ID!) {
    organizations(id: $id, first: 1) {
      nodes {
        id
        stores(first: 500, archived: false, type: [DEVELOPMENT, PLUS_SANDBOX]) {
          nodes {
            shopId
            link
            shopDomain
            shopName
            transferDisabled
            convertableToPartnerTest
          }
        }
      }
    }
  }

With variables:
{
  "id": "343588"
}

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

2024-03-29T14:41:28.575Z: Request to https://partners.shopify.com/api/cli/graphql completed in 188 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"f15d7f6bf1f639d2a28b4002d279755a"
 - x-request-id: b7032736-0ecd-47f9-b93b-48d5465f7ff0-1711723288

Before proceeding, your project needs to be associated with an app.

?  Create this project as a new app on Shopify?
✔  No, connect it to an existing app

2024-03-29T14:41:30.218Z: Reading the content of file at XXX.toml...
2024-03-29T14:41:30.218Z: Reading the content of file at shopify.app.toml...
?  Which existing app is this for?
✔  XXX (XXX.toml)

2024-03-29T14:41:32.554Z: Sending "Partners" GraphQL request:
  query FindApp($apiKey: String!) {
    app(apiKey: $apiKey) {
      id
      title
      apiKey
      organizationId
      apiSecretKeys {
        secret
      }
      appType
      grantedScopes
      applicationUrl
      redirectUrlWhitelist
      requestedAccessScopes
      developmentStorePreviewEnabled
      disabledBetas
    }
  }

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

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

2024-03-29T14:41:33.208Z: Request to https://partners.shopify.com/api/cli/graphql completed in 651 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"4a12f1abef7673a2debcd198cc020251"
 - x-request-id: c30e3644-bf86-44c0-a02f-5bf4a47a86db-1711723292

2024-03-29T14:41:33.213Z: 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
        }
      }
    }
  }

With variables:
{
  "api_key": "eb44282be8c7f9860876ce853bfae34d"
}

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

2024-03-29T14:41:33.433Z: Request to https://partners.shopify.com/api/cli/graphql completed in 218 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"7e6a65a05434faa8dc6f298980a6c5ae"
 - x-request-id: 3e90f6a9-ccfd-400e-a7de-21faac3d7223-1711723293

2024-03-29T14:41:33.438Z: Reading cached app information for directory /Users/sshaw/code/ruby/ss/the-app...
2024-03-29T14:41:33.439Z: Reading the content of file at shopify.app.toml...
2024-03-29T14:41:33.441Z: Reading the content of file at shopify.app.toml...
2024-03-29T14:41:33.444Z: Reading the content of file at XXX.toml...
2024-03-29T14:41:33.444Z: Reading the content of file at shopify.app.toml...
2024-03-29T14:41:33.488Z: Reading the content of file at extensions/admin-action/shopify.extension.toml...
2024-03-29T14:41:33.489Z: Reading the content of file at extensions/admin-action/shopify.extension.toml...
2024-03-29T14:41:33.491Z: Reading the content of file at package.json...
2024-03-29T14:41:33.492Z: Reading the content of file at package.json...
2024-03-29T14:41:33.493Z: Obtaining the dependency manager in directory /Users/sshaw/code/ruby/ss/the-app...
2024-03-29T14:41:33.496Z: Reading the content of file at shopify.web.toml...
2024-03-29T14:41:33.498Z: Reading the content of file at package.json...
2024-03-29T14:41:33.504Z: 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.56.3
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-03-29T14:41:33.766Z: Request to https://partners.shopify.com/api/cli/graphql completed in 261 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"d5ea70ae5a5479d76b7523f6ab1ad796"
 - x-request-id: 480cfa36-c941-4c0e-80be-fd32d618ba0a-1711723293

2024-03-29T14:41:33.770Z: File-writing some content to file at XXX.toml...
2024-03-29T14:41:33.772Z: Reading cached app information for directory /Users/sshaw/code/ruby/ss/the-app...
2024-03-29T14:41:33.773Z: Reading the content of file at XXX.toml...
2024-03-29T14:41:33.774Z: Reading the content of file at XXX.toml...
╭─ error ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                            │
│  Fix a schema error in XXX.toml:                                                     │
│  [                                                                                                                         │
│    {                                                                                                                       │
│      "code": "invalid_type",                                                                                               │
│      "expected": "string",                                                                                                 │
│      "received": "undefined",                                                                                              │
│      "path": [                                                                                                             │
│        "name"                                                                                                              │
│      ],                                                                                                                    │
│      "message": "Required"                                                                                                 │
│    },                                                                                                                      │
│    {                                                                                                                       │
│      "code": "invalid_type",                                                                                               │
│      "expected": "object",                                                                                                 │
│      "received": "undefined",                                                                                              │
│      "path": [                                                                                                             │
│        "auth"                                                                                                              │
│      ],                                                                                                                    │
│      "message": "Required"                                                                                                 │
│    },                                                                                                                      │
│    {                                                                                                                       │
│      "code": "invalid_type",                                                                                               │
│      "expected": "object",                                                                                                 │
│      "received": "undefined",                                                                                              │
│      "path": [                                                                                                             │
│        "webhooks"                                                                                                          │
│      ],                                                                                                                    │
│      "message": "Required"                                                                                                 │
│    },                                                                                                                      │
│    {                                                                                                                       │
│      "code": "invalid_type",                                                                                               │
│      "expected": "string",                                                                                                 │
│      "received": "undefined",                                                                                              │
│      "path": [                                                                                                             │
│        "application_url"                                                                                                   │
│      ],                                                                                                                    │
│      "message": "Required"                                                                                                 │
│    },                                                                                                                      │
│    {                                                                                                                       │
│      "code": "invalid_type",                                                                                               │
│      "expected": "boolean",                                                                                                │
│      "received": "undefined",                                                                                              │
│      "path": [                                                                                                             │
│        "embedded"                                                                                                          │
│      ],                                                                                                                    │
│      "message": "Required"                                                                                                 │
│    }                                                                                                                       │
│  ]                                                                                                                         │
│                                                                                                                            │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

2024-03-29T14:41:33.803Z: Obtaining the dependency manager in directory /Users/sshaw/code/ruby/ss/the-app...
2024-03-29T14:41:33.805Z:
Running system process:
  · Command: ruby -v
  · Working directory: /Users/sshaw/code/ruby/ss/the-app

2024-03-29T14:41:34.370Z: Request to https://monorail-edge.shopifysvc.com/v1/produce completed in 104 ms
With response headers:
 - x-request-id: c09d921a-cf70-46f9-b9aa-937785aa4d43

2024-03-29T14:41:34.371Z: Analytics event sent: {
  "command": "app dev",
  "time_start": 1711723282866,
  "time_end": 1711723293798,
  "total_time": 10932,
  "success": false,
  "cli_version": "3.56.3",
  "ruby_version": "3.1.2",
  "node_version": "18.20.0",
  "is_employee": false,
  "uname": "darwin arm64",
  "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\"]",
  "env_shell": "bash",
  "env_device_id": "19a1673c9b7f60ad1fa3d3ec3ec4428f8f690b7e",
  "env_cloud": "localhost",
  "env_package_manager": "npm",
  "cmd_app_warning_api_key_deprecation_displayed": false,
  "cmd_app_all_configs_any": true,
  "cmd_app_all_configs_clients": "{\"XXX.toml\":\"eb44282be8c7f9860876ce853bfae34d\",\"shopify.app.toml\":\"fa76b0d3154a5229584f11bec4202bc9\"}",
  "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": true,
  "app_extensions_breakdown": "{\"ui_extension\":1}",
  "app_extensions_count": 1,
  "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": true,
  "app_extensions_ui_count": 1,
  "app_name_hash": "525221f0d6bbd413cc6857337cb425a1dff6d406",
  "app_path_hash": "d66cdcc08b994b32bc7179e6469636bb923059a1",
  "app_scopes": "[\"read_products\"]",
  "app_web_backend_any": true,
  "app_web_backend_count": 1,
  "app_web_custom_layout": true,
  "app_web_framework": "remix",
  "app_web_frontend_any": true,
  "app_web_frontend_count": 1,
  "env_package_manager_workspaces": true,
  "partner_id": 343588,
  "api_key": "eb44282be8c7f9860876ce853bfae34d",
  "cmd_all_timing_network_ms": 2661,
  "cmd_all_timing_prompts_ms": 7950,
  "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": "d66cdcc08b994b32bc7179e6469636bb923059a1",
  "cmd_app_dependency_installation_skipped": false,
  "cmd_app_reset_used": true,
  "cmd_all_timing_active_ms": 319,
  "cmd_all_exit": "expected_error",
  "args": "--reset --verbose",
  "error_message": "Fix a schema error in XXX.toml:\n[\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"string\",\n    \"received\": \"undefined\",\n    \"path\": [\n      \"name\"\n    ],\n    \"message\": \"Required\"\n  },\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"object\",\n    \"received\": \"undefined\",\n    \"path\": [\n      \"auth\"\n    ],\n    \"message\": \"Required\"\n  },\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"object\",\n    \"received\": \"undefined\",\n    \"path\": [\n      \"webhooks\"\n    ],\n    \"message\": \"Required\"\n  },\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"string\",\n    \"received\": \"undefined\",\n    \"path\": [\n      \"application_url\"\n    ],\n    \"message\": \"Required\"\n  },\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"boolean\",\n    \"received\": \"undefined\",\n    \"path\": [\n      \"embedded\"\n    ],\n    \"message\": \"Required\"\n  }\n]",
  "app_name": "bar-scanner",
  "env_plugin_installed_all": "[\"@shopify/app\",\"@shopify/cli\",\"@shopify/plugin-cloudflare\",\"@shopify/plugin-did-you-mean\"]",
  "metadata": "{\"extraPublic\":{},\"extraSensitive\":{}}"
}
2024-03-29T14:41:34.379Z: Reporting handled error to Bugsnag: Fix a schema error in XXX.toml:
[
  {
    "code": "invalid_type",
    "expected": "string",
    "received": "undefined",
    "path": [
      "name"
    ],
    "message": "Required"
  },
  {
    "code": "invalid_type",
    "expected": "object",
    "received": "undefined",
    "path": [
      "auth"
    ],
    "message": "Required"
  },
  {
    "code": "invalid_type",
    "expected": "object",
    "received": "undefined",
    "path": [
      "webhooks"
    ],
    "message": "Required"
  },
  {
    "code": "invalid_type",
    "expected": "string",
    "received": "undefined",
    "path": [
      "application_url"
    ],
    "message": "Required"
  },
  {
    "code": "invalid_type",
    "expected": "boolean",
    "received": "undefined",
    "path": [
      "embedded"
    ],
    "message": "Required"
  }
]

Reproduction steps

  1. npm run dev -- --reset
  2. Log in
  3. Select existing app
  4. FAIL!

Operating System

macOS

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

3.56.3

Shell

No response

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

No response

What language and version are you using in your application?

No response

amcaplan commented 7 months ago

3.58.1 is out, and should solve this problem! I'm closing this issue, as I believe it's solved, but please do let us know if you continue to experience any trouble.