sui icon indicating copy to clipboard operation
sui copied to clipboard

sui_getTransactions with batchRequest will get "Invalid request"

Open 0x6368616e67 opened this issue 2 years ago • 1 comments

Steps to Reproduce Issue

use this in testnet :

  curl 'https://fullnode.testnet.sui.io/' \
    -H 'authority: fullnode.testnet.sui.io' \
    -H 'accept: */*' \
    -H 'content-type: application/json' \
    --data-raw '[{"method":"sui_getTransaction","jsonrpc":"2.0","params":["DFe5n2muPiAKSciIVNJzmIK4xBDKIoTVQjInvROWHCQ="],"id":"637eb8cd-ab34-4b87-b9d7-94b5f994fcc6"},{"method":"sui_getTransaction","jsonrpc":"2.0","params":["n6kjn+qAis++p2OnB+77KBgAJIIM7KKCQ/G0qWLu5ew="],"id":"68c9f087-d4f8-456c-b9c3-e59205d607df"},{"method":"sui_getTransaction","jsonrpc":"2.0","params":["Edg0iPqpC6Cpmm0eaIwxY7hAZb0iYkQtAAwTboCqszE="],"id":"75ba1a0a-c632-4695-b2a8-abb2727b7d22"},{"method":"sui_getTransaction","jsonrpc":"2.0","params":["DAFWiQmkWb1MY9gBksmgLqwfgvd+185Igk+/GMNXz5U="],"id":"49d6ef58-d768-4f7a-b91c-3699582852e7"},{"method":"sui_getTransaction","jsonrpc":"2.0","params":["vNGhfpD/iZ8ps/FVrCVtKHVaNOaFh4pVq/E3Kd133EQ="],"id":"745ecd37-1cdd-407b-9ffd-be54542f89a9"},{"method":"sui_getTransaction","jsonrpc":"2.0","params":["ebcAdc1jGISY9zyUm8M2qWB83gbvC4D4cJ9IDEVvmek="],"id":"497a65c2-5541-4126-b31b-6f7884c827a3"},{"method":"sui_getTransaction","jsonrpc":"2.0","params":["gi3CQKbrYhtUrMEWwZomXLd1pkQa0o2xwn4UOp5MQZE="],"id":"a2467176-538e-4e25-a23d-d58e78e6924d"},{"method":"sui_getTransaction","jsonrpc":"2.0","params":["so7Gvj/m1fFBAwPF+cPVD9VDzlALL7M8/PH8oLe+06I="],"id":"ccfcf862-6ce3-4096-9798-2f2854699677"},{"method":"sui_getTransaction","jsonrpc":"2.0","params":["dHzEM/GWGcqrS2hRxHZxrhbmmCVdqFRTE/Duqcr/rk0="],"id":"0d37c729-b8fb-459a-b7bb-b877c869aa52"},{"method":"sui_getTransaction","jsonrpc":"2.0","params":["adYk7yk45vEKylsAp19QvG0ap5o7e6z5KSpcZGQv0wI="],"id":"d99534d0-60e8-4e39-8b4f-7bf65103d9b0"}]' \
    --compressed

and will get

{"jsonrpc":"2.0","error":{"code":-32600,"message":"Invalid request"},"id":null}%

It is very strangeness

ONLY THESE 10 TRANSACTION

if I delete the first or the last sui_getTransaction with transaction, it will get the normal result.

BUT ONLY THIS CURL REUEST

will get error.

I have search every transaction in the explorer. all looks good

0x6368616e67 avatar Dec 01 '22 16:12 0x6368616e67

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Jan 31 '23 02:01 github-actions[bot]

We've disabled batch requests, and added a new multiGetTransactions which should solve this problem.

Jordan-Mysten avatar Mar 28 '23 17:03 Jordan-Mysten