spesmilo / electrum

Electrum Bitcoin Wallet
https://electrum.org
MIT License
7.44k stars 3.09k forks source link

Not Connected in v4.1.2 #7193

Open akselite opened 3 years ago

akselite commented 3 years ago

This Problem is on windows 10 64bit

TypeError: 'NoneType' object is not subscriptable E/i | interface.[165.73.108.186:50005] | Exception in run: TypeError("'NoneType' object is not subscriptable") Traceback (most recent call last):

SomberNight commented 3 years ago

Do you have the rest of the traceback (the next few lines)?

akselite commented 3 years ago

I think that problem is avg antivirus ...? image

E/i | interface.[165.73.108.186:50005] | Exception in run: TypeError("'NoneType' object is not subscriptable")
Traceback (most recent call last):
  File "electrum\util.py", line 1091, in wrapper
  File "electrum\interface.py", line 487, in wrapper_func
  File "electrum\interface.py", line 505, in run
  File "electrum\interface.py", line 469, in _get_ssl_context
  File "electrum\interface.py", line 429, in _try_saving_ssl_cert_for_first_time
  File "electrum\interface.py", line 543, in _save_certificate
  File "electrum\interface.py", line 564, in _fetch_certificate
  File "aiorpcx\rawsocket.py", line 166, in __aenter__
  File "electrum\interface.py", line 254, in create_connection
  File "aiorpcx\rawsocket.py", line 162, in create_connection
  File "asyncio\base_events.py", line 1050, in create_connection
  File "asyncio\base_events.py", line 1080, in _create_connection_transport
  File "asyncio\sslproto.py", line 529, in data_received
  File "asyncio\sslproto.py", line 192, in feed_ssldata
  File "asyncio\sslproto.py", line 656, in _on_handshake_complete
  File "aiorpcx\rawsocket.py", line 80, in connection_made
TypeError: 'NoneType' object is not subscriptable
SomberNight commented 3 years ago

I see, thanks, so it's raising here: https://github.com/kyuupichan/aiorpcX/blob/d658f7c97bbadfe1bcbf594e3906e0c51c102d9c/aiorpcx/rawsocket.py#L79-L80

AFAIU the python docs, this suggests some error with the connection: https://docs.python.org/3/library/asyncio-protocol.html#asyncio.BaseTransport.get_extra_info

'peername': the remote address to which the socket is connected, result of socket.socket.getpeername() (None on error)

@kyuupichan you might be interested in this. (this is on Windows, python 3.8.8, aiorpcx 0.18.7)


@akselite

akselite commented 3 years ago

Hello @SomberNight thank for your reply. i tried all of server is not work. Previous versions is work ok but now all of versions are not connected .

polaris1205 commented 3 years ago

I have a similar problems of connectivity ever since version 4.1.0.

I am on Windows 7 (very old laptop), and I use Tor to connect to my own node remotely.

However, in versions 4.1.0 and 4.1.2, it doesn't connect, and I couldn't find any information as to why. My settings remain the same, and it works fine in version 4.0.5.

Any help would be appreciated, as I would like to upgrade to the latest version fo Electrum.

SomberNight commented 3 years ago

@polaris1205 please check debug logs. Unless you have the same traceback, it is a different issue.