stellard icon indicating copy to clipboard operation
stellard copied to clipboard

Passing limit: -1 to an account_tx rpc call produces an "internal error" response

Open nullstyle opened this issue 10 years ago • 0 comments

Example output:

> curl -X POST https://live.stellar.org:9002 -d '
quote> {
quote>   "method": "account_tx",
quote>   "params": [
quote>     {
quote>       "account": "gEisv5HcJTbp6D1vxUdh5dPUrDGyuUxM4u",
quote>       "limit": -1
quote>     }
quote>   ]
quote> }'
{
   "result" : {
      "error" : "internal",
      "error_code" : 62,
      "error_message" : "Internal error.",
      "request" : {
         "account" : "gEisv5HcJTbp6D1vxUdh5dPUrDGyuUxM4u",
         "command" : "account_tx",
         "limit" : -1
      },
      "status" : "error"
   }
}

I would expect stellard to return a more descriptive error.

nullstyle avatar Oct 03 '14 18:10 nullstyle