Can I improve this workflow?

Describe the question

I had a deepCopy error in the Rate Request workflow, just wondering if i can improve any part of this flow

What is the error message (if any)?

RangeError: Maximum call stack size exceeded at deepCopy

Cartonization Flow

Share the output returned by the last node

Here is where it errored:

`

RangeError: Maximum call stack size exceeded
    at deepCopy (/home/ubuntu/.nvm/versions/node/v16.15.0/lib/node_modules/n8n/node_modules/n8n-workflow/dist/src/utils.js:4:18)
`



## Information on your n8n setup
- **n8n version:** v0.202.1
- **Database:** SQLite
- **Running n8n with the execution process:** main
- **Running n8n:** npm

Rate Request Workflow

Remove Existing Packaging

Hi @cgsmith, I am sorry you’re having trouble. So the error is thrown when your “Set transit on response” node runs? How does the data you’re sending from the Merge node look like?

[
  {
    "headers": {
      "user-agent": "Symfony HttpClient/Curl",
      "content-length": "1603",
      "accept": "*/*",
      "accept-encoding": "gzip",
      "authorization": "Basic 1234",
      "content-type": "application/json",
      "x-forwarded-host": "sub.domain.com",
      "x-forwarded-proto": "https"
    },
    "params": {},
    "query": {},
    "body": {
      "shippingMappings": [],
      "id": 2495380,
      "orderReference": "",
      "shippingPointZip": null,
      "uuid": "4321",
      "totalItemQuantity": 0,
      "status": 9,
      "purchaseOrder": "1234",
      "referenceNumber": "1234",
      "shipCarrier": 6,
      "shipService": 173,
      "shipCarrierName": "Amazon FedEx",
      "shipServiceName": "Ground Home",
      "shipBilling": "sender",
      "residential": null,
      "shipToCompany": null,
      "orderedItems": [
        {
          "sku": "200",
          "alias_sku": null,
          "name": "RIBEYE",
          "quantity": 1,
          "alias_quantity": null,
          "uuid": "1",
          "notes": null,
          "qualifier": "",
          "type": ""
        },
        {
          "sku": "100",
          "alias_sku": null,
          "name": "02 CHICKEN BETTER THAN ORGANIC ( EACH ) ",
          "quantity": 5,
          "alias_quantity": null,
          "uuid": "2",
          "notes": null,
          "qualifier": "",
          "type": ""
        }
      ],
      "shipDate": {
        "date": "2022-11-14 20:41:35.573533",
        "timezone_type": 3,
        "timezone": "America/Chicago"
      },
      "createdDate": {
        "date": "2022-11-15 01:23:34.000000",
        "timezone_type": 3,
        "timezone": "America/Chicago"
      },
      "cancelDate": null,
      "tracking": null,
      "shipToName": "John Doe",
      "shipToFirstName": "John",
      "shipToLastName": "Doe",
      "shipToAddress1": "123 Fake way",
      "shipToAddress2": null,
      "shipToCity": "Anytown",
      "shipToState": "FL",
      "shipToZip": "12345",
      "shipToCountry": "US",
      "shippingAccount": null,
      "shipToEmail": "[email protected]",
      "shipToPhone": "5555555555",
      "retailerID": null,
      "carrierNotes": null,
      "notes": "",
      "orderNotes": "",
      "updatedDate": "2022-11-15 02:41:15",
      "origin": "CPZ",
      "packages": [],
      "fromName": "Customer",
      "fromAddress1": "123 fake street",
      "fromAddress2": "",
      "fromEmail": "",
      "fromCity": "anytown",
      "fromState": "PA",
      "fromPostalCode": "17201",
      "fromCountryCode": "US",
      "fromPhone": "123 123 1234",
      "transit": 3,
      "facilityId": 0,
      "customerId": 0,
      "packagingNotes": "",
      "history": [],
      "facilityIdentifier": 3,
      "fedexAccount": "1234",
      "shipperZip": "17201",
      "carrier": "FedEx",
      "service": "Ground Home"
    },
    "packaging": [
      "Z-BOX-KIT1",
      "Z-BOX-KIT2",
      "Z-RENO-BOX-KIT1",
      "Z-RENO-BOX-KIT2",
      "Z-BOX-KIT",
      "Z-CMB-BOX-KIT1",
      "Z-CMB-BOX-KIT2",
      "Z-TURLOCK-BOX-KIT1",
      "Z-TURLOCK-BOX-KIT2"
    ],
    "notes": [],
    "transit": 3
  }
]