Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data did not match any variant of untagged enum ElectrumRpcResponseEnum #2134

Closed
cipig opened this issue Jun 6, 2024 · 2 comments
Closed

Comments

@cipig
Copy link
Member

cipig commented Jun 6, 2024

when i enable XEC with these electrums
curl --url "http://127.0.0.1:7783" --data "{\"method\":\"electrum\",\"coin\":\"XEC\",\"servers\":[{\"url\":\"electrum.bitcoinabc.org:50002\",\"protocol\":\"SSL\",\"disable_cert_verification\":true},{\"url\":\"fulcrum.pepipierre.fr:50002\",\"protocol\":\"SSL\",\"disable_cert_verification\":true}],\"userpass\":\"$userpass\",\"mm2\":1}"
i see this error in log
coins::utxo::rpc_clients:2588] ERROR data did not match any variant of untagged enum ElectrumRpcResponseEnum
and it takes much longer for the enable call then on other coins
later, XEC works fine, i see balance and swaps work
the servers are from https://1209k.com/bitcoin-eye/ele.php?chain=xec, we use the same in the GUIs
they don't use Electrumx software, but Fulcrum
i checked on Linux CLI by calling blockchain.headers.subscribe like that:
(echo '{ "id": 1, "method": "blockchain.headers.subscribe" }'; sleep 2) | ncat --ssl fulcrum.pepipierre.fr 50002
i get the correct response, like on other electrumx electrums, eg {"id":1,"jsonrpc":"2.0","result":{"height":847844,"hex":"0040c8335b43930656bf3e3817af66bcd1eedb8974d1edeac91b1f090000000000000000d99527b1a16d73ac0e11705f3fca325f49090acba6c7390c6828b31c25e683dd07e1616669cf271834fc3d62"}} but the call does not return to shell, i need to Ctrl+C... this is different then on other electrums and could explain why it takes much longer to enable XEC

@shamardy
Copy link
Collaborator

@cipig is this still the case after #1966 ?

@cipig
Copy link
Member Author

cipig commented Oct 25, 2024

@cipig is this still the case after #1966 ?

yes, getting this in logs every 2 minutes:

25 15:25:57, coins::utxo::rpc_clients::electrum_rpc::connection:699] INFO electrum.bitcoinabc.org:50002 is now connected via SSL *with disabled certificate verification*.
25 15:26:02, coins::utxo::rpc_clients::electrum_rpc::connection:301] ERROR data did not match any variant of untagged enum ElectrumRpcResponseEnum
25 15:26:21, coins::utxo::rpc_clients::electrum_rpc::client:426] WARN [coin=XEC], Error while sending request to electrum.bitcoinabc.org:50002: Transport("20s timed out waiting for the future to complete")
25 15:26:21, coins::utxo::rpc_clients::electrum_rpc::connection:707] ERROR electrum.bitcoinabc.org:50002 connection dropped due to: Temporary("Sender disconnected")

but only happens with this particular server (electrum.bitcoinabc.org with Fulcrum 1.5.0) from https://1209k.com/bitcoin-eye/ele.php?chain=xec, while the other 2 with Fulcrum 1.9.8 are fine
BCH, which also uses electrum servers with Fulcrum are fine too, those have Fulcrum 1.11.0
so it's related to the old version of Fulcrum on that particular server... will remove it from coins repo and closing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants