Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Single response when sending batch request. #140

Copy link
Copy link

Description

@hovi
Issue body actions

When I send multiple request in batch array, I get correctly results. When I send single request, I get the result without array brackets. The specification is a bit confusing, but I expect this is incorrect. It is certainly breaking my client expectations :-D Some examples follow.

Correct with 2 requests:

Request

[{"id":1849316922322121888,"jsonrpc":"2.0","method":"Observer.SwitchCamera","params":{}},{"id":732138300415643188,"jsonrpc":"2.0","method":"Observer.SwitchCamera","params":{}}]

Response
[{"jsonrpc":"2.0","result":null,"id":1849316922322121888},{"jsonrpc":"2.0","result":null,"id":732138300415643188}]



Request
[{"id":2419378167359262235,"jsonrpc":"2.0","method":"Observer.SwitchCamera","params":{}}]

Response missing array brackets
{"jsonrpc":"2.0","result":null,"id":2419378167359262235}


Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.