Skip to content

[BUG] Shopify_developer_app 'Get Order' & 'Search for orders' undefined error (JSON parsing) #18971

@TomHartogs-Neople

Description

@TomHartogs-Neople

Describe the bug
When executing the Get order and Search for orders actions, the API returns an invalid response. It seems to be failing to parse the Shopify response.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://pipedream.com/connect/demo?app=shopify_developer_app&type=action&component=shopify_developer_app-get-order'
  2. Connect to Shopify account
  3. Fill in anything in the `Order id' field
  4. Press 'Submit'
  5. Observe error

Expected behavior
The API to return a order object or a 404/similar response, indicating that no order was found.

Screenshots
Image

Additional context
Exact error response:

{
  "os": [
    {
      "ts": 1762425014699,
      "k": "error",
      "err": {
        "name": "Error",
        "message": "\n              Unexpected error (error code: undefined):\n              \"[\"\n            ",
        "stack": "Error: \n              Unexpected error (error code: undefined):\n              \"[\"\n            \n    at file:///tmp/__pdg__/dist/code/8195108b2c98c8f6d66acb75d959f204cf001230751818b143ac658a8d052b21/node_modules/.pnpm/@[email protected]/node_modules/@pipedream/shopify/shopify.app.mjs:307:25\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async Object.run (file:///tmp/__pdg__/dist/code/8195108b2c98c8f6d66acb75d959f204cf001230751818b143ac658a8d052b21/code/actions/get-order/get-order.mjs:25:22)\n    at async file:///var/task/component_maker.mjs:170:11\n    at async captureObservations (/var/task/node_modules/@lambda-v2/component-runtime/src/captureObservations.js:28:5)\n    at async run (file:///var/task/component_maker.mjs:157:20)\n    at async file:///var/task/component_maker.mjs:199:11"
      }
    }
  ],
  "exports": {},
  "t": {
    "ar": 1762425012287,
    "br": 1762425012379,
    "bp": 1762425012379,
    "bls": 1762425012379,
    "ble": 1762425014709
  }
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Doing

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions