iotaledger / iri

IOTA Reference Implementation
Other
1.15k stars 370 forks source link

Get an error response from GTTA method. #1869

Closed oopsmonk closed 4 years ago

oopsmonk commented 4 years ago

Bug description

Sometimes gets an error response on calling getTransactionsToApprove API, usually 2 out of 10 times. 1.8.5-RELEASE has no this problem.

Version

Which version of IRI are you running?

IOTA network

Which node are you connected to and which IOTA network is it in?

Steps To reproduce the bug

Explain how the maintainer can reproduce the bug.

issue a gtta request via curl in a few times.

$ curl https://nodes.iota.cafe:443 -X POST -H 'Content-Type: application/json' -H 'X-IOTA-API-Version: 1' -d '{"command": "getTransactionsToApprove", "depth": 3}'

Expected behaviour

Get trunk/branch transaction hashes

Actual behaviour

{"error":"com.iota.iri.service.ledger.LedgerException: unexpected error while generating the balance diff","duration":72}
oopsmonk commented 4 years ago

Cannot reproduce on other nodes.