Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: problem with deploy of new app version #4165

Closed
2 tasks done
GeorgiKeranov opened this issue Jul 5, 2024 · 6 comments
Closed
2 tasks done

[Bug]: problem with deploy of new app version #4165

GeorgiKeranov opened this issue Jul 5, 2024 · 6 comments
Labels
Type: Bug Something isn't working

Comments

@GeorgiKeranov
Copy link

GeorgiKeranov commented Jul 5, 2024

Please confirm that you have:

  • Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
  • Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?

App

Expected behavior

It should delpoy the new version of our application in shopify

Actual behavior

It is not delpoying it and constantly gives the same error, even if I remove the created shopify.app.relevaai.toml

Verbose output

> shopify app deploy --reset --verbose

2024-07-05T08:00:59.654Z: Running command app deploy
2024-07-05T08:00:59.666Z: Reading cached app information for directory /Users/georgikeranov/Desktop/magellan/connector-shopify...
╭─ warning ────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                          │
│  Couldn't find shopify.app.relevaai.toml                                                                 │
│                                                                                                          │
│  If you have multiple config files, select a new one. If you only have one config file, it's been        │
│  selected as your default.                                                                               │
│                                                                                                          │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯

2024-07-05T08:00:59.690Z: Reading cached app information for directory /Users/georgikeranov/Desktop/magellan/connector-shopify...
2024-07-05T08:00:59.690Z: Reading the content of file at shopify.app.toml...
2024-07-05T08:00:59.693Z: Reading the content of file at shopify.app.toml...
2024-07-05T08:00:59.769Z: Storing app information for directory /Users/georgikeranov/Desktop/magellan/connector-shopify:{
  "directory": "/Users/georgikeranov/Desktop/magellan/connector-shopify",
  "configFile": "shopify.app.toml"
}
2024-07-05T08:00:59.775Z: Reading the content of file at shopify.app.toml...
2024-07-05T08:00:59.776Z: Reading the content of file at shopify.app.toml...
2024-07-05T08:00:59.836Z: Reading the .env file at .env
2024-07-05T08:00:59.836Z: Reading the content of file at .env...
2024-07-05T08:00:59.844Z: Reading the content of file at extensions/releva-ai/shopify.theme.extension.toml...
2024-07-05T08:00:59.844Z: Reading the content of file at extensions/tracking-pixel/shopify.extension.toml...
2024-07-05T08:00:59.845Z: Reading the content of file at package.json...
2024-07-05T08:00:59.845Z: Reading the content of file at package.json...
2024-07-05T08:00:59.848Z: 
Running system process:
  · Command: npm prefix
  · Working directory: /Users/georgikeranov/Desktop/magellan/connector-shopify

2024-07-05T08:01:00.021Z: Obtaining the dependency manager in directory /Users/georgikeranov/Desktop/magellan/connector-shopify...
2024-07-05T08:01:00.209Z: Reading the content of file at shopify.web.toml...
2024-07-05T08:01:00.211Z: Reading the content of file at package.json...
2024-07-05T08:01:00.214Z: Reading cached app information for directory /Users/georgikeranov/Desktop/magellan/connector-shopify...
2024-07-05T08:01:00.215Z: Reading the content of file at shopify.app.toml...
2024-07-05T08:01:00.215Z: Reading the content of file at shopify.app.toml...
2024-07-05T08:01:00.274Z: Reading the .env file at .env
2024-07-05T08:01:00.274Z: Reading the content of file at .env...
2024-07-05T08:01:00.276Z: Reading the content of file at extensions/tracking-pixel/shopify.extension.toml...
2024-07-05T08:01:00.276Z: Reading the content of file at extensions/releva-ai/shopify.theme.extension.toml...
2024-07-05T08:01:00.277Z: Reading the content of file at package.json...
2024-07-05T08:01:00.278Z: Reading the content of file at package.json...
2024-07-05T08:01:00.279Z: 
Running system process:
  · Command: npm prefix
  · Working directory: /Users/georgikeranov/Desktop/magellan/connector-shopify

2024-07-05T08:01:00.463Z: Obtaining the dependency manager in directory /Users/georgikeranov/Desktop/magellan/connector-shopify...
2024-07-05T08:01:00.470Z: Reading the content of file at shopify.web.toml...
2024-07-05T08:01:00.471Z: Reading the content of file at package.json...
2024-07-05T08:01:00.472Z: Ensuring that the user is authenticated with the Partners API with the following scopes:
[]

2024-07-05T08:01:00.472Z: Getting session store...
2024-07-05T08:01:00.473Z: 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-07-05T08:01:00.473Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-07-05T08:01:00.473Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.63.2
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-07-05T08:01:00.710Z: Request to https://accounts.shopify.com/oauth/introspection completed in 228 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/"18bc73c1d8480b4b38b08c190d53c197"
 - x-request-id: 8f63ea92-c463-4223-8e5e-3bdb8325604f-1720166460
    
2024-07-05T08:01:00.711Z: The identity token is valid: true
2024-07-05T08:01:00.712Z: 
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false
  
2024-07-05T08:01:00.712Z: Verifying that the user has a Partner organization
2024-07-05T08:01:00.716Z: Sending "Partners" GraphQL request:
  {
    organizations(first: 1) {
      nodes {
        id
      }
    }
  }

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

2024-07-05T08:01:01.019Z: Request to https://partners.shopify.com/api/cli/graphql completed in 280 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"37efee6e84fa440e5c1f783636cccbde"
 - x-request-id: 786f26a1-065c-4be3-a3c8-ba32996df302-1720166460
    
2024-07-05T08:01:01.026Z: Sending "Partners" GraphQL request:
  query currentAccountInfo {
    currentAccountInfo {
      __typename
      ... on ServiceAccount {
        orgName
      }
      ... on UserAccount {
        email
      }
    }
  }

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

2024-07-05T08:01:01.305Z: Request to https://partners.shopify.com/api/cli/graphql completed in 269 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"d07b300add6839c8c38b1a83ec300491"
 - x-request-id: 6de48ee0-988b-470c-8925-fc57c0d3e5e3-1720166461
    
2024-07-05T08:01:01.312Z: Sending "Partners" GraphQL request:
  query AllOrgs {
  organizations(first: 200) {
    nodes {
      id
      businessName
      website
      __typename
    }
    __typename
  }
}

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

2024-07-05T08:01:01.587Z: Request to https://partners.shopify.com/api/cli/graphql completed in 275 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"84761783ffc96f511636e3501c31f52f"
 - x-request-id: af4b383a-2a84-43aa-ae97-cf8e8f46f6e2-1720166461
    
2024-07-05T08:01:01.589Z: Ensuring that the user is authenticated with the Partners API with the following scopes:
[]

2024-07-05T08:01:01.589Z: Getting session store...
2024-07-05T08:01:01.590Z: 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-07-05T08:01:01.590Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-07-05T08:01:01.590Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.63.2
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-07-05T08:01:01.834Z: Request to https://accounts.shopify.com/oauth/introspection completed in 243 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/"18bc73c1d8480b4b38b08c190d53c197"
 - x-request-id: 16610c6d-6d66-41eb-87bc-80ae4c08a6f5-1720166461
    
2024-07-05T08:01:01.835Z: The identity token is valid: true
2024-07-05T08:01:01.835Z: 
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false
  
2024-07-05T08:01:01.835Z: Verifying that the user has a Partner organization
2024-07-05T08:01:01.839Z: Sending "Partners" GraphQL request:
  {
    organizations(first: 1) {
      nodes {
        id
      }
    }
  }

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

2024-07-05T08:01:02.104Z: Request to https://partners.shopify.com/api/cli/graphql completed in 263 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"37efee6e84fa440e5c1f783636cccbde"
 - x-request-id: f9dc237c-83fa-4e7f-9238-459854df2004-1720166461
    
2024-07-05T08:01:02.109Z: Sending "Partners" GraphQL request:
  query currentAccountInfo {
    currentAccountInfo {
      __typename
      ... on ServiceAccount {
        orgName
      }
      ... on UserAccount {
        email
      }
    }
  }

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

2024-07-05T08:01:02.379Z: Request to https://partners.shopify.com/api/cli/graphql completed in 268 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"d07b300add6839c8c38b1a83ec300491"
 - x-request-id: 4fae70df-1d7b-4c97-a147-3e87d59134a1-1720166462
    
2024-07-05T08:01:02.389Z: 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": "1908238"
}

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

2024-07-05T08:01:02.675Z: Request to https://partners.shopify.com/api/cli/graphql completed in 284 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"54775a4635ea18490fa2a22a9f4611f5"
 - x-request-id: e8c3938d-e7cc-44f1-befd-b98ebf9ebd0d-1720166462
    

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-07-05T08:01:11.159Z: Reading the content of file at shopify.app.toml...
?  Which existing app is this for?
✔  Releva.ai

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

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

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

2024-07-05T08:01:12.513Z: Request to https://partners.shopify.com/api/cli/graphql completed in 561 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"cdc4b51649ad217a67002574de619624"
 - x-request-id: 6c00ec7e-9520-4548-ad7c-e367d297ad0b-1720166472
    
2024-07-05T08:01:12.518Z: Sending "Partners" GraphQL request:
  query fetchSpecifications($api_key: String!) {
    extensionSpecifications(apiKey: $api_key) {
      name
      externalName
      externalIdentifier
      identifier
      gated
      experience
      options {
        managementExperience
        registrationLimit
      }
      features {
        argo {
          surface
        }
      }
      validationSchema {
        jsonSchema
      }
    }
  }

With variables:
{
  "api_key": "5cb5d36559789f53ca88a2f6f453740d"
}

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

2024-07-05T08:01:12.986Z: Request to https://partners.shopify.com/api/cli/graphql completed in 466 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"57288a82082c55ceb62a4fec2eedc57a"
 - x-request-id: d393b7ac-47fb-4825-8d55-455d21888800-1720166472
    
2024-07-05T08:01:12.988Z: The following extension specifications were defined locally but not found in the remote specifications: data, payments_extension, tax_calculation
2024-07-05T08:01:12.988Z: The following extension specifications were found in the remote specifications but not defined locally: cloud_terminal_management, customer_accounts_ui_extension
2024-07-05T08:01:12.990Z: Reading cached app information for directory /Users/georgikeranov/Desktop/magellan/connector-shopify...
2024-07-05T08:01:12.990Z: Reading the content of file at shopify.app.toml...
2024-07-05T08:01:12.991Z: Reading the content of file at shopify.app.toml...
2024-07-05T08:01:13.055Z: Reading the .env file at .env
2024-07-05T08:01:13.055Z: Reading the content of file at .env...
2024-07-05T08:01:13.059Z: Reading the content of file at extensions/releva-ai/shopify.theme.extension.toml...
2024-07-05T08:01:13.059Z: Reading the content of file at extensions/tracking-pixel/shopify.extension.toml...
2024-07-05T08:01:13.061Z: Reading the content of file at package.json...
2024-07-05T08:01:13.062Z: Reading the content of file at package.json...
2024-07-05T08:01:13.064Z: 
Running system process:
  · Command: npm prefix
  · Working directory: /Users/georgikeranov/Desktop/magellan/connector-shopify

2024-07-05T08:01:13.302Z: Obtaining the dependency manager in directory /Users/georgikeranov/Desktop/magellan/connector-shopify...
2024-07-05T08:01:13.312Z: Reading the content of file at shopify.web.toml...
2024-07-05T08:01:13.313Z: Reading the content of file at package.json...
2024-07-05T08:01:13.314Z: Reading the content of file at shopify.app.toml...
?  Configuration file name:
✔  Releva.ai

2024-07-05T08:01:17.733Z: 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.63.2
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-07-05T08:01:18.248Z: Request to https://partners.shopify.com/api/cli/graphql completed in 514 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"fbb4a1460f9843cbf8e2cefc07e853d9"
 - x-request-id: c2aa7d1b-32fb-4a83-a683-5d14898b4299-1720166477
    
2024-07-05T08:01:18.251Z: Writing app configuration to /Users/georgikeranov/Desktop/magellan/connector-shopify/shopify.app.relevaai.toml
2024-07-05T08:01:18.252Z: File-writing some content to file at shopify.app.relevaai.toml...
2024-07-05T08:01:18.254Z: Storing app information for directory /Users/georgikeranov/Desktop/magellan/connector-shopify:{
  "directory": "/Users/georgikeranov/Desktop/magellan/connector-shopify",
  "configFile": "shopify.app.relevaai.toml"
}
╭─ success ────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                          │
│  shopify.app.relevaai.toml is now linked to "Releva.ai" on Shopify                                       │
│                                                                                                          │
│  Using shopify.app.relevaai.toml as your default config.                                                 │
│                                                                                                          │
│  Next steps                                                                                              │
│    • Make updates to shopify.app.relevaai.toml in your local project                                     │
│    • To upload your config, run `npm run shopify app deploy`                                             │
│                                                                                                          │
│  Reference                                                                                               │
│    • App configuration                                                                                   │
│                                                                                                          │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯

2024-07-05T08:01:18.266Z: Ensuring that the user is authenticated with the Partners API with the following scopes:
[]

2024-07-05T08:01:18.266Z: Getting session store...
2024-07-05T08:01:18.267Z: 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-07-05T08:01:18.267Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-07-05T08:01:18.267Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.63.2
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-07-05T08:01:18.518Z: Request to https://accounts.shopify.com/oauth/introspection completed in 251 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/"18bc73c1d8480b4b38b08c190d53c197"
 - x-request-id: 7b2f6ab6-8f60-45c7-ad7f-2181c251faff-1720166478
    
2024-07-05T08:01:18.519Z: The identity token is valid: true
2024-07-05T08:01:18.520Z: 
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false
  
2024-07-05T08:01:18.520Z: Verifying that the user has a Partner organization
2024-07-05T08:01:18.526Z: Sending "Partners" GraphQL request:
  {
    organizations(first: 1) {
      nodes {
        id
      }
    }
  }

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

2024-07-05T08:01:18.773Z: Request to https://partners.shopify.com/api/cli/graphql completed in 246 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"37efee6e84fa440e5c1f783636cccbde"
 - x-request-id: c3da6474-ef3e-4d17-b433-06a1deefd065-1720166478
    
2024-07-05T08:01:18.778Z: Sending "Partners" GraphQL request:
  query currentAccountInfo {
    currentAccountInfo {
      __typename
      ... on ServiceAccount {
        orgName
      }
      ... on UserAccount {
        email
      }
    }
  }

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

2024-07-05T08:01:19.090Z: Request to https://partners.shopify.com/api/cli/graphql completed in 311 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"d07b300add6839c8c38b1a83ec300491"
 - x-request-id: 44183226-e523-4d4c-983c-16f13f617fef-1720166478
    
2024-07-05T08:01:19.095Z: Sending "Partners" GraphQL request:
  query FindApp($apiKey: String!) {
    app(apiKey: $apiKey) {
      id
      title
      apiKey
      organizationId
      apiSecretKeys {
        secret
      }
      appType
      grantedScopes
      applicationUrl
      redirectUrlWhitelist
      requestedAccessScopes
      webhookApiVersion
      embedded
      posEmbedded
      preferencesUrl
      gdprWebhooks {
        customerDeletionUrl
        customerDataRequestUrl
        shopDeletionUrl
      }
      appProxy {
        subPath
        subPathPrefix
        url
      }
      developmentStorePreviewEnabled
      disabledFlags
    }
  }

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

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

2024-07-05T08:01:19.679Z: Request to https://partners.shopify.com/api/cli/graphql completed in 580 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"cdc4b51649ad217a67002574de619624"
 - x-request-id: 94d3bb8c-3599-4449-9967-79cf36204d47-1720166479
    
2024-07-05T08:01:19.684Z: Sending "Partners" GraphQL request:
  query fetchSpecifications($api_key: String!) {
    extensionSpecifications(apiKey: $api_key) {
      name
      externalName
      externalIdentifier
      identifier
      gated
      experience
      options {
        managementExperience
        registrationLimit
      }
      features {
        argo {
          surface
        }
      }
      validationSchema {
        jsonSchema
      }
    }
  }

With variables:
{
  "api_key": "5cb5d36559789f53ca88a2f6f453740d"
}

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

2024-07-05T08:01:20.136Z: Request to https://partners.shopify.com/api/cli/graphql completed in 451 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"57288a82082c55ceb62a4fec2eedc57a"
 - x-request-id: 860006f7-c9aa-4e9d-8a76-90fdf74268da-1720166479
    
2024-07-05T08:01:20.137Z: The following extension specifications were defined locally but not found in the remote specifications: data, payments_extension, tax_calculation
2024-07-05T08:01:20.137Z: The following extension specifications were found in the remote specifications but not defined locally: cloud_terminal_management, customer_accounts_ui_extension
2024-07-05T08:01:20.139Z: Reading cached app information for directory /Users/georgikeranov/Desktop/magellan/connector-shopify...
2024-07-05T08:01:20.139Z: Reading the content of file at shopify.app.relevaai.toml...
2024-07-05T08:01:20.139Z: Reading the content of file at shopify.app.relevaai.toml...
╭─ error ──────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                          │
│                                                                                                          │
│  Validation errors in shopify.app.relevaai.toml:                                                         │
│                                                                                                          │
│  • [webhooks.subscriptions.0.uri]: URI isn't correct URI format of https://,                             │
│  pubsub://{project-id}:{topic-id} or Eventbridge ARN                                                     │
│                                                                                                          │
│                                                                                                          │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯

2024-07-05T08:01:20.149Z: 
Running system process:
  · Command: npm prefix
  · Working directory: /Users/georgikeranov/Desktop/magellan/connector-shopify

2024-07-05T08:01:20.403Z: Obtaining the dependency manager in directory /Users/georgikeranov/Desktop/magellan/connector-shopify...
2024-07-05T08:01:20.405Z: 
Running system process:
  · Command: ruby -v
  · Working directory: /Users/georgikeranov/Desktop/magellan/connector-shopify

2024-07-05T08:01:20.666Z: Request to https://monorail-edge.shopifysvc.com/v1/produce completed in 198 ms
With response headers:
 - x-request-id: 1b353634-92b5-4a2a-a109-77bdcc131be5
    
2024-07-05T08:01:20.666Z: Analytics event sent: {
  "command": "app deploy",
  "time_start": 1720166459655,
  "time_end": 1720166480146,
  "total_time": 20491,
  "success": false,
  "cli_version": "3.63.2",
  "ruby_version": "3.1.2",
  "node_version": "21.6.1",
  "is_employee": false,
  "uname": "darwin arm64",
  "env_ci": false,
  "env_plugin_installed_any_custom": false,
  "env_plugin_installed_shopify": "[\"@shopify/cli\"]",
  "env_shell": "zsh",
  "env_device_id": "dc19bc802d504fcd6255f8290675e9615372bf79",
  "env_cloud": "localhost",
  "env_package_manager": "npm",
  "env_is_global": false,
  "cmd_app_warning_api_key_deprecation_displayed": false,
  "cmd_deploy_flag_message_used": false,
  "cmd_deploy_flag_version_used": false,
  "cmd_deploy_flag_source_url_used": false,
  "cmd_app_all_configs_any": true,
  "cmd_app_all_configs_clients": "{\"shopify.app.toml\":\"47b31a6ece54da2572436f4aa423d0e2\"}",
  "cmd_app_linked_config_used": true,
  "cmd_app_linked_config_name": "shopify.app.toml",
  "cmd_app_linked_config_git_tracked": true,
  "cmd_app_linked_config_source": "cached",
  "cmd_app_linked_config_uses_cli_managed_urls": true,
  "partner_id": 1908238,
  "api_key": "****",
  "project_type": "frontend",
  "app_extensions_any": true,
  "app_extensions_breakdown": "{\"theme\":1,\"web_pixel_extension\":1}",
  "app_extensions_count": 2,
  "app_extensions_custom_layout": false,
  "app_extensions_function_any": false,
  "app_extensions_function_count": 0,
  "app_extensions_theme_any": true,
  "app_extensions_theme_count": 1,
  "app_extensions_ui_any": true,
  "app_extensions_ui_count": 1,
  "app_name_hash": "ca7e3afb626ea2a16e700fcbbb51cba12568067e",
  "app_path_hash": "284bd4eed4d4c4c76f25be24a0726eca775214e4",
  "app_scopes": "[]",
  "app_web_backend_any": false,
  "app_web_backend_count": 0,
  "app_web_custom_layout": true,
  "app_web_frontend_any": true,
  "app_web_frontend_count": 1,
  "env_package_manager_workspaces": false,
  "cmd_all_timing_network_ms": 5542,
  "cmd_all_timing_prompts_ms": 13671,
  "cmd_all_launcher": "npm",
  "cmd_all_topic": "app",
  "cmd_all_plugin": "@shopify/cli",
  "cmd_all_force": false,
  "cmd_all_verbose": true,
  "cmd_all_path_override": true,
  "cmd_all_path_override_hash": "284bd4eed4d4c4c76f25be24a0726eca775214e4",
  "cmd_app_reset_used": true,
  "cmd_all_timing_active_ms": 1277,
  "cmd_all_exit": "expected_error",
  "args": "--reset --verbose",
  "error_message": "\n\u001b[1m\u001b[91mValidation errors\u001b[39m\u001b[22m in shopify.app.relevaai.toml:\n\n• [webhooks.subscriptions.0.uri]: URI isn't correct URI format of https://, pubsub://{project-id}:{topic-id} or Eventbridge ARN\n",
  "app_name": "magellan-plugin-shopify",
  "env_plugin_installed_all": "[\"@shopify/cli\"]",
  "metadata": "{\"extraPublic\":{},\"extraSensitive\":{}}"
}
2024-07-05T08:01:20.688Z: Reporting handled error to Bugsnag: 
Validation errors in shopify.app.relevaai.toml:

• [webhooks.subscriptions.0.uri]: URI isn't correct URI format of https://, pubsub://{project-id}:{topic-id} or Eventbridge ARN

2024-07-05T08:01:21.455Z: 
Running system process:
  · Command: npm prefix
  · Working directory: /Users/georgikeranov/Desktop/magellan/connector-shopify

2024-07-05T08:01:21.630Z: Obtaining the dependency manager in directory /Users/georgikeranov/Desktop/magellan/connector-shopify...

Reproduction steps

  1. Remove the created shopify.app.relevaai.toml
  2. Run npm run deploy -- --reset.
  3. Choose these options:
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?
✔  Releva.ai

?  Configuration file name:
✔  Releva.ai
  1. I have success and then error message which I don't know how to resolve:
╭─ success ────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                          │
│  shopify.app.relevaai.toml is now linked to "Releva.ai" on Shopify                                       │
│                                                                                                          │
│  Using shopify.app.relevaai.toml as your default config.                                                 │
│                                                                                                          │
│  Next steps                                                                                              │
│    • Make updates to shopify.app.relevaai.toml in your local project                                     │
│    • To upload your config, run `npm run shopify app deploy`                                             │
│                                                                                                          │
│  Reference                                                                                               │
│    • App configuration                                                                                   │
│                                                                                                          │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯

╭─ error ──────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                          │
│                                                                                                          │
│  Validation errors in shopify.app.relevaai.toml:                                                         │
│                                                                                                          │
│  • [webhooks.subscriptions.0.uri]: URI isn't correct URI format of https://,                             │
│  pubsub://{project-id}:{topic-id} or Eventbridge ARN                                                     │
│                                                                                                          │
│                                                                                                          │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯
  1. I have tried to edit the shopify.app.relevaai.toml but it gets overwritten everytime I run shopify app deploy --reset

This is the shopify.app.relevaai.toml that's get generated:

# Learn more about configuring your app at https://shopify.dev/docs/apps/tools/cli/configuration

client_id = "5cb5d36559789f53ca88a2f6f453740d"
name = "Releva.ai"
handle = "releva-ai-1"
application_url = "https://shop.releva.ai/"
embedded = false

[build]
include_config_on_deploy = true

[auth]
redirect_urls = [
  "https://shop.releva.ai/auth/callback",
  "https://shop.releva.ai/auth/shopify/callback",
  "https://shop.releva.ai/api/auth/callback"
]

[webhooks]
api_version = "2023-10"

  [[webhooks.subscriptions]]
  uri = "webhooks/customers/data_request"
  compliance_topics = [ "customers/data_request" ]

  [[webhooks.subscriptions]]
  uri = "webhooks/customers/redact"
  compliance_topics = [ "customers/redact" ]

  [[webhooks.subscriptions]]
  uri = "webhooks/shops/redact"
  compliance_topics = [ "shop/redact" ]

[pos]
embedded = false

[app_preferences]
url = "https://releva.ai/admin"

Operating System

Ubuntu, Mac OS

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

3.58.2

Shell

bash, zsh

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

v21.6.1

What language and version are you using in your application?

Ruby 3.1.2

@GeorgiKeranov GeorgiKeranov added the Type: Bug Something isn't working label Jul 5, 2024
@GeorgiKeranov GeorgiKeranov changed the title [Bug]: problem with deploy of new version [Bug]: problem with deploy off new app version Jul 5, 2024
@GeorgiKeranov GeorgiKeranov changed the title [Bug]: problem with deploy off new app version [Bug]: problem with deploy of new app version Jul 5, 2024
@GeorgiKeranov
Copy link
Author

GeorgiKeranov commented Jul 5, 2024

I was able to resolve the issue in 3 steps but I still think that it is a bug:

  1. When I didn't delete the generated file from the cli: shopify.app.relevaai.toml after the first error.
  2. Edit the shopify.app.relevaai.toml, this part:
[webhooks]
api_version = "2023-10"

  [[webhooks.subscriptions]]
  uri = "webhooks/customers/data_request"
  compliance_topics = [ "customers/data_request" ]

  [[webhooks.subscriptions]]
  uri = "webhooks/customers/redact"
  compliance_topics = [ "customers/redact" ]

  [[webhooks.subscriptions]]
  uri = "webhooks/shops/redact"
  compliance_topics = [ "shop/redact" ]

Like that:

[webhooks]
api_version = "2023-10"

  [[webhooks.subscriptions]]
  uri = "https://shop.releva.ai/webhooks/customers/data_request"
  compliance_topics = [ "customers/data_request" ]

  [[webhooks.subscriptions]]
  uri = "https://shop.releva.ai/webhooks/customers/redact"
  compliance_topics = [ "customers/redact" ]

  [[webhooks.subscriptions]]
  uri = "https://shop.releva.ai/webhooks/shops/redact"
  compliance_topics = [ "shop/redact" ]
  1. Run the shopify app delpoy instead of shopify app deploy --reset.
  2. But after the deploy the file is changed again, how can I fix the URI for webhooks permanently?

The custom webhooks are correctly set up in the shopify admin panel:
Screenshot 2024-07-05 at 11 40 07

@GeorgiKeranov
Copy link
Author

GeorgiKeranov commented Jul 5, 2024

While this bug is fixed if you don't want your file to be changed on each deployment I suggest adding this to your shopify.app.[app-name].toml:

  1. In each webhook add your full URL:
[webhooks]
api_version = "2024-07"

  [[webhooks.subscriptions]]
-  uri = "webhooks/customers/data_request"
+  uri = "https://shop.releva.ai/webhooks/customers/data_request"
  compliance_topics = [ "customers/data_request" ]

  [[webhooks.subscriptions]]
-  uri = "webhooks/customers/redact"
+  uri = "https://shop.releva.ai/webhooks/customers/redact"
  compliance_topics = [ "customers/redact" ]
  1. Then add to the file this:
[build]
include_config_on_deploy = true
  1. Run the deploy with this command shopify app delpoy

@gonzaloriestra
Copy link
Contributor

Hi! Relative URLs must start with a slash, like uri = "/webhooks/customers/data_request". Could you try that?

I'll improve that error message to mention that.

@GeorgiKeranov
Copy link
Author

Hi! Relative URLs must start with a slash, like uri = "/webhooks/customers/data_request". Could you try that?

I'll improve that error message to mention that.

I think the functionality that creates the file shopify.app.[app-name].toml in the first place needs to produce the uri in the correct format, is that right @gonzaloriestra?

Because if you try to run the command and you do not have this file in your directory it is produced without the slash.

@gonzaloriestra
Copy link
Contributor

Hmm it should add the slash, I'm not able to reproduce...

  • Are you using the latest CLI version?
  • What URLs do you have in your admin panel? The ones shown in the screenshot here?
  • And your application_url is https://shop.releva.ai?

@gonzaloriestra
Copy link
Contributor

There were a couple of fixes related to relative webhooks, so I think this issue should be fixed. Please let us know if you still see something wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants