Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

[v1] eth_getTransactionByBlockNumberAndIndex return Internal error #269

Open
gpBlockchain opened this issue Apr 11, 2022 · 3 comments
Open
Assignees
Labels
enhancement New feature or request P-Low

Comments

@gpBlockchain
Copy link

gpBlockchain commented Apr 11, 2022

env:https://godwoken-testnet-web3-v1-rpc.ckbapp.dev

overflow larger than 64 bits

godwoken

guopenglin@MacBook-Pro-2-086b godwoken-kicker % curl --location --request POST 'https://godwoken-testnet-web3-v1-rpc.ckbapp.dev' \
--header 'Content-Type: application/json' \
--data-raw '{
        "jsonrpc":"2.0",
        "method":"eth_getTransactionByBlockNumberAndIndex",
        "params":["0xffffffffffffffff", "0x0"],
        "id":1
}'
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"header not found"}}

eth

guopenglin@MacBook-Pro-2-086b godwoken-kicker % curl --location --request POST 'https://mainnet.infura.io/v3/719d739434254b88ac95d53e2b6ac997' \
--header 'Content-Type: application/json' \
--data-raw '{
        "jsonrpc":"2.0",
        "method":"eth_getTransactionByBlockNumberAndIndex",
        "params":["0xffffffffffffffff", "0x0"],
        "id":1
}'
{"jsonrpc":"2.0","id":1,"error":{"code":-32602,"message":"invalid argument 0: block number larger than int64"}}

overflow larger than int64

godwoken

guopenglin@MacBook-Pro-2-086b godwoken-kicker % curl --location --request POST 'https://godwoken-testnet-web3-v1-rpc.ckbapp.dev' \
--header 'Content-Type: application/json' \
--data-raw '{
        "jsonrpc":"2.0",
        "method":"eth_getTransactionByBlockNumberAndIndex",
        "params":["0xffffffffffffffffff", "0x0"],
        "id":1
}'
{"jsonrpc":"2.0","id":1,"error":{"code":-32603,"message":"Internal error"}}

guopenglin@MacBook-Pro-2-086b godwoken-kicker % curl --location --request POST 'https://godwoken-testnet-web3-v1-rpc.ckbapp.dev' \
--header 'Content-Type: application/json' \
--data-raw '{
        "jsonrpc":"2.0",
        "method":"eth_getTransactionByBlockNumberAndIndex",
        "params":["0xff", "0xffffffffffffff"],
        "id":1
}'
{"jsonrpc":"2.0","id":1,"error":{"code":-32603,"message":"Internal error"}}

eth

guopenglin@MacBook-Pro-2-086b godwoken-kicker % curl --location --request POST 'https://mainnet.infura.io/v3/719d739434254b88ac95d53e2b6ac997' \
--header 'Content-Type: application/json' \
--data-raw '{
        "jsonrpc":"2.0",
        "method":"eth_getTransactionByBlockNumberAndIndex",
        "params":["0xffffffffffffffffff", "0x0"],
        "id":1
}'
{"jsonrpc":"2.0","id":1,"error":{"code":-32602,"message":"invalid argument 0: hex number \u003e 64 bits"}
@Flouse Flouse added the enhancement New feature or request label Apr 11, 2022
@RetricSu RetricSu added the P-Low label Apr 15, 2022
@Flouse Flouse added P-Medium and removed P-Low labels Jun 20, 2022
@gpBlockchain
Copy link
Author

The result of the alphanet test return: "header not found", can it be closed? @Flouse

curl --location --request POST 'https://godwoken-alphanet-v1.ckbapp.dev' \
--header 'Content-Type: application/json' \
--data-raw '{
        "jsonrpc":"2.0",
        "method":"eth_getTransactionByBlockNumberAndIndex",
        "params":["0xffffffffffffffff", "0x0"],
        "id":1
}'
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"header not found"}}

@Flouse
Copy link
Collaborator

Flouse commented Jul 4, 2022

@keroro520
Copy link
Contributor

Hi @gpBlockchain, thanks for reporting. We have figured out the cause of this error and address it as a low-priority bug, as users dont make these requests normally.
Later we will impl eip1474. But now, let's put it into low-priority backlogs.

@Flouse Flouse added P-Low and removed P-Medium labels Jul 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request P-Low
Projects
None yet
Development

No branches or pull requests

4 participants