-
Notifications
You must be signed in to change notification settings - Fork 577
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
JsonRpcServer does not support most method parameter types #378
Comments
The RPC client and server in this library primarly serve as examples. Feel free to look into a PR. |
A test case reproducing the issue would be a useful first step. And as suggested by @michaelklishin, a PR would be even better. |
This was referenced Mar 16, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
JsonRpcServer
correctly resolves RPC requests for methods with any of the following parameter types:String
List
Map
But not for methods with any other parameter types (actually, strangely it also works with
Integer
andDouble
, but not withLong
).So, for example, a method that has a
Set
orDate
parameter cannot be called through RPC viaJsonRpcClient
andJsonRpcServer
. It results in the server returning the following"argument type mismatch"
error message:On the other hand, return values of any type are passed to the RPC client correctly. The issue occurs only if the method has parameter types other than any of the above basic types.
This has also been asked by someone else on StackOverflow.
Versions:
The text was updated successfully, but these errors were encountered: