Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Metamask: RLP Decode Fails #52

Closed
thomas-nguy opened this issue May 27, 2021 · 5 comments
Closed

Metamask: RLP Decode Fails #52

thomas-nguy opened this issue May 27, 2021 · 5 comments

Comments

@thomas-nguy
Copy link
Contributor

thomas-nguy commented May 27, 2021

System info:
Macos
Steps to reproduce:

Not sure if I am something wrong, but if I try to send an amount using metamask, the transaction fails.

The logs from the node give me :

ERRO[0017] transaction RLP decode failed                 error="rlp: input string too long for uint64, decoding into (types.MsgEthereumTx)(*types.TxData).GasLimit" module=json-rpc
  1. Start the node
  2. Setup metamask with a valid account with initial amount. I setup gas limit with 21000 (min amount) and gas fee to 50
  3. Send 1 photon to another address

Expected behavior:

Transaction Success

Actual behavior: [What actually happened]

Error decoding the transaction

@thomas-nguy
Copy link
Contributor Author

Some update

With latest branch. I am able to send the transaction with metamask without errors. But somehow the balance is not updated (transaction is not going through?)

I will keep investigating

@thomas-nguy
Copy link
Contributor Author

After investigation, I found that the tx is not broadcasted for some reason

@fedekunze
Copy link
Contributor

thanks @thomas-nguy, can you paste any relevant logs?

@thomas-nguy
Copy link
Contributor Author

thomas-nguy commented Jun 2, 2021

Actually there is no error.

The rpc endpoint (send_rawtx) seems to work and the broadcast asyncCtx.BroadcastTx(txBytes) returns no errors.

But if I put a breakpoint or a log in the handler. I can see that it never goes through.

My node is showing this log sometime

E[2021-06-02|16:07:08.226] Failed to read request                       module=rpc-server protocol=websocket remote=127.0.0.1:57180 err="websocket: close 1006 (abnormal closure): unexpected EOF"
I[2021-06-02|16:07:08.226] Stopping wsConnection service                module=rpc-server protocol=websocket remote=127.0.0.1:57180 impl=wsConnection
E[2021-06-02|16:07:08.226] error while stopping connection              module=rpc-server protocol=websocket error="already stopped"
E[2021-06-02|16:07:08.347] Failed to read request                       module=rpc-server protocol=websocket remote=127.0.0.1:57181 err="websocket: close 1006 (abnormal closure): unexpected EOF"
I[2021-06-02|16:07:08.347] Stopping wsConnection service                module=rpc-server protocol=websocket remote=127.0.0.1:57181 impl=wsConnection
E[2021-06-02|16:07:08.347] error while stopping connection              module=rpc-server protocol=websocket error="already stopped"

I wonder if it is related?

@thomas-nguy
Copy link
Contributor Author

I close this issue because the root cause is the same as #79

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

No branches or pull requests

2 participants