spesmilo / electrum

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

server violated protocol-version-negotiation. server is sending protocol version as a float instead of str #7275

Open Squidben1 opened 3 years ago

Squidben1 commented 3 years ago

Running using electrum -v shows

I/n | network | connecting to 127.0.0.1:50002:s as new interface
I/i | interface.[127.0.0.1:50002] | disconnecting due to GracefulDisconnect("server violated protocol-version-negotiation. we asked for '1.4', they sent 1.4",)
I/n | network | couldn't launch iface 127.0.0.1:50002:s -- CancelledError()

It continues trying to reconnect forever giving the same error every time

SomberNight commented 3 years ago

What server software are you connecting to? Looks like it is sending the protocol version as a floating point number, instead of a string. This is a protocol violation (https://electrumx-spesmilo.readthedocs.io/en/latest/protocol-methods.html#server-version).

Squidben1 commented 3 years ago

What server software are you connecting to? Looks like it is sending the protocol version as a floating point number, instead of a string. This is a protocol violation (https://electrumx-spesmilo.readthedocs.io/en/latest/protocol-methods.html#server-version).

Im using Electrum Personal Server

SomberNight commented 3 years ago

Im using Electrum Personal Server

What version specifically?

@chris-belcher any idea?

chris-belcher commented 3 years ago

While version of Electrum Personal Server are you using? The latest is Release 0.2.1.1, try updating to the latest version. I remember this bug being fixed over a year ago. It hasn't been a bug for a while https://github.com/chris-belcher/electrum-personal-server/blob/d31fa2d0ab47cb0d3d0d0f071e00fe90d247e603/electrumpersonalserver/server/electrumprotocol.py#L451