-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Get Cart always return code 200 #10218
Comments
It seems the issue might be with the hardcoded return code in the referenced file:
I’d like to contribute by solving this issue. Could I work on it? |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 3 days. |
any updates? |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 3 days. |
Package.json file
Node.js version
v22.11.0
Database and its version
PostgreSQL 16.1
Operating system name and version
Ubuntu 24.04
Browser name
No response
What happended?
Using the store's Api Get Cart /store/carts/{id} you can pass any {id} value, and you will always get the response code 200, although such a cart does not exist.
Expected behavior
A response code of 404 not found is expected.
Actual behavior
You will always get the response code 200, although such a cart id does not exist.
Link to reproduction repo
https://github.com/medusajs/medusa
The text was updated successfully, but these errors were encountered: