share.SharesAvailable can not be called from other JSON RPC frameworks due to a bug in go-jsonrpc
Celestia Node version
eaa58358b21f9ffbb580de48071e2315e55a2b9c
OS
Linux
Install tools
No response
Others
No response
Steps to reproduce it
Call share.SharesAvailable form JSON RPC clients other than go-jsonrpc. In our case we used jsonrpsee.
Expected result
A response that has result or error field.
Actual result
Server responds with {"jsonrpc":"2.0","id":1}, which is causing deserialization issues on the client side.
Relevant log output
No response
Notes
This is a bug in go-jsonrpc, but reported too here for tracking. Check https://github.com/filecoin-project/go-jsonrpc/issues/102
@oblique is this the case?
If you ask if it's related to https://github.com/filecoin-project/go-jsonrpc/pull/103, then yes
@Wondertan go-jsonrpc just merged a fix for this, I think this can be closed after updating dependencies
https://github.com/filecoin-project/go-jsonrpc/issues/102#event-12741125149