Does Anyone Know What This Error Means?

This topic was automatically generated from Slack. You can find the original thread here.

Hi, is there anyone who knows what this error means?

Hi Louieje, could you please share your JS code so we can help you troubleshoot further?

yeah, i’d add, and/or copy paste the entire log out (instead of the screenshot)

Hi , here’s the code from the code step that generated this error.

Hi , thanks. Here’s the full error message.
DataCloneError
function transformRequest(data, headers) { const contentType = headers.getContentType() || ''; const ha...<omitted>... } could not be cloned.
at null.DOMException (node:internal/per_context/domexception:53:5)
at null.log (/var/task/launch_worker.js:323:25)
at process.null (/var/task/launch_worker.js:741:13)
at process.emit (node:events:517:28)
at null.emit (node:internal/process/promises:149:20)
at null.processPromiseRejections (node:internal/process/promises:283:27)
at process.processTicksAndRejections (node:internal/process/task_queues:96:32)

Have you tried placing console.log statements to see exactly where this error is occurring?

That looks like potentially an unawaited promise.

I would also suggest splitting this code step into separate concerns. It looks like it’s trying to grab calendar events, potentially add events, and email recipients all in the same step.