Skip to content

[Bug]: Clarify streaming errors in REST transport binding #1262

Description

@yarolegovich

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

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions