Why am I Experiencing a Pipedream Internal Error in a 3-Step Workflow Involving Google File Trigger, Python Script, and Google Sheet Update?

i already did

thanks

Cool thanks! Looking

In your main handler function, I commented out a few lines so it looks like this:

def handler(pd: "pipedream"):
    # Reference data from previous steps
    info_nueva = pd.steps["trigger"]["event"]["file"]["id"]

    #Transform into a pandas df, then back to a dict
    # final_data = transform_df(info_nueva).to_dict("split")

    #Only keep necesary data
    # final_dictionary = [final_data['columns']] + final_data["data"]

    # Return data for use in future steps
    # return final_dictionary

And tested the step. Since it ran successfully, there must be a problem in the code.

I know it’s a pain and we’re improving our docs on common Pipedream Internal Errors, but could you debug your custom code line by line and see where the error is located?

I did on my local machine and it ran without problem, I believe the problem comes from the return from the handler

this works

so yea the problem was fixed with this snippet added to the transform df function

i think the main issue is without proper error handling, this becomes a guessing game. But thanks for the quick response and help