You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Received an error, while trying to connect to the Kovan network and reasssign client variable.(it crashes not on the reassignment, but on the call of block_number method)
Expected behavior
Successful connection to another network, and work with it.
Actual behavior
Error:
Traceback (most recent call last):
File "test.py", line 15, in
latest_block = client.eth.block_number()
File "/home/konst/PycharmProjects/registrar/venv/lib/python3.7/site-packages/in3/eth/api.py", line 47, in block_number
return self._factory.get_integer(self._runtime.call(EthMethods.BLOCK_NUMBER))
File "/home/konst/PycharmProjects/registrar/venv/lib/python3.7/site-packages/in3/libin3/runtime.py", line 63, in call
raise ClientException(str(error))
in3.exception.ClientException: b"argument should be integer or bytes-like object, not 'str'"
it is not important, it crashes on all transitions from one chain to another
The text was updated successfully, but these errors were encountered:
BritikovKI
changed the title
Change client from one to another doesn't seem to work
Change client network from one to another doesn't seem to work on Python
Aug 9, 2020
Thanks for reporting. I tested the example on mac and on ubuntu with the latest in3 version (3.0.1) and it worked. Maybe you can retest it after pip3 install -U in3.
@BritikovKI Investigating the issue further, it is a bug in Python's http.client.HTTPConnection Sockets handling. We moved away from it in the 3.0.1 to use urllib.
Steps to reproduce
Expected behavior
Successful connection to another network, and work with it.
Actual behavior
Error:
System configuration
LinuxMint 19.3 (tricia). Kernel 5.3.0-62.
Python: 3.7
Incubed version
Latest version for pip
Request
eth.block_number()
Incubed Configuration
default
Chain
it is not important, it crashes on all transitions from one chain to another
The text was updated successfully, but these errors were encountered: