-
Notifications
You must be signed in to change notification settings - Fork 863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SendEmailAsync does not document AmazonSimpleEmailServiceV2Exception #3550
Comments
Also, that is probably not the right exception to throw in the case of a misconfiguration. A misconfigured app could send 1000s of emails before the problem is identified by a human operator. It's a catch-all exception - |
@lonix1 Good morning. The mentioned exception is thrown by the incorrect policy configuration per your issue description. It is the IAM issue, not SES issue. In fact any service would throw this exception if the IAM policy does not allow a role or service to invoke certain service API operations. Hence, such exceptions are not documented in specific service (in this case SES) API page. The page SESv2 > Common Errors lists the errors common to the API actions of all AWS services. It specifically states that In your use case, policy was misconfigured and hence it caused IAM exception which is returned as Thanks, |
Thank you for explaining that, I now understand the .NET SDK's error handling philosophy. 👍 However it should be noted:
We've already worked around these issues. But take into account other devs may have their code blow up one day, and they won't understand why. It would be because they built their systems around one set of exceptions, and there are many more they don't know about. |
@lonix1 Tysnks for the suggestions. For specific error wrapped by Regarding documentation issue, all SDK(s) rely on service models (not just .NET SDK). Until and unless there is some information in these models to include common exceptions, it's not feasible to have these linked from API reference pages. I would discuss with relevant teams on how to further improve documentation as you suggested. Thanks, |
Comments on closed issues are hard for our team to see. |
Describe the issue
I'm using SES v2.
I used
SendEmailAsync
with an identity that has a default configuration set. The policy was not correct and so prevented my app from sending the mail:This exception was thrown:
AmazonSimpleEmailServiceV2Exception
:That exception is not documented - neither in the API docs nor in the doc-comments that show in my IDE.
Links
https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/SimpleEmailV2/MSimpleEmailServiceV2SendEmailAsyncSendEmailRequestCancellationToken.html
The text was updated successfully, but these errors were encountered: