Closed khssnv closed 5 years ago
@strdn https://web3py.readthedocs.io/en/stable/middleware.html#geth-style-proof-of-authority could help to fix it.
@strdn https://web3py.readthedocs.io/en/stable/middleware.html#geth-style-proof-of-authority could help to fix it.
Hey there, i have a similar problem.
while trying to connect to publish a smart contract to Rinkeby ( while using Web3.py, Infura and Remix ) i get the extra data error
i don't know how to deploy this middle-ware WITHOUT using geth. is it possible to avoid using geth ?
Hello @SyedMuhamadYasir, unfortunately no, Rinkeby is geth-only network. But web3py has middleware hook to work with it.
Hello @SyedMuhamadYasir, unfortunately no, Rinkeby is geth-only network. But web3py has middleware hook to work with it.
i see.
can you please refer a step by step guide to me, which could help me hook the middleware to the web3.py ?
I am actually quite confused on how to approach the issue of connecting web3.py to Rinkeby.
i have installed Geth but i am at a loss on how to use the Rinkeby network through geth, while using web3.py as a rough front-end to make calls to the smart contract. ( i'm not sure my machine can handle the load of being a full node )
any help or guidance you can provide is much appreiciated @akru !
@SyedMuhamadYasir, you can see how to use this hook in project sources:
Discussion is off topic, close.
Please find signer node log below.
cat ~/.ros/log/latest/liability-infochan-eth-signer-4.log
```console [rospy.client][INFO] 2019-05-26 16:43:36,953: init_node, name[/liability/infochan/eth/signer], pid[55163] [xmlrpc][INFO] 2019-05-26 16:43:36,953: XML-RPC server binding to 0.0.0.0:0 [xmlrpc][INFO] 2019-05-26 16:43:36,961: Started XML-RPC server [http://iotipciAira:33251/] [rospy.init][INFO] 2019-05-26 16:43:36,961: ROS Slave URI: [http://iotipciAira:33251/] [rospy.impl.masterslave][INFO] 2019-05-26 16:43:36,961: _ready: http://iotipciAira:33251/ [rospy.registration][INFO] 2019-05-26 16:43:36,962: Registering with master node http://localhost:11311 [xmlrpc][INFO] 2019-05-26 16:43:36,962: xml rpc node: starting XML-RPC server [rospy.init][INFO] 2019-05-26 16:43:37,061: registered with master [rospy.rosout][INFO] 2019-05-26 16:43:37,062: initializing /rosout core topic [rospy.rosout][INFO] 2019-05-26 16:43:37,068: connected to core topic /rosout [rospy.simtime][INFO] 2019-05-26 16:43:37,074: /use_sim_time is not set, will not subscribe to simulated time [/clock] topic [rospy.internal][INFO] 2019-05-26 16:43:37,287: topic[/rosout] adding connection to [/rosout], count 0 [rospy.internal][INFO] 2019-05-26 16:43:39,770: topic[/liability/infochan/eth/signing/result] adding connection to [http://iotipciAira:34325/], count 0 [rospy.internal][INFO] 2019-05-26 16:43:39,818: topic[/liability/infochan/eth/sending/demand] adding connection to [/liability/infochan/ipfs_channel], count 0 [rospy.internal][INFO] 2019-05-26 16:43:39,819: topic[/liability/infochan/eth/sending/offer] adding connection to [/liability/infochan/ipfs_channel], count 0 [rospy.internal][INFO] 2019-05-26 16:43:39,820: topic[/liability/infochan/eth/sending/result] adding connection to [/liability/infochan/ipfs_channel], count 0 [rospy.internal][INFO] 2019-05-26 16:48:07,856: topic[/liability/infochan/eth/sending/offer] adding connection to [/rostopic_62361_1558874887707], count 1 [rospy.internal][INFO] 2019-05-26 16:49:11,160: topic[/liability/infochan/eth/signing/demand] adding connection to [http://iotipciAira:43139/], count 0 [rospy.internal][INFO] 2019-05-26 16:49:11,163: topic[/liability/infochan/eth/signing/offer] adding connection to [http://iotipciAira:43139/], count 0 [rospy.internal][ERROR] 2019-05-26 16:49:23,663: Unable to initiate TCP/IP socket to iotipciAira:42483 (http://iotipciAira:43139/): Traceback (most recent call last): File "/nix/store/7nqfy4nck72grhii35kw2pkqvya04x93-rospy-1.14.4/lib/python3.7/site-packages/rospy/impl/tcpros_base.py", line 558, in connect self.read_header() File "/nix/store/7nqfy4nck72grhii35kw2pkqvya04x93-rospy-1.14.4/lib/python3.7/site-packages/rospy/impl/tcpros_base.py", line 653, in read_header self._validate_header(read_ros_handshake_header(sock, self.read_buff, self.protocol.buff_size)) File "/nix/store/7nqfy4nck72grhii35kw2pkqvya04x93-rospy-1.14.4/lib/python3.7/site-packages/rospy/impl/tcpros_base.py", line 596, in _validate_header raise TransportInitError("remote error reported: %s"%header['error']) rospy.exceptions.TransportInitError: remote error reported: node shutting down [rospy.internal][ERROR] 2019-05-26 16:49:23,666: Unable to initiate TCP/IP socket to iotipciAira:42483 (http://iotipciAira:43139/): Traceback (most recent call last): File "/nix/store/7nqfy4nck72grhii35kw2pkqvya04x93-rospy-1.14.4/lib/python3.7/site-packages/rospy/impl/tcpros_base.py", line 558, in connect self.read_header() File "/nix/store/7nqfy4nck72grhii35kw2pkqvya04x93-rospy-1.14.4/lib/python3.7/site-packages/rospy/impl/tcpros_base.py", line 653, in read_header self._validate_header(read_ros_handshake_header(sock, self.read_buff, self.protocol.buff_size)) File "/nix/store/7nqfy4nck72grhii35kw2pkqvya04x93-rospy-1.14.4/lib/python3.7/site-packages/rospy/impl/tcpros_base.py", line 596, in _validate_header raise TransportInitError("remote error reported: %s"%header['error']) rospy.exceptions.TransportInitError: remote error reported: node shutting down [rospy.internal][WARNING] 2019-05-26 16:49:24,665: Unknown error initiating TCP/IP socket to iotipciAira:42483 (http://iotipciAira:43139/): Traceback (most recent call last): File "/nix/store/7nqfy4nck72grhii35kw2pkqvya04x93-rospy-1.14.4/lib/python3.7/site-packages/rospy/impl/tcpros_base.py", line 556, in connect self.socket.connect((dest_addr, dest_port)) ConnectionRefusedError: [Errno 111] Connection refused [rospy.internal][INFO] 2019-05-26 16:49:24,665: topic[/liability/infochan/eth/signing/demand] removing connection to http://iotipciAira:43139/ [rospy.internal][WARNING] 2019-05-26 16:49:24,667: Unknown error initiating TCP/IP socket to iotipciAira:42483 (http://iotipciAira:43139/): Traceback (most recent call last): File "/nix/store/7nqfy4nck72grhii35kw2pkqvya04x93-rospy-1.14.4/lib/python3.7/site-packages/rospy/impl/tcpros_base.py", line 556, in connect self.socket.connect((dest_addr, dest_port)) ConnectionRefusedError: [Errno 111] Connection refused [rospy.internal][INFO] 2019-05-26 16:49:24,667: topic[/liability/infochan/eth/signing/offer] removing connection to http://iotipciAira:43139/ [rospy.internal][INFO] 2019-05-26 16:52:04,929: topic[/liability/infochan/eth/signing/demand] adding connection to [http://iotipciAira:36735/], count 0 [rospy.internal][INFO] 2019-05-26 16:52:04,932: topic[/liability/infochan/eth/signing/offer] adding connection to [http://iotipciAira:36735/], count 0 [rosout][ERROR] 2019-05-26 16:52:15,464: Failed to get nonce by address 0xE59E92C7fD8494b926C8957359a687d094620e84 with exception: The field extraData is 97 bytes, but should be 32. It is quite likely that you are connected to a POA chain. Refer http://web3py.readthedocs.io/en/stable/middleware.html#geth-style-proof-of-authority for more details. The full extraData is: HexBytes('0xd683010900846765746886676f312e3132856c696e7578000000000000000000166baec917c27b156ef74fd648a5b200751bcd9d005108d4396af940141b9d291c119d9044bf4c77d36c642667889f3f57259c2900be18c9b36f4711f74c6ca301') [rosout][ERROR] 2019-05-26 16:52:15,468: bad callback: