spesmilo / electrum

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

Error with no log for gettransaction #8439

Open singpolyma opened 1 year ago

singpolyma commented 1 year ago

electrum gettransaction 3d7da65aea8c5d2360ad25f309504eef3bcc6d1857512e08ca814747098dcc78 prints "The server returned an error." but nothing prints in the log file and even with -v or -vdebug I get no more details in the console.

https://www.blockchain.com/explorer/transactions/btc/3d7da65aea8c5d2360ad25f309504eef3bcc6d1857512e08ca814747098dcc78 shows the transaction as currently in mempool, but usually I can still see such transactions?

SomberNight commented 1 year ago

The error message is arbitrary text coming from the (often untrusted) server, so it is simplest to just hide it from the user completely :/ I've added some logging in https://github.com/spesmilo/electrum/commit/fd41308c6b616a32e766528392ced282ed9416d7

BTW that tx is quite deep in the mempool, maybe the server you are connected to simply does not have it.