-
Notifications
You must be signed in to change notification settings - Fork 20.9k
RPC sendTransaction: Known transaction #662
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
Comments
Hi Joris. I'm getting this too. An easy workaround I've found is to alter the amount of gas you want to purchase (i.e., the #!/usr/bin/env ./node_modules/.bin/coffee
web3 = require "web3"
provider = new web3.providers.HttpProvider("http://#{host}:#{port}")
provider.sendAsync
jsonrpc: "2.0"
method: "eth_sendTransaction"
params: [{
from: coinbase
gas: web3.toHex(100000)
gasPrice: web3.toHex(10000),
data: "#{code}"
}]
id: 1
, (err, result) ->
console.log err, result
callback(err, result) If I increment the gas purchase amount by 1, say If you put the above in a script and alter your geth host/port, as well as adding your code to the |
Thanks. I'm guessing the managed nonce isn't properly incremented. I'll have a look tonight |
may be related to #694 (I also see |
This should be fixed in 8310bcd |
On develop 8db7b23 still seeing Known transaction (hex) when calling the RPC method sendTransaction: |
@ethers can you confirm if this is still an issue |
Yes still an issue => #769 |
I am still seeing this issue on develop 8d09f95 |
@obscuren please reopen; still getting this occasionally. |
I am still seeing this. I am testing with a simple contract that holds a counter.
|
Something I noticed is that the (partial) hash that I get in the error message matches a transaction that was already sent (by grepping the log file). |
This should be resolved with #1409. If anyone has the time, please re-test. |
still see this / #1238 on RC2
to repro: just eth_sendTransaction with logging for transaction_pool |
Haven't seen this for ages. Closing |
Just happened to me with web3 and geth v1.5.5-stable. |
Known transaction: 9e2a172c error coming in geth v1.5.7 |
Same here, using geth version 1.5.9. I have a small nodejs program which sends rpc transactions, specifically using the call
|
Same error, geth 1.5.9-stable-a07539fb |
Same error happening on |
I build a private chain, and there is still this problem: {"jsonrpc":"2.0","id":2,"error":{"code":-32000,"message":"known transaction: f8236a44585005362db80b7a5f041f9fa53e6051e4b5f978a06886d4fff9d452"}} ---------------------------------------Version information---------------------------------------------- ---------------------------------------Moreinformation---------------------------------------------- |
@jorisbontje Can you please reopen? The bug is still there, according to all these people. |
I'm seeing it as well on version Some more version information:
UPDATE: It appears I was using incorrect gas values after all, changing that fixed the known transaction bug I was running into. |
Hello Everyone, I am also seeing the same issue can anyone please help. I am creating 4 diffrent transactions with different amounts and i am facing the issue. Help Please. |
Same thing happening to me trying to send an xact interacting with a contract. Can't find a pattern. I retry the same thing until it works. Edit: Issue is incorrect nonce due to a pending transaction. It's most likely not a bug but part of how Ethereum works, though features could be added to help with it. See #2880 |
…ctor swarm/pss: Rename "self" receivers to reflect better their identity
Still happening on Geth/v1.8.7 with web3j 3.4.0 |
Still happening on Geth/v1.8.12-stable with jsonrpc {"code":-32000,"message":"known transaction: *******"}} |
Still happening on Geth/v1.8.14 |
I just got this error on Geth/v1.8.27. Does anyone know how to fix this? |
I got this error .. any fixes? |
Maybe you set the same nonce value,this results in a duplicate hash being generateds, and you need to set the incremental nonce |
…for-canonical-chain-only Applying TxMatches for canonical chain only
Occasionally I am getting the error message
Known transaction (hex)
when calling the RPC methodsendTransaction
. Hard to reproduce, but easiest to make this happen is when I am playingsleth
on autoplay.My
geth
node (develop
version 7c0a18e) is running as:JSON RPC request:
Response:
There are no obvious warnings/errors in the
geth
log.The text was updated successfully, but these errors were encountered: