Medusa 2.23.1: the shipping check that can block checkout
Medusa 2.23.1 rejects carts with shippable items and no shipping method. Which setups break, how to audit before upgrading, and what else to test.
- Medusa.js
- Migrations
- Operations

You bump Medusa from 2.23.0 to 2.23.1, the build passes, the admin loads, and a few hours later someone notices that a slice of carts is no longer turning into orders. Nothing is down. Payment sessions are created. The carts just fail at completion.
That is the failure 2.23.1 can introduce, and it comes from a deliberate behavior change in a patch release, not a bug.
Cart completion now validates shipping per line item
The release notes are direct about it. Cart completion now checks that a shipping method is provided for all line items whose variants are linked to a shipping profile. If your checkout does not collect a shipping method for those items, the cart fails to complete after the upgrade. The change is PR #17936, listed as fix(core-flows): require shipping for order items with a shipping profile.
Two things matter here:
- The check keys off the shipping profile link, not off whether you think of the item as physical. An item with a profile is shippable as far as Medusa is concerned.
- It lives in core flows, so it applies to every caller that completes a cart, not only your main storefront.
A storefront that follows the standard flow of address, shipping option, payment, complete will not notice. The trouble is in everything that deviates from it.
The setups that break are the ones that skip the step
From the shape of the change, these are the flows we would check first:
- Digital or service products that carry a shipping profile. Catalogue imports tend to attach a default profile to everything. That is especially common after a migration from a platform where virtual and downloadable products were a product type rather than a profile decision. If the storefront hides the shipping step for these items, completion now fails.
- Pickup and local delivery flows that never create a shipping method. If collection is modelled as a note or a metadata flag instead of a shipping option, the cart has shippable items and no method.
- Express and one-click checkouts. Wallet buttons and buy-now paths often go from cart straight to payment. If nothing adds a shipping method on the way, they stop working.
- Server-side cart completion. Subscription renewals, quote-to-order flows, marketplace or POS integrations and any custom workflow that builds a cart and completes it programmatically.
- Mixed carts. The validation is per line item. A cart with one shippable item needs a shipping method even if the rest of the cart does not.
The PR title refers to order items, and the same release fixes shipping handling on draft order edits and canceled order changes. Put draft orders and order edits on the test list as well as storefront carts.
Audit profiles and recent orders before you upgrade
Do this against production data, on the current version, before touching package.json.
- List every product with a shipping profile. For each one that is not physically shipped, decide whether the profile is wrong (remove the link) or the checkout is wrong (add a shipping method, even a zero-cost one).
- Query recent orders for the pattern the new check rejects. Find orders with no shipping methods whose items belong to products with a shipping profile. Every hit is an order that would have failed on 2.23.1. Group them by sales channel and by whatever identifies the originating flow. That tells you which callers need work.
- Grep for every completion call. Search the storefront, backend customizations and integrations for calls to the cart completion endpoint and for direct invocations of the complete-cart workflow. Each one is a code path to test.
- Check shipping option coverage. A flow can only add a method if a shipping option exists for that profile, region and stock location. Gaps here were invisible while completion did not care.
If step 2 returns nothing across a meaningful window of orders, the upgrade is low risk on this point. If it returns anything, fix the flow first and upgrade second.
Fix the data model, not the validation
It is possible to work around the check. We would not. The rule is reasonable: a shipping profile is a statement that the item needs fulfilment, and an order without a method for it is ambiguous for every downstream system.
The cleaner fixes are:
- Remove the shipping profile link from products that are never shipped.
- Model pickup as a real shipping option with its own price and fulfilment handling.
- In express and programmatic flows, add a shipping method explicitly before completion, and fail loudly in your own code when no option is available.
Surface the completion error in the storefront too. A checkout that swallows a failed completion and shows a spinner is how this turns into a lost afternoon of orders.
The auth callback hook is additive but handles secrets
2.23.1 adds an authCallbackValidated hook to the auth callback workflow (PR #17980). It runs after a successful OAuth validation and receives the authenticated identity plus the provider's raw authentication data. A new storeTokens option on the callback workflow lets you persist the provider's tokens from the hook.
Nothing breaks if you ignore it. If you adopt it, test:
- That existing OAuth sign-in still completes with your hook attached, including when the hook throws.
- What the raw provider data actually contains for each provider you use, and that none of it ends up in logs.
- Where stored tokens live, who can read them and how they are rotated or removed. Provider tokens are credentials. Only enable
storeTokensif you have a use for them.
Related: the release also stores when a password was updated, for refresh and MFA validation (PR #17779). Run your password reset and session refresh flows through staging.
S3 presigned uploads must match the declared size
The S3 file provider now signs the file size into presigned upload URLs (PR #17923). S3 rejects any upload whose content length does not match the signed size. That closes off oversized uploads through a valid URL.
It also breaks any client that changes the file between requesting the URL and uploading it. Check for:
- Client-side image resizing or compression that runs after the URL is requested.
- Upload code that declares an estimated or stale size.
- Proxies or SDK wrappers that alter the body or use a transfer mode without a fixed content length.
Test a real upload from the admin and from every custom uploader, against real S3 or the S3-compatible store you run in production. Compatible stores do not always enforce signed conditions the same way.
What to do next
Run the order audit this week, whether or not you plan to upgrade soon. It is cheap, and it tells you whether your catalogue's shipping profiles say what you mean.
Then upgrade staging to 2.23.1 and complete a cart through every path from the grep, plus one draft order, one OAuth sign-in, one password reset and one file upload. The release also changes promotion, reservation and draft order behavior through bug fixes, so include a promotion with a not-equals rule and a reservation move in the pass. If you are coming from 2.22.x, you also take on what 2.23.0 changed. Read those notes separately.
If the audit shows the problem is in how the catalogue was brought over, that is a data modelling job more than an upgrade job. It is the kind of thing we plan for in a Magento 2 to Medusa migration and in our wider migration work. If you want a second pair of eyes on a Medusa upgrade or a checkout flow that does not follow the standard path, get in touch.
Need this done on a real stack?
Magento 2, Adobe Commerce, migrations to Medusa.js or Vendure, enterprise Next.js, WordPress, and AI automation.
Contact us