stellar-deprecated / stellard

INACTIVE. Server in the Stellar network. Maintains the distributed ledger. Introduces and validates transactions. This repo is not in active development, it is being replaced by stellar-core.
Other
270 stars 60 forks source link

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

Open nullstyle opened 10 years ago

nullstyle commented 10 years ago

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.