Resource global error handlers

Hey everyone,

Hoping we can prioritize setting some default event handlers on resource level.

Imagine scenario where you use an API error messages come in a nested JSON
data.error_v2.message (data.error_v2.code) instead of creating user friendly notification on each individual query adding a global default setting that would handle a specific scenario would be great QoL feature for both the developers and end users of Retool.

6 Likes

I remember raising this before for GraphQL resources - where EVERY single error response comes as a json object with null data and an errors array.
Manually updating each error handler one by one was absolutely soul-draining :melting_face:

Hi @stefancvrkotic,

I can definitely make a feature request for this!

Would you expect to have to set up multiple resource-level scenarios to drill into the data inside of a response to find an error message and then handle it accordingly?

Yeah I think similar UI that we have on queries would work as long as we're able to set it globally.

1 Like