Bitcoin Forum
May 28, 2024, 09:12:54 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Required field 'fee' missing from dict  (Read 213 times)
Riskdaler (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
July 04, 2020, 08:37:11 PM
 #1

I'm using Electrum 4.0.1 for Windows and have it connected to my own node (myNode) through Tor.

I've been using Electrum for a couple of months, and up until now everything has been working fine. I have only received transactions though. Electrum connects to my node on startup (blue network dot) and fetches transactions successfully. Today I tried to send my first transaction from Electrum and ran into some trouble. As soon as I clicked the Send button, the network icon started toggling between the red dot and the refresh arrows. If I opened the network settings, I could constantly see it toggle between "connected to 1 node" and "not connected". I have checked the log file and found the error "electrum.interface.RequestCorrupted: required field 'fee' missing from dict" repeated multiple times. Anyone recognize this error?

Thanks.
Abdussamad
Legendary
*
Offline Offline

Activity: 3612
Merit: 1564



View Profile
July 05, 2020, 07:32:29 AM
 #2

it requests fee estimates from the server it's connected to. looks like it's not getting those.

have you tried switching servers? you have to right click on a server in the list and choose use server. also you may want to uncheck select server automatically.
Riskdaler (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
July 05, 2020, 07:51:44 AM
 #3

have you tried switching servers? you have to right click on a server in the list and choose use server. also you may want to uncheck select server automatically.

Yes I tried connecting to one of the public servers instead of my own node, and then it worked. When I switch back to my own node, the error reappears. But only while I have an unconfirmed transaction. Today when the transaction has been confirmed, I can once again connect successfully to my own node. The error is also gone from the log. The same thing happened yesterday with another transaction, so apparently I'm having these issues whenever I have an unconfirmed transaction.

Do you think this error originates from Electrum Wallet, Electrum Server or myNode?

Here is some more info from the log if it helps:

Code:
20200704T184102.056899Z |     INFO | network | fee_estimates {25: 994, 10: 994, 5: 1003, 2: 17029}
20200704T184102.674939Z |     INFO | network | fee_histogram [[79.25170135498047, 100352], [55.598567962646484, 100062], [50.89940643310547, 100170], [46.3552131652832, 100048], [45.9424934387207, 100840], [45.80717468261719, 100039], [44.79999923706055, 100193], [43.21098709106445, 102278], [40.14504623413086, 100162], [37.91532897949219, 101269], [34.6002197265625, 101624], [32.62980651855469, 100136], [29.94020652770996, 178030], [25.316455841064453, 100241], [21.20792007446289, 100390], [21.112831115722656, 100076], [20.65949821472168, 100009], [19.113094329833984, 100126], [17.029172897338867, 122417], [16.522851943969727, 143301], [15.834656715393066, 131082], [15.415583610534668, 138268], [13.19444465637207, 100037], [7.136842250823975, 100152], [6.059124946594238, 101897], [5.083333492279053, 100062], [4.767772674560547, 100048], [4.039220333099365, 106306], [4.013888835906982, 100044], [3.623145341873169, 100169], [3.0695652961730957, 100190], [3.036900281906128, 100695], [3.0267856121063232, 100187], [3.0161290168762207, 100082], [3.0124740600585938, 100585], [3.0, 100212], [2.9913876056671143, 101214], [2.983323097229004, 100465], [2.0098092555999756, 131993], [2.004694938659668, 127401], [2.004380702972412, 104443], [2.0041146278381348, 104141], [2.003492593765259, 102181], [2.00292706489563, 133284], [1.2524752616882324, 100199], [1.050553321838379, 108673], [1.0034934282302856, 101114], [0.9947916865348816, 25670]]
20200704T184104.559048Z |    ERROR | interface.[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.onion:50002] | Exception in wrapper_func: RequestCorrupted("required field 'fee' missing from dict")
Traceback (most recent call last):
  File "electrum\util.py", line 1037, in wrapper
  File "electrum\interface.py", line 466, in wrapper_func
  File "electrum\interface.py", line 490, in run
  File "electrum\interface.py", line 630, in open_session
  File "site-packages\aiorpcx\curio.py", line 242, in __aexit__
  File "site-packages\aiorpcx\curio.py", line 211, in join
  File "electrum\synchronizer.py", line 82, in _start_tasks
  File "site-packages\aiorpcx\curio.py", line 242, in __aexit__
  File "site-packages\aiorpcx\curio.py", line 211, in join
  File "electrum\synchronizer.py", line 171, in _on_address_status
  File "electrum\interface.py", line 922, in get_history_for_scripthash
  File "electrum\interface.py", line 118, in assert_dict_contains_field
electrum.interface.RequestCorrupted: required field 'fee' missing from dict
20200704T183953.695381Z |     INFO | network | connecting to xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.onion:50002:s as new interface
20200704T183956.734896Z |     INFO | interface.[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:50002] | connection established. version: ['electrs 0.7.0', '1.4']
20200704T183957.338432Z |     INFO | interface.[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.onion:50002] | set blockchain with height 637700
20200704T183957.340425Z |     INFO | interface.[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.onion:50002] | skipping header 637700
20200704T183957.343374Z |     INFO | network | switching to xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.onion:50002:s
Riskdaler (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
July 07, 2020, 05:06:21 PM
 #4

I have been in contact with myNode regarding this. They don't yet support the latest version of Electrum but will have an update out soon with the latest version of Electrum Server.
saldubiense
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
July 10, 2020, 06:47:37 PM
 #5

For Electrum 4.0.x, you should upgrade your electrs (aka Electrum Server) version. The 0.8.5 electrs version (1 July 2020) fixes this issue with return fee for unconfirmed transactions history.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
July 11, 2020, 08:32:34 PM
 #6

Specifically, you need to make sure that it has this commit: https://github.com/romanz/electrs/commit/e55381fa6643661c0dad2c454415ed997084a13d

You can see in the commit notes (and the associated Electrum git issue) that without this modification, the client will get disconnected from electrs

Hopefully MyNode fix this issue for you, as saldubiense mentioned above, it should be as easy as updating their electrs to the latest version. I was having similar issues with my local version of electrs and Electrum until I updated my local copy of the electrs git to include the latest commits and then rebuilt it.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Riskdaler (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
July 12, 2020, 07:21:43 AM
 #7

Yes myNode has already released an updated version of their software with version 0.8.5 of electrs included. Everything is working now.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!