I'm triggering a Lambda with invocation type RequestResponse. My lambda throws and error and fails, but Retool considers it succeeded.
This is probably because Lambda replies with a 200 status code. However, the payload clearly indicates an error:
I'm triggering a Lambda with invocation type RequestResponse. My lambda throws and error and fails, but Retool considers it succeeded.
This is probably because Lambda replies with a 200 status code. However, the payload clearly indicates an error:
Hi @thomas_k_x Yes, the 200 code is being interpreted as a success.
You could have some Javascript that checks for an error property in the response and shows a failure notification or triggers some action