Author

Topic: unable to send money, error -22 (Read 839 times)

sr. member
Activity: 475
Merit: 252
March 28, 2014, 12:17:10 PM
#6
I'm unable to send btc with electrum, any amount I try gives this error:

error: {u'message': u'TX rejected', u'code': -22}

I have the requested balance & the transaction fee inside my electrum wallet, and also I've tried multiple send-to addresses.

Anyone have a guess what could solve this error?
I'm using the latest osx client, 1.9. It worked for lots of transactions before this error.
Thanks!

Try this:

Run Electrum through the Python command console

Recreate the error.

Read the traces (the last few lines of code before the error.)

Open the file in the trace before the error, find the line of code a few lines above where you hit the error.

Paste in the following code:

Code:
from PyQt4.QtCore import pyqtRemoveInputHook
from pdb import set_trace
pyqtRemoveInputHook()
set_trace()

Recreate the error again, this time the python console will stop the program inbetween whatever lines you're in.

In the console, type in major variables that are being used in the function.

See if any of the variables are weird.

search for hours

give up

wait for someone to fix it...




wait, we were talking about what I do, right? lol :-P

Edit: This is how you step through the code using python debugger

http://docs.python.org/2/library/pdb.html#debugger-commands

Edit 2: It would be nice if we could get more information too. The error message you gave is the default transaction rejected error from the Bitcoin Network, and isn't something specific to Electrum.
The Bitcoin network is mad at you for something... like maybe trying to spend coins freshly mined etc.
sr. member
Activity: 308
Merit: 250
March 27, 2014, 02:09:42 PM
#5
This issue should be fixed in 1.9.3 - Win/Mac builds will be available some time this week.

I'm still getting this error with Electrum 1.9.8 when trying to send Bitcoins:

Code:
error: {u'message': u'TX rejected', u'code': -22}

Does anyone know why this still hasn't been resolved?
newbie
Activity: 46
Merit: 0
November 11, 2013, 02:37:56 PM
#4
This issue should be fixed in 1.9.3 - Win/Mac builds will be available some time this week.
hero member
Activity: 715
Merit: 500
Bitcoin Venezuela
November 10, 2013, 04:55:21 AM
#3
created a new wallet, imported the old private key which had the amount, and the transaction was sent successfully.

just posting this if someone has the same problem, this resolved it.

Can you update the Title of this thread? Thanks
full member
Activity: 134
Merit: 100
November 08, 2013, 09:53:36 AM
#2
created a new wallet, imported the old private key which had the amount, and the transaction was sent successfully.

just posting this if someone has the same problem, this resolved it.
full member
Activity: 134
Merit: 100
November 08, 2013, 09:36:48 AM
#1
I'm unable to send btc with electrum, any amount I try gives this error:

error: {u'message': u'TX rejected', u'code': -22}

I have the requested balance & the transaction fee inside my electrum wallet, and also I've tried multiple send-to addresses.

Anyone have a guess what could solve this error?
I'm using the latest osx client, 1.9. It worked for lots of transactions before this error.
Thanks!
Jump to: