Skip to content

/v1/rpc endpoint not passing method and params to the rpc call #79

@aquiporras

Description

@aquiporras

According to the documentation the rpc endpoint can be used with the following body:

{"method":"getinfo"}

I have added the following log in the line 128 (in lightning-client-js.js )

global.logger.log("sendObj: " + JSON.stringify(sendObj));

And this is the result in the logs

plugin-plugin.js: sendObj: {\"jsonrpc\":\"2.0\",\"params\":[],\"id\":\"22\"}

Of course, later lightningd fails with "no method" error.

PS: Added more logs to rpc.js and saw that the req.body object contains the method property... but then req.body.method is undefined.

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