-
Notifications
You must be signed in to change notification settings - Fork 24
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
Unable to get rpc data #42
Comments
Hello @unparalleled-js Thank you for reporting (and debugging). I will try to run some tests here and see what that is about. |
Hello again @unparalleled-js So what was happening was that in the python transport we were getting the method (http verb) to fill in the dictionary as a byte array (or uint8*).
The problem is that internally urllib expect that to be a string. There is a method validator somewhere within the package that uses a regex to validate it (possibly to check if it is a valid http verb). Since it was an array of byte, itd blow up on the invoke of
In general, id prefer to have it as a
and set it as the transport function in the Client creation. Since we are wrapping up the btc signers, the fix will be pushed in the same release. I believe this regression was introduced as a consequence of the zksync wallet. |
Steps to reproduce
Using python,
Digging in, it looks like it is trying to use
json.loads()
on a bytes value of a boolean.rpc_api.py
, line 142 returns the bytes boolean fromresponse.value
andruntime.py
trys to calljson.loads()
on it. I am not sure by observing the data what is supposed to be happening.Expected behavior
I should get a dict response representing the json-rpc data
Actual behavior
It errors
System configuration
Incubed version
3.3.2
Request
I have tried
block_numer()
andgas_price()
Incubed Configuration
default
Chain
mainnet
andgoerli
The text was updated successfully, but these errors were encountered: