Comments (2)
Thank you for spotting this and opening an issue.
This is the error that is logged into core lightning:
2022-06-24T00:09:21.459Z UNUSUAL plugin-cln_plugin_class_example.exe: Killing plugin: Received a JSON-RPC response for non-existent request
My guess is that we are trying to log a message for the id:40
and it does not allow us to do that since no request was generated for the id:40
as stated in the JSON-RPCv2.0
spec here.
A workaround may be to register a log()
method into rpcmethods
and generate a request response every time we need to log something.
Ps. Can't help but notice strangely this technique works with the rust plugin api here.
from lndart.cln.
Thanks to driving inside the bug of this, and maybe you are right! the log is a special request formed by the following payload:
{
"id": 1,
"jsonrpc": "2.0",
"level": "",
"message": ""
}
Do you want to try to make this request and see if this fixes the problem? :)
Good debugging!
P.S: It is not a response but a plain map to send to the stdio
from lndart.cln.
Related Issues (20)
- plugin: implementing the dart release package inside the CI
- plugin: implement unit test regarding the options after the init method
- plugin: the plugin need to have a rpc wrapper inside, and we need to include it HOT 1
- plugin: implement notification callback
- plugin: implement hook callbacks
- common: make a new package that will be cln_common to include some common object
- rpc: modify the interface of the client to have a common rules between client implementation
- Extend the tests to cover type checking the init and getManifest methods.
- common: got error while using unixSocket HOT 2
- improve the readme like the rust one
- common: Lightning.connect method need to accept a optional map and not a string HOT 2
- plugin: implement the send notification use case from plugin to core lightning
- common: deprecate the `toJSON` method in favor of the `toJson`
- release failure: changelog.json is not longer valid?
- rpc: improve error handling
- rpc: json response error when tried to call listchannel using rpc call
- lnlambda: on flutter web we receive XMLHttpRequest error HOT 1
- ci failuer due an old version of commando
- we should support the cln rest API that it is the most recent one
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lndart.cln.