Skip to content

RPC API should return error message when failing to parse JSON #908

Closed
@alecalve

Description

@alecalve

Currently, when sending a RPC request with unescaped chars like in #387, lightningd returns an empty string when it should instead return a valid JSON RPC response like:

{
  "id": null,
  "error": {
    "code": -32700,
    "message": "Parse error"
  }
}

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