Skip to content

Error not handled for invalid JSON-RPC 2.0 response Object #33

@mevir

Description

@mevir

If the server response is not a valid json object the following error is thrown:
TypeError: invalid 'in' operand response (line 132 for a simple JSON-RPC response, line 599 for a batch response).
It may also affect the web-sockets JSON-RPC responses (not tested).

If the server response is a valid json but both the "error" and "result" members are missing from response it will be passed as successful with undefined as result (same lines).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions