CounterpartyXCP / indexd-server

Bitcoin address index service
MIT License
39 stars 41 forks source link

Indexd returned error: 400 Bad Request "Missing RPC response" #9

Closed mandelmonkey closed 4 years ago

mandelmonkey commented 6 years ago

I made the following request to counterparty api

{"jsonrpc":"2.0","id":0,"method":"search_raw_transactions","params":{"address":"mqKy9agnNopat7WAsyzkgrJr5z5JisSzbz","unconfirmed":true}}

and sometimes the following error is thrown but sometimes it isnt and correct response is returned

{"id": 0, "jsonrpc": "2.0", "error": {"data": {"args": ["Indexd returned error: 400 Bad Request {\"error\":\"Missing RPC response\"}"], "type": "IndexdRPCError", "message": "Indexd returned error: 400 Bad Request {\"error\":\"Missing RPC response\"}"}, "code": -32000, "message": "Server error"}}

jackzampolin commented 6 years ago

@mandelmonkey Do you have txindex=1 enabled on your bitcoind node? That RPC call is not supported by default.

mandelmonkey commented 6 years ago

yes its all set, the error is only sometimes, may have something to do with unconfirmed txs I suspect

chiguireitor commented 4 years ago

Closing as this error isn't seen in production atm