codex-storage / nim-codex

Decentralized Durability Engine
https://codex.storage
Apache License 2.0
69 stars 25 forks source link

[BUG] Crash: attempt to complete future more than once. #962

Open benbierens opened 1 month ago

benbierens commented 1 month ago

Application crashed with exception in async-proc. Seen in v0.1.6 - Autoclient run.

Unhandled exception in async proc, aborting topics="codex" tid=3841 msg="

An attempt was made to complete a Future more than once. Details: Future ID: 132808371808528 Creation location: submitted.nim(29) [unspecified] First completion location: submitted.nim(31) [unspecified] Second completion location: submitted.nim(31) [unspecified]

"

AuHau commented 1 month ago

By any chance would you have the RequestId from the log message here: https://github.com/codex-storage/nim-codex/blob/master/codex/purchasing/states/submitted.nim#L26

I am not sure, but the only thing I can think of is that there is something funky in contracts so would like to see the emitted events for this request id.