This topic was automatically generated from Slack. You can find the original thread here.
Hi all, when using any native connector/action and it throws an error…. Is there a way to receive that error and possibly send it elsewhere….?
Usually, any error from a native connector/action ends the WF, but I want to catch this error in a $.respond() to send back to the client that requested.
In my use case, when I call an endpoint, a HubSpot create company action runs… I want to get a response of the action but on an error, the WF stops and the $.respond doesn’t reply with a useful msg. I thought about the error subscription too but how do I keep the session open or redirect the error subscription to the session.
Thanks for the graphic, much easier to understand. Have you tried to wrap your Hubspot API call with a try..catch and handling the $.respond case in the catch in case Hubspot rejects or fails the request?
Yes, that’s a limitation of using a pre-built step.
We don’t have custom error handling for pre-built actions yet, but you can either fork that component and publish a version that includes this custom logic you need with the error handling.
Alternatively, you can use the Node.js scaffolding with Hubspot to recreate the API call to create the company.
We have a custom source that will emit rows of a CSV as events to specified WFs…
Thing is the CSV could have about 20000 rows which means 20000 events… The documents say the queue can only handle 10000 events… without being able to throttle the custom source emission, what happens to the remaining 10000 events?