Open link2xt opened 1 year ago
I think all exceptions should be handled, but in case of unknown errors they should be only logged but not be returned as they may contain the information we don't want to leak, like this redis-mailcow
hostname.
This is also part of the larger problem #78. It would be ok for the bot to crash, but it currently takes down the /new_email
API which could otherwise start working once the backend problem resolves.
Here is the backtrace:
The whole container stops, because
delete/mailbox
returns an HTTP 200 response with this contents:The exception in
json = result.json()
insidedel_user_mailcow()
should be handled somehow. Given thatdel_user_mailcow()
throws aMailcowError
exception when there is a proper error, probably there should be an exception handler around the wholedel_user_mailcow()
call.I did a quick fix on the server for now: