swapper-org / NodeChain

Nodechain is a service that allows you to create nodes on a blockchain and connect to them natively through APIs. The goal is to allow the user to build their own nodes natively without having to rely on external services.
MIT License
7 stars 5 forks source link

Error in `getTransactions` method response #143

Closed hippocampusSwapper closed 2 years ago

hippocampusSwapper commented 2 years ago

Issue

With this request:

curl 'https://server.nodechain.net/eth/testnet/rpc' \
  -H 'Accept: application/json, text/plain, */*' \
  -H 'Accept-Language: es,en-GB;q=0.9,en-US;q=0.8,en;q=0.7' \
  -H 'Access-Control-Allow-Origin: *' \
  -H 'Connection: keep-alive' \
  -H 'Content-Type: application/json' \
  -H 'Origin: http://localhost:1212' \
  -H 'Referer: http://localhost:1212/' \
  -H 'Sec-Fetch-Dest: empty' \
  -H 'Sec-Fetch-Mode: cors' \
  -H 'Sec-Fetch-Site: cross-site' \
  -H 'Sec-GPC: 1' \
  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36' \
  --data-raw '{"params":{"txHashes":["0xfd493ba514c6e1975d1166f41863a399a26c621b4a409facab22af1d3fddbb35","0x34729acd1c2d6fc9e7df265bc752e75472aa9b51f213a70d42732158465fe25f","0x2d335d52421f153734a12f4277cd8099bba862d76ce4aca3dad7462fc3a961bf","0xdff0de099ea5b3c29f5753042718992b66d4456ccd2324f89e0167e09d7e3d73","0x6f65d5f6ea85fcf2045570d36dcc3be9a4f283e2df7a551a70b636407afd9705","0xabd3fa55f6dcca657213eb924e6709329261969a6e86fe4e41e072a14d2e7690","0xcfc4b011188db643df2dc5b6b5f389c4c667dd0a256ba9b581cbf1276e11cf23","0x153ce0ebeb58a5c00467d88378eac2f06d6f8bc94629e27de434fface93935b4","0x0bfddeee97c88be35c1469e1253e8779897b3a4289dab7df28a2fae348a70c4b","0x9d303a96a3182b1a9a0a662e303621e641f9572c23351c8d44f1934bb3fade60"]},"method":"getTransactions","id":1,"jsonrpc":"2.0"}' \
  --compressed

Node response with:

{
    "id": 1,
    "jsonrpc": "2.0",
    "error": {
        "code": 400,
        "message": "None is not of type 'string'"
    }
}