🐛 [Streaming Chat] Improve error handling on bad chat request messages #272
Labels
api:http
area:api
good first issue
Good for newcomers
help wanted
Extra attention is needed
model:language
size:small
type:bug
Something isn't working as expected
A Glide's streaming channel gets closed on chat requests that doesn't pass validation.
The issue is in the way we handle errors right now:
glide/pkg/api/http/handlers.go
Lines 139 to 148 in bca8c8f
For example, you can open a streaming chat connection (via Postman, for example):
Then, send it just an empty message like:
You would get an error like:
Finally, if you try to send a valid message now:
It would not really work.
The text was updated successfully, but these errors were encountered: