You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I want to throw the error from my scheduled request when making a rest call. I can see it in the logs, but it returns a 200 as the commit overrides it. It is nice that it will get retried before getting blocked, but I need to let the browser know how the request went.
Is there an easy way to achieve this?
Thanks!
The text was updated successfully, but these errors were encountered:
BigTunaKahuna
changed the title
Bubble up the error
Bubble up the error from within the scheduled rest request
Dec 9, 2022
If you submit with a uniqueRequestId, you can use a TransactionOutboxListener to get notifications when jobs fail, complete or are blocked. The request id will be included in that callback. That should work for you now.
What you really need in additionto this is an API to query the status of a submitted request. This has already been requested (along with listing all running/blocked requests). I will be looking into it soon.
Hello, I want to throw the error from my scheduled request when making a rest call. I can see it in the logs, but it returns a 200 as the commit overrides it. It is nice that it will get retried before getting blocked, but I need to let the browser know how the request went.
Is there an easy way to achieve this?
Thanks!
The text was updated successfully, but these errors were encountered: