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

"The requested qty is not available" should be received instead of Internal server error #350

Closed
TomashKhamlai opened this issue Feb 6, 2019 · 1 comment
Assignees
Labels
bug Something isn't working Component: QuoteGraphQl Contribution Day Tickets is good for start on Contribution Day

Comments

@TomashKhamlai
Copy link
Contributor

TomashKhamlai commented Feb 6, 2019

Preconditions (*)

  1. Add configurable product to Cart #224 or Add virtual products to cart #320 is merged or [Cart Operations] Add configurable product to Cart #142 is fixed
  2. Default mode or
php bin/magento deploy:mode:set default
rm -rf generated/* var/*

Steps to reproduce (*)

  1. Create Configurable Product with
    Name & SKU: conf
    Weight: 1
    Price: 1
    Variations:
  • sku: conf-white, qty: 12, price: 10
  • sku: conf-black, qty: 12, price: 10
  1. Perform GraphQL query:
mutation {
  addConfigurableProductsToCart(
    input: {
      cart_id: "gbK3g1pcEiyd39h2clKomLU6qsyFLAVT"
      cartItems: [
        {
          variant_sku: "conf-black"
          data: {
            qty: 13
            sku: "conf-black"
          }
        }
        {
          variant_sku: "conf-white"
          data: {
            qty: 13
            sku: "conf-white"
          }
        }
      ]
    }
  ) {
    cart {
      items {
        id
        qty
        product {
          name
          sku
        }
      }
    }
  }
}

  

Expected result (*)

  1. "message": "The requested qty is not available",

Actual result (*)

  1. "message": "Internal server error",
@naydav naydav added the Contribution Day Tickets is good for start on Contribution Day label Feb 8, 2019
@XxXgeoXxX XxXgeoXxX self-assigned this Feb 13, 2019
@naydav
Copy link
Contributor

naydav commented Feb 19, 2019

#368

@naydav naydav closed this as completed Feb 19, 2019
@naydav naydav added this to the Release: 2.3.1 milestone Feb 19, 2019
@TomashKhamlai TomashKhamlai added bug Something isn't working Component: QuoteGraphQl labels Mar 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working Component: QuoteGraphQl Contribution Day Tickets is good for start on Contribution Day
Projects
None yet
Development

No branches or pull requests

3 participants