Describe the bug
When using a dict in the rpc params, the server returns {'jsonrpc': '2.0', 'id': 35342, 'error': {'code': -32602, 'message': 'Invalid method param(s).'}}.
Steps to reproduce
File server.py:
from ucall.posix import Server
server = Server(
port=8545,
)
@server
def foo(person: dict):
print(f"[RCV] prepare {person=}", flush=True)
server.run()
File client.py:
from ucall.client import Client
params = {
"firstname": "John",
"lastname": "Doe",
}
client = Client(port=8545)
res = client.foo(person=params)
print(f"[CLIENT] client.foo returned {res.data=}", flush=True)
Expected behavior
Should serialize/deserialize the dict from/to JSON.
UCall version
0.5.4
Operating System
Ubuntu 20.04
Hardware architecture
x86
Which interface are you using?
Official Python bindings
Which implementation are you using?
POSIX
Contact Details
No response
Is there an existing issue for this?
Code of Conduct
Describe the bug
When using a
dictin the rpc params, the server returns{'jsonrpc': '2.0', 'id': 35342, 'error': {'code': -32602, 'message': 'Invalid method param(s).'}}.Steps to reproduce
File
server.py:File
client.py:Expected behavior
Should serialize/deserialize the dict from/to JSON.
UCall version
0.5.4
Operating System
Ubuntu 20.04
Hardware architecture
x86
Which interface are you using?
Official Python bindings
Which implementation are you using?
POSIX
Contact Details
No response
Is there an existing issue for this?
Code of Conduct