@hiwye Can you post your code that's being run? You have exceptions that are returning a response, you need to return one response and exit there.
Oct 4, 2016
7
Level 4
Exception handler fired multiple times
Is it possible to prevent the exception handling function from running more than once, even if there are multiple exceptions?
I am currently catching API errors, but if there are multiple exceptions thrown I get a messed up JSON response:
{"error":{"message":"Internal Server Error","status_code":500,"details":[]}}{"error":{"message":"Internal Server Error","status_code":500,"details":[]}}
As you can see, the result are two concatenated JSON strings, which (together) aren't valid.
Any help would be greatly appreciated!
Cheers, Seb
Please or to participate in this conversation.