Why Does Python Code Trigger Show 'NameError: name 'event' is not defined' in Pipedream Workflow?

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

Hi Folks! I’m new here and nice to meet you all.

I have a question regarding pipedream as I’m just testing for now but been taking me a good few days to get something setup.

I have emails that are forwarded to a trigger, this trigger I’ve made sends the info to a second python code trigger using regex, which I have setup a mock and it works as it should with the mock data.

But the issue I have is that it keeps saying when I test the entire workflow, NameError: name 'event' is not defined. when I test live?

I used ChatGPT and it tells me that it may be a problem with the way the first trigger is passing data to the 2nd trigger?

Is it because I need to send an actual email for the event and workflow to trigger correctly?

It sounds like the reference to the incoming data on your trigger is maybe different between your mock data and real data? Can you double check the step reference path for your real data, and ensure it matches how you’re referencing it in the python or ChatGPT step?