TypeError [ERR_INVALID_ARG_TYPE]The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type undefined
at Function.from (buffer.js:207:11)
at Object.module.exports (/steps/base64_decode_string.js:2:23)
at MessagePort.messageHandler (/opt/nodejs/node_modules/@pipedreamhq/execution-environment/launch_worker.js:339:41)
at MessagePort.emit (events.js:198:13)
at MessagePort.onmessage (internal/worker.js:84:8)
Dylan Sather (Pipedream) : Thanks. It seems like the data arrive as JSON, actually. In the first step of your workflow (the HTTP trigger), if you click on a specific event on the left, do you see the body property? That contains the incoming HTTP payload. We parse the incoming JSON as a JavaScript object, so you can access its data in future steps using, for example, steps.trigger.event.body.name (to reference the name property).
Was there a specific property in the body that was base64-encoded that you’d like to decode?
Dylan Sather (Pipedream) : Do you see how the base64-decode step references the variable {{steps.trigger.event.bodyRaw}}? That variable doesn’t exist, which is why you get the error that it’s undefined. You’ll need to pass whatever variable you’d like to decode to that step, instead.
If you remove that value from the Data param, you’ll see an option to select other variables just below it. You can click into event, then body, then select the payload value from there:
Dylan Sather (Pipedream) : do you still have an event selected? When you select an event, we let you explore the logs / errors for that specific run, but you’ll need to de-select the event from the left first. Then, you should be able to edit the param.
Dylan Sather (Pipedream) : did you happen to Deploy your changes (see the blue button at the top). If so, did you try sending a new event to the workflow after you made the change?