Skip to content
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

[Code improvement] MLSdkAsyncHttpResponseHandler should report Headers on Errors for extra context #3311

Closed
brianf-aws opened this issue Dec 31, 2024 · 1 comment · Fixed by #3337
Assignees
Labels
bug Something isn't working

Comments

@brianf-aws
Copy link
Contributor

What is the bug?
Nowadays when working with remote models like Bedrock or SageMaker users run into issues such as a 500 INTERNAL_ERROR. However its not obvious why they got this error. It turns out that AWS gives more information or errors within the Headers.

Currently ML-Commons reports back errors with the Body of the error response but one has to enable debugging levels in order to see the header (In order to get this log).

This is not obvious it would be great if we could provide more context to users when there is a error from a remote service.

How can one reproduce the bug?
Steps to reproduce the behavior:
0. Enable Debug level logs for the linked ML-Commons class

  1. Get an error from any remote service
  2. Compare the debug level output to that of the standard info when the error from a remote service occurs like here

Do you have any additional context?
AWS services give key hints in the headers of a response not so much of the body. Its a hassle to enable logs to get this valuable information. And every re attempt of getting the bad response (With no clear hint) results in time and money wasted.

@brianf-aws brianf-aws added bug Something isn't working untriaged labels Dec 31, 2024
@pyek-bot
Copy link
Contributor

i can work on this, please assign it to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants