aws-sdk-java-v2 icon indicating copy to clipboard operation
aws-sdk-java-v2 copied to clipboard

If sdk message is null, populate the S3Exception with a best-effort error message

Open fjmacagno opened this issue 3 years ago • 1 comments

Describe the feature

When an sdk occurs and there is no message, instead populate the Exception with other sources of debug information, such as the http response.

Use Case

Getting the exception message S3Exception: null is extremely unhelpful, and makes debug very difficult. While i understand that the sdk currently only returns the message, it would be much more usable if there was a hierarchy of error messages: the returned message -> the http response -> ...

Example: https://github.com/aws/aws-sdk-java-v2/issues/3287

Proposed Solution

If there is no message in an sdk response that has an error status code, instead populate the message field with the status response.

Other Information

No response

Acknowledgements

  • [ ] I may be able to implement this feature request
  • [ ] This feature might incur a breaking change

AWS Java SDK version used

2.17.227

JDK version used

1.8,1.18

Operating System and version

Debian 10 on docker, osx

fjmacagno avatar Jul 21 '22 18:07 fjmacagno

Hello @fjmacagno ,

Thank you very much for your submission. The team has reviewed the feature request and added it to the backlog.

Best,

Yasmine

yasminetalby avatar Jul 25 '22 18:07 yasminetalby