-
Notifications
You must be signed in to change notification settings - Fork 184
adding logging & support for better Client response #847
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
Conversation
✅ Deploy Preview for gateway-api-inference-extension ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kfswain The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
| logger.V(logutil.DEFAULT).Error(err, "Error unmarshaling request body") | ||
| // TODO: short circuit and send the body back as is (this could be an envoy error), currently we drop | ||
| // whatever the body request would have been and send our immediate response instead. | ||
| err = errutil.Error{Code: errutil.BadRequest, Msg: "Error unmarshaling request body: " + string(body)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wouldn't adding the body make the message too large?
| }, | ||
| }, | ||
| } | ||
| break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was the behavior before doing this short circuit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am asking because we hit an issue when running large scale benchmark with model server streaming; surprisingly some requests were hitting this code path and so causing unmarshling errors. My theory was that for some reason the response header events were not always being sent before the response body events, and so the modelServerStreaming flag was being set late for some requests.
|
/lgtm |
|
/lgtm |
When requests/responses are not valid json, EPP clobbered any body message. This should improve UX & useful messaging in the face of failures.