saleor-dashboard: Unable to save Store Information due to GraphQLError

What I’m trying to achieve

I’m trying to deploy (and run locally) a production-ready saleor-dashboard.

Steps to reproduce the problem

  1. Setup tag 3.3.1 of saleor-dashboard and tag 3.3.2 of saleor
  2. Setup nginx serving results of npm run build
  3. Navigate to /site-settings -> fill in Store Information -> hit Save
  4. See error in browser console (no error popup or validation errors are visible).

What I expected to happen

Store address is saved successfully

Screenshots

2022-05-11-162328_1365x1288_scrot

Http request and response from inspector

Request:

{
  "operationName":"ShopSettingsUpdate",
  "variables": {
  "addressInput":{
    "city":"Testville",
    "companyName":"Company  B.V.",
    "country":"NL",
    "countryArea":"",
    "phone":"",
    "postalCode":"1000AA",
    "streetAddress1":"Teststreet 33",
    "streetAddress2":""
  },
  "shopSettingsInput":{
    "description":"",
    "reserveStockDurationAnonymousUser":null,
    "reserveStockDurationAuthenticatedUser":null
  },
  "isCloudInstance":false
},
"query":"mutation ShopSettingsUpdate(
  $shopSettingsInput: ShopSettingsInput!,
  $addressInput: AddressInput,
  $isCloudInstance: Boolean!) {
  shopSettingsUpdate(input: $shopSettingsInput) {
    errors {
      ...ShopError
      __typename
    }
    shop {
      ...Shop
      __typename
    }
    __typename
  }
  shopAddressUpdate(input: $addressInput) {
    errors {
      ...ShopError
      __typename
    }
    shop {
      companyAddress {
        ...Address
        __typename
      }
      __typename
    }
    __typename
  }
}

fragment ShopError on ShopError {
  code
  field
  message
  __typename
}

fragment Shop on Shop {
  companyAddress {
    ...Address
    __typename
  }
  countries {
    code
    country
    __typename
  }
  customerSetPasswordUrl
  defaultMailSenderAddress
  defaultMailSenderName
  description
  domain {
    host
    __typename
  }
  name
  reserveStockDurationAnonymousUser
  reserveStockDurationAuthenticatedUser
  limitQuantityPerCheckout
  __typename
}

fragment Address on Address {
  city
  cityArea
  companyName
  country {
    __typename
    code
    country
  }
  countryArea
  firstName
  id
  lastName
  phone
  postalCode
  streetAddress1
  streetAddress2
  __typename
}"}

Response:

{"errors": [{"message": "Variable \"$isCloudInstance\" is never used in operation \"ShopSettingsUpdate\".", "locations": [{"line": 1, "column": 98}], "extensions": {"exception": {"code": "GraphQLError"}}}], "extensions": {"cost": {"requestedQueryCost": 0, "maximumAvailable": 50000}}}

Console output

// insert console output here 
Variable "$isCloudInstance" is never used in operation "ShopSettingsUpdate".

System information

Saleor version:

  • dev (current main)
  • 3.3.1
  • 3.0
  • 2.11
  • 2.10

Operating system:

  • Windows
  • Linux
  • MacOS
  • Other

Browser:

  • Firefox
  • Safari
  • Chrome
  • Edge
  • Other

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 2
  • Comments: 17 (10 by maintainers)

Most upvoted comments

@eCzerniak @umutkacar creating PR in a moment

Thx for finding an issue, I can confirm that this issue exists. It is reported in Clickup, We will fix that soon!