You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is a bug in the text that uncovers a bug in codegate:
decoded_line = ' {"error": "[Errno -2] Name or service not known", "type": "error", │ │
│ │ "choices": ['+2 │ │
│ │ e = IndexError('list index out of range') │ │
│ │ json_line = { │ │
│ │ │ 'error': '[Errno -2] Name or service not known', │ │
│ │ │ 'type': 'error', │ │
│ │ │ 'choices': [] │ │
│ │ } │ │
│ │ line = b'data: {"error": "[Errno -2] Name or service not known", "type": │ │
│ │ "error", "choice'+7 │ │
So what happens here is that we get a line and expect it to cointain choices but it only contains an error. We should handle the error, perhaps by raising an HTTP exception. But the root cause is that we cannot reach a service (or ollama can't?)
Describe the issue
I think this is a bug in the text that uncovers a bug in codegate:
So what happens here is that we get a line and expect it to cointain
choices
but it only contains anerror
. We should handle the error, perhaps by raising an HTTP exception. But the root cause is that we cannot reach a service (or ollama can't?)Originally posted by @jhrozek in #802 (comment)
Steps to Reproduce
Configure and run codegate with a wrong Ollama URL.
Operating System
Linux (Intel)
IDE and Version
Extension and Version
Provider
Ollama
Model
Codegate version
Logs
https://github.com/stacklok/codegate/actions/runs/13026634572/job/36336880374
Additional Context
This was found during CI so thus why there are not specific versions matched.
The text was updated successfully, but these errors were encountered: