[Bug]: Clarify streaming errors in REST transport binding
未關閉
- 主要語言
- Shell
- 星號
- 25.7k
- 分支
- 2.6k
- 平均合併
- 3 天 6 小時
- 30 天內合併 PR
- 16
描述
### What happened?
Currently there's no information on how to return errors for streaming requests in REST transport binding.
For JSONRPC which also uses SSE for streaming we return a data line with jsonrpc error struct in it.
```
data: {"jsonrpc": "2.0", "id": 1, "result": { /* Task | Message | TaskArtifactUpdateEvent | TaskStatusUpdateEvent */ }}
data: {"jsonrpc": "2.0", "id": 1, "error": { /* details */ }}
```
### Code of Conduct
- [x] I agree to follow this project's Code of Conduct
貢獻指南
評估
這個 Issue 還沒有評估資料。