yesterday
Hi,
In Workato's Connector SDK, upon receiving a response to a request, which key gets processed first, Authorization's refresh_on or, or an Action's retry_on?
Background:
I'm working with an API that, unfortunately, doesn't subscribe to using standardized HTTP codes for their broadly recognized purposes. Expired auth tokens return either 500 or 444, depending on the endpoint, and those same codes are reused across the API for transient/server-side errors.
I've implemented the refresh_on key using string matching:
refresh_on: [401,403,/Token Invalid/,/Invalid Token/]
But I can't do the same for the retry_on keys of various actions, as I don't have every potential error message available to me. Retry_on will have to be set up similar to this:
retry_on: [444, 500]
My worry is that, if the retry_on key of an Action is processed before the refresh_on key of Authorization, 444 or 500 token errors will trigger action retries instead of token refreshes.
Any insight would be helpful, thanks!