celestiaorg / celestiaorg/celestia-node
share.SharesAvailable can not be called from other JSON RPC frameworks due to a bug in go-jsonrpc
- Dominant language
- Go
- Stars
- 996
- Forks
- 1.1k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 34
Description
### 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](https://github.com/paritytech/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
Contributor guide
Assessment
This issue has not been assessed yet.