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
Codified first programming block for the connect_to_ethereum.py sample.
Executed the python code.
Expected behavior
I should get the block number and gas price as indicated in the sample.
Actual behavior
I received an invalid url error indicating that the transport was not http.
Traceback (most recent call last):
File "C:/Users/Andy/Documents/GitHub/Pytherium/main.py", line 8, in
RegistryPresenter(get_entries(), EntryView(), EntryInteractor())
File "C:\Users\Andy\Documents\GitHub\Pytherium\Pytherium\Models.py", line 6, in get_entries
latest_block = client.eth.block_number()
File "C:\Users\Andy\Documents\GitHub\Pytherium\venv\lib\site-packages\in3\eth\api.py", line 47, in block_number
return self._factory.get_integer(self._runtime.call(EthMethods.BLOCK_NUMBER))
File "C:\Users\Andy\Documents\GitHub\Pytherium\venv\lib\site-packages\in3\libin3\runtime.py", line 63, in call
raise ClientException(str(error))
in3.exception.ClientException: b'invalid url must sart with http'
Hello @HopkinsAC, can you please try with version 2.4.2 pip install -Iv in3==2.4.2, we are investigating the issue, we will release a new version soon, 2.5.X versions are still under development.
I was able to reproduce it and fix it. The issue was the wrong transport used. When the first client is created all plugin compiled with it will be registered as default and as such, the http-transport (which is only able to handle http, no https) was registered as well, but python uses its own transport-function, which was simply registered too early, so it was overridden with the default. This is fixed now.
I will push a bugfix -release as soon as possible.
Steps to reproduce
Expected behavior
Actual behavior
Traceback (most recent call last):
File "C:/Users/Andy/Documents/GitHub/Pytherium/main.py", line 8, in
RegistryPresenter(get_entries(), EntryView(), EntryInteractor())
File "C:\Users\Andy\Documents\GitHub\Pytherium\Pytherium\Models.py", line 6, in get_entries
latest_block = client.eth.block_number()
File "C:\Users\Andy\Documents\GitHub\Pytherium\venv\lib\site-packages\in3\eth\api.py", line 47, in block_number
return self._factory.get_integer(self._runtime.call(EthMethods.BLOCK_NUMBER))
File "C:\Users\Andy\Documents\GitHub\Pytherium\venv\lib\site-packages\in3\libin3\runtime.py", line 63, in call
raise ClientException(str(error))
in3.exception.ClientException: b'invalid url must sart with http'
System configuration
Windows 10 Home
Python 3.8.5
PyCharm Community 2020.2
Incubed version
in3-2.5.4
Request
Incubed Configuration
pip3 install in3
Chain
The text was updated successfully, but these errors were encountered: