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

Log message on 400 #729

Merged
merged 2 commits into from
Nov 14, 2023
Merged

Log message on 400 #729

merged 2 commits into from
Nov 14, 2023

Conversation

squidarth
Copy link
Collaborator

@squidarth squidarth commented Nov 10, 2023

Summary

We've had a couple cases where there have been spikes of 400s. When this happens, and the 400s are coming from the model pod, we don't have any real means of understanding what happened. In this PR, we add some logging when we return BadRequest exceptions from Truss, so that we can understand the errors on the pod better.

Testing

Deployed a model locally, and curled it with malformed json. Got this:

test_92___Model___Baseten

@squidarth squidarth marked this pull request as ready for review November 10, 2023 16:20
@squidarth squidarth changed the title Sshanker/log message on 400 Log message on 400 Nov 10, 2023
@squidarth squidarth merged commit 806e581 into main Nov 14, 2023
5 checks passed
@squidarth squidarth deleted the sshanker/log-message-on-400 branch November 14, 2023 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants