Problem Accessing Data from Previous Steps in Webhook Action

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

Hi, I have problem with getting data from previous steps in Webhook action.

the url variable at the bottom is ok now, when I type manually, the request works

but when I get this exactly same url from the previous step, the post action raises an error

The error is

Can you help me, please?

Can you try removing the surrounding “” from the URL value? So you’d pass this instead:

"url": {{steps.trigger.event.url}}

Right now the URL is getting evaluated literally, as {{steps.trigger.event.url}}

It still raises the same error

Maybe there is an issue with something not being escaped. I’d recommend either configuring that object in a code step before this action and returning it, so that you can exactly how it’s getting interpolated, or maybe also pasting the code into ChatGPT to see where there is an issue.

Or paste the full code in here along with the error and tag @Mario to ask.