I installed the inventory module to the medusa backend and after that when I am trying to add a line item to the cart It is giving me this error "{
"code": "insufficient_inventory",
"type": "not_allowed",
"message": "Variant with id: variant_01H25FWC9GB1R7CZKPE9B4SJR2 does not have the required inventory"
}"
All the variants for all the products are showing inventory_quantity as 0. When I checked the stocked_quantity in the inventory_level schema in the database it shows me stocked_quantity of 100.
How to solve this.
#Getting error when trying to add line item to the cart
6 messages · Page 1 of 1 (latest)
Have you run the migration script after installing the inventory module?
Followed all the steps mentioned in this page
https://docs.medusajs.com/modules/multiwarehouse/install-modules#run-migration-script
This is the error I am getting in my backend console "error: Variant with id: variant_01H25FWC9GB1R7CZKPE9B4SJR2 does not have the required inventory
Error: Variant with id: variant_01H25FWC9GB1R7CZKPE9B4SJR2 does not have the required inventory
at CartService.<anonymous> (D:\Workspace\Builds\Shopism\Medusa\medusa\backend_{
type: 'not_allowed',
code: 'insufficient_inventory',
date: 2023-06-09T12:48:19.980Z
}
::1 - - [09/Jun/2023:12:48:19 +0000] "POST /store/carts/cart_01H2FHM5RGMV64JN4APF21VYYK/line-items HTTP/1.1" 400 155 "-" "PostmanRuntime/7.32.2"
"