Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Message "The Cart includes virtual product(s) only, so a shipping address is not used." has category "internal" #401

@TomashKhamlai

Description

@TomashKhamlai

Preconditions (*)

  1. Registered Customer
  2. Virtual Product
  3. Developer mode

Steps to reproduce (*)

  1. Log in as Registered Customer
  2. Add Product to Cart
  3. Get Customer token
  4. Get ADDRESS_ID by hovering 'Change Billing Address' or 'Change Shipping Address'
  5. Get CART_ID by createEmptyCart mutation (It returns active CART_ID)
  6. In GraphQL Client add authorization header and execute
mutation {
  setShippingAddressesOnCart(
    input: {
      cart_id: "4P41sMzbNyca3pwMcO4Q5j7m0RNmmvDW"
      shipping_addresses: {
        customer_address_id: 3
        cart_items: {
          cart_item_id: 8
          quantity: 1
        }
      }
    }
  ) {
    cart {
      cart_id
      shipping_addresses {
        address_type
        available_shipping_methods {
          carrier_code
          carrier_title
          method_code
          method_title
          price_excl_tax
          price_incl_tax
        }
        selected_shipping_method {
          amount
          amount
        }
      }
    }
  }
}

Expected result (*)

  1. "category": "graphql-input"

Actual result (*)

1."category": "internal"

{
  "errors": [
    {
      "debugMessage": "The Cart includes virtual product(s) only, so a shipping address is not used.",
      "message": "Internal server error",
      "category": "internal",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "setShippingAddressesOnCart"
      ]
    }
  ],
  "data": {
    "setShippingAddressesOnCart": null
  }
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions