Why Did My Workflow Stop Retrieving Emails from Gmail After a Trigger Error?

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

Hello, I have a workflow that was working fine for a day with a trigger to check Gmail for new emails, I had it set to run every 1 minute, it ran for about 12 hours, then I had an error with the next step (insert into Gohighlevel) because of an email with no subject (I fixed that in the next step). Around the same time it stopped getting new emails. It keeps returning error “errorTypeError: Cannot read properties of undefined (reading ‘payload’)” I can’t figure out why it’s not returning anything anymore. I even redid the Gmail auth. When I test the trigger it doesn’t find any email, there is no payload even though emails have been received. Could it be a rate limit from Gmail? It worked for 12 hours and then stopped right after that error happened with the next step. I appreciate any insight or debugging help, thank you!

Not sure the core issue, but one thing you might want to try is removing the trigger from your workflow and re-adding it. Obviously you shouldn’t have to do that, but I’m curious if that fixes your issue in the meantime.

Ok will try that. But is checking every 1 minute too much or is that normal

Ok I deleted and recreated the trigger the exact same way and now it works. Is there any way to avoid this in the future, is it possible Pipedream disabled the trigger somehow because one of the steps failed? It looked like ti was live etc but just stopped working

If it was automatically disabled by Pipedream it would’ve been because it was broken and only throwing errors, and we would’ve sent you an email. You can also open up the source to look at its logs in pipedream.com/sources, but I’m not sure why that one would’ve stopped working without digging in.

Ok thank you

This happened again, it ran fine for a day or so and then stopped again at 9:55am this morning everything still shows as active but it stopped getting new emails from the trigger. Just using the standard gmail-new-email-received trigger provided by Pipedream not any custom code. This is a critical error how can I get it resolved? Is this a known bug?

The error in the logs is the same as when it happened last time TypeError: Cannot read properties of undefined (reading ‘payload’) so looks like Gmail is not returning anything

Hm, is this using a custom OAuth client, or Pipedream’s?

Can you link me to the source?

It’s a standard Pipedream one here is the source Sign Up - Pipedream

I see those errors ~and I see that it’s paused. Did you get an email from us about pausing it?~

Can you do me a favor a file a support ticket at pipedream.com/support so we can more easily dig in? Make sure to include that source URL (specifically the ID at the end), so the team can look at the logs.

Ok will do thanks