Closed finom closed 12 months ago
I found out how to fix that. I needed to set email:
await medusa.carts.update(currentUser.medusaCartId, {
email
});
But I don't close the issue because I think the API should return a proper error instead of the "unknown error".
Thanks for filing this issue @finom. We should indeed validate the order data and throw a more descriptive error. I've added it to our backlog :)
Bug report
Describe the bug
I'm trying to complete an order with the following code:
But the last line throws an error.
If I call medusa.carts.complete with the same cart ID again I get
Any thoughts how to fix that? Thank you!
System information
Medusa version (including plugins): 1.6.0 Node.js version: 18.3.0 Database: Postgres Operating system: Heroku (I think Linux) Browser (if relevant): Not relevant
Steps to reproduce the behavior
See description.
Expected behavior
An order should be placed.
UPD That's what server-side log shows:
From SyncLinear.com | CORE-1123