Shopify / js-buy-sdk

The JS Buy SDK is a lightweight library that allows you to build ecommerce into any website. It is based on Shopify's API and provides the ability to retrieve products and collections from your shop, add products to a cart, and checkout.

Home Page:https://shopify.github.io/js-buy-sdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Every checkout ends up "out of stock error"

mud1 opened this issue · comments

Bug details

Describe the bug
Hi! The Shopify JS Buy SDK checkout URL when visited is redirected to a "stock-problem" page:
https://{store}.myshopify.com/checkouts/co/{checkoutId}/stock-problems

To Reproduce
Short video of the problem (not my site):
https://www.loom.com/share/7625e03c10e84fcea1f7cadd973d2776

In my site nothing has changed and it worked like a week ago.
Something in Shopify Storefront API must have changed that causes this issue.
It is not an individual site problem though, many sites are affected.

Shopify Community thread describing the problem:
https://community.shopify.com/c/shopify-apis-and-sdks/every-checkout-ends-up-out-of-stock-error/td-p/1754744

If the error you're dealing with is a network / API issue, please include the value of the X-Request-ID response header, the data sent to the API, and the payload of the response.

Request (Shopify JS Buy SDK checkout.webUrl):
https://{shop}.myshopify.com/{id}/checkouts/{checkoutId}
x-request-id: f7c2b655-c349-4e58-b76e-0510b89b04bc

Redirect to:
https://{store}.myshopify.com/checkouts/co/{checkoutId}/stock-problems
x-request-id: 5ef30757-1309-4ef5-8008-b0684534634d

Expected behavior
The customer sees the correct Shopify checkout page, so he/she can continue the flow.

Environment (please complete the following information):

  • OS: All platform
  • Browser: All browsers
  • Shopify Buy JS SDK Version: ^2.15.1

UPDATE: Fixed, issue can be closed.

Marked as fixed 🚀