You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to create a return using the store API (http://localhost:9000/store/return), the request results in an unknown error. The response received is {"code": "unknown_error", "type": "unknown_error", "message": "An unknown error occurred."}. The Medusa admin terminal logs an error indicating that it cannot read properties of undefined, specifically items.
{
message: "Cannot read properties of undefined (reading 'items')",
name: 'TypeError',
stack: "TypeError: Cannot read properties of undefined (reading 'items')\n" +
' at Object.<anonymous> (E:\\Work\\medusa-poc-0824\\medusa-admin\\node_modules\\@medusajs\\core-flows\\dist\\order\\workflows\\return\\create-complete-return.js:119:16)\n' +
' at Object.invoke (E:\\Work\\medusa-poc-0824\\medusa-admin\\node_modules\\@medusajs\\workflows-sdk\\src\\utils\\composer\\helpers\\create-step-handler.ts:58:67)\n' +
' at processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at async DistributedTransaction.handler (E:\\Work\\medusa-poc-0824\\medusa-admin\\node_modules\\@medusajs\\orchestration\\src\\workflow\\workflow-manager.ts:214:16)\n' +
' at async stepHandler (E:\\Work\\medusa-poc-0824\\medusa-admin\\node_modules\\@medusajs\\orchestration\\src\\transaction\\transaction-orchestrator.ts:788:20)\n' +
' at async Promise.allSettled (index 0)\n' +
' at async promiseAll (E:\\Work\\medusa-poc-0824\\medusa-admin\\node_modules\\@medusajs\\utils\\src\\common\\promise-all.ts:23:18)\n' +
' at async TransactionOrchestrator.executeNext (E:\\Work\\medusa-poc-0824\\medusa-admin\\node_modules\\@medusajs\\orchestration\\src\\transaction\\transaction-orchestrator.ts:920:7)\n' +
' at async executeNext (E:\\Work\\medusa-poc-0824\\medusa-admin\\node_modules\\@medusajs\\orchestration\\src\\transaction\\transaction-orchestrator.ts:968:14)\n' +
' at async TransactionOrchestrator.resume (E:\\Work\\medusa-poc-0824\\medusa-admin\\node_modules\\@medusajs\\orchestration\\src\\transaction\\transaction-orchestrator.ts:983:5)'
}
Expected behavior
I expect the return creation process to complete successfully and return a confirmation response.
Screenshots
Additional context
I attempted to console log the input in create-complete-return.js at line 118, and the result is undefined, which indicates that the data structure being passed may not be correctly formatted or that the required data is not being retrieved properly.
The text was updated successfully, but these errors were encountered:
Bug report
Describe the bug
When attempting to create a return using the store API (http://localhost:9000/store/return), the request results in an unknown error. The response received is {"code": "unknown_error", "type": "unknown_error", "message": "An unknown error occurred."}. The Medusa admin terminal logs an error indicating that it cannot read properties of undefined, specifically items.
System information
Medusa version (including plugins): preview / v2.0.10
Node.js version: 20.17.0
Database: Postgres 16.4
Steps to reproduce the behavior
Expected behavior
I expect the return creation process to complete successfully and return a confirmation response.
Screenshots
Additional context
I attempted to console log the input in create-complete-return.js at line 118, and the result is undefined, which indicates that the data structure being passed may not be correctly formatted or that the required data is not being retrieved properly.
The text was updated successfully, but these errors were encountered: