Failed executions not appearing in the event inspector

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

Asutosh Rout : hello.
i had a workflow run yesterday which ran 178 times. but there were 2 failures. i got the mail about the 2 errors but want to see more details. the logs on the left shows 16 runs only. is there any way i can see which run failed with more details?

Tod Sacerdoti : Asutosh - If you go to https://pipedream.com/settings/billing there is a graph with daily invocations. If you click on one of the bars of the graph you will see invocations broken out by workflow or source. Please let me know if that helps answer your question.

Tod Sacerdoti : Btw, I saw you email address so added Mailmodo as an integrated app. Here is the base integration - https://pipedream.com/apps/mailmodo.

Dylan Sather (Pipedream) : if you’re looking to see more details on the error, take a look at your global error workflow. This is the workflow that sends you the error email. If you select events from the inspector on the left, you can see the incoming event data and the information on the error.

You can also retrieve the errors for that specific workflow using our REST API.

We plan to retain more error data in the UI in the future, so that you can inspect errors like you originally tried to. Right now we limit the number of events we keep for specific workflows, which is probably why you didn’t see the errors in your workflow.

Asutosh Rout : the rest api did help me. will get back here if needed. Thank you very much for the help @UN1BV42B1

Asutosh Rout : hey i would need a little extended help here.
Something about my work: i have 2 workflows. workflow1 gets a list of userIds and it calls workflow2 for each userId. So if workflow fetches 200 userIds then it runs workflow2 200 times.
(workflow2 only does 2 axios calls to some internal mailmodo endpoints) so this workflow2 fails randomly for 1 or 2 people with 400 error. i just wanted to know if there’s any scenario that you can think of where the 400 error be coming due to pipedream.

Asutosh Rout : i’ll paste the error body here if it helps:

"error": {
                    "code": "Error",
                    "msg": "Request failed with status code 400",
                    "cellId": "c_m4folAV",
                    "ts": "2021-09-29T14:08:52.739Z",
                    "stack": "    at null.createError (/opt/ee/node_modules/axios/lib/core/createError.js:16:15)\n    at null.settle (/opt/ee/node_modules/axios/lib/core/settle.js:17:12)\n    at IncomingMessage.handleStreamEnd (/opt/ee/node_modules/axios/lib/adapters/http.js:269:11)\n    at IncomingMessage.emit (events.js:412:35)\n    at null.endReadableNT (internal/streams/readable.js:1317:12)\n    at process.processTicksAndRejections (internal/process/task_queues.js:82:21)\n"
                }

Dylan Sather (Pipedream) : I think this doc may help re: troubleshooting the 400 error: FAQ: How do I troubleshoot 400 errors?.

This is not an issue with Pipedream. Take a look at the How do I get more information on 400 errors? section. That’ll show you how to see the error data Mailmodo is returning, which should help you troubleshoot the issue. If they don’t return that data or it’s not clear what the issue is, I’d recommend reaching out to their team to show them the data you’re sending in that request, and see if they can help you understand the 400 error more.