-
Notifications
You must be signed in to change notification settings - Fork 906
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Required jsonrpc string propriety inside the JSON rpc method request. #4742
Conversation
69e3307
to
73a2aac
Compare
I know Spark used not to do this. @shesek does it now? |
Worried about breaking stuff with this change, I mean it is not a big deal this check from a not protocol view. However, I was thinking to have a deprecated period for this? |
As the json rpc specification tell, the "jsonrpc": "2.0" MUST be required. Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Spark uses the I fixed that just now in shesek/lightning-client-js@78e103b and released
Agreed, I think there should be a deprecation period for this. I know that quite a few people still use old releases of Spark. |
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com> Changelog-Deprecated: RPC framwork now require the "jsonrpc" propriety inside the request. Changelog-Fixed: RPC framwork now required the "jsonrpc" propriety to be specified inside each request.
Added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack fe294dc
Thanks everyone, this is great! |
I discovered that my java RPC wrapper has some missing requirements with the jsonrpc 2.0 protocol, and the unusual thing is that it is accepted inside c-lightning a quest without
"jsonrpc":"2.0"
and as specified in the specification protocol the string must be present inside the request.Signed-off-by: Vincenzo Palazzo vincenzopalazzodev@gmail.com