No way to catch and retry errors from Step Functions tasks?

When a lambda throws an error to indicate failure, it looks like the Step Functions task always assigns the error code “Exception” to it regardless of the exception type. I think this makes it impossible to route custom errors through the Retry and Catch handlers. Is there any way around this?

This seems to be confirmed here:

Thank you for reporting this. Starting from version 4.0.3, this issue should largely be resolved. Could you kindly confirm whether it addresses the problem you were experiencing?

1 Like

Confirmed fixed! :sunny: I just tested this on 4.0.4.dev21 and it all now works as expected. Thank you very much!