I've added error handling here and there in the backend but it isn't sufficient enough for a production app. All kinds of validation like users can't sign up twice, projects and content should be uniquely named etc.
As far as I know, this is how it should work :
Catch the error, raise a custom exception, catch the exception, throw valid HTTP error + log the error
This is super important in the send invite part. If the send_email fails due to some reason, the state in the db needs to change to "failed" or something and API needs to respond correctly
I've added error handling here and there in the backend but it isn't sufficient enough for a production app. All kinds of validation like users can't sign up twice, projects and content should be uniquely named etc.
As far as I know, this is how it should work :
Catch the error, raise a custom exception, catch the exception, throw valid HTTP error + log the error