Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running oura dump since slot 66137366 #371

Closed
pedromtcosta opened this issue Aug 1, 2022 · 2 comments
Closed

Error when running oura dump since slot 66137366 #371

pedromtcosta opened this issue Aug 1, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@pedromtcosta
Copy link

I am running into an error when running oura dump from slot 66137366, block 19e2b9f3943874d021d420e65841d6ba12db2b533ea46e5efcf6254e910d8717. I am running Oura 1.5.1:

> oura --version
oura 1.5.1

And this is the command and the error I am getting:

> oura dump relays-new.cardano-mainnet.iohk.io:3001 --bearer tcp --since 66137366,19e2b9f3943874d021d420e65841d6ba12db2b533ea46e5efcf6254e910d8717
{"context":{"block_hash":null,"block_number":null,"certificate_idx":null,"input_idx":null,"output_address":null,"output_idx":null,"slot":null,"timestamp":null,"tx_hash":null,"tx_idx":null},"fingerprint":null,"roll_back":{"block_hash":"19e2b9f3943874d021d420e65841d6ba12db2b533ea46e5efcf6254e910d8717","block_slot":66137366}}
{"block":{"body_size":842,"cbor_hex":null,"epoch":350,"epoch_slot":300571,"era":"Alonzo","hash":"04ed1b98a1f0d6d8c43dc96c42f5d792aeb615892c1005b6c773d239e63f9e9a","issuer_vkey":"2cbecc1f6b1153847f80b5a4d827f73121fac05b63484f8c254f2b96d3e978e9","number":7492516,"previous_hash":"19e2b9f3943874d021d420e65841d6ba12db2b533ea46e5efcf6254e910d8717","slot":66137371,"transactions":null,"tx_count":2},"context":{"block_hash":"04ed1b98a1f0d6d8c43dc96c42f5d792aeb615892c1005b6c773d239e63f9e9a","block_number":7492516,"certificate_idx":null,"input_idx":null,"output_address":null,"output_idx":null,"slot":66137371,"timestamp":1657703662,"tx_hash":null,"tx_idx":null},"fingerprint":null}
{"context":{"block_hash":"04ed1b98a1f0d6d8c43dc96c42f5d792aeb615892c1005b6c773d239e63f9e9a","block_number":7492516,"certificate_idx":null,"input_idx":null,"output_address":null,"output_idx":null,"slot":66137371,"timestamp":1657703662,"tx_hash":"13ac79a68317eb2f67f3224e2eb9fcad7d8b70d202b998af20dd6cce881087ef","tx_idx":0},"fingerprint":null,"transaction":{"fee":2718281,"hash":"13ac79a68317eb2f67f3224e2eb9fcad7d8b70d202b998af20dd6cce881087ef","input_count":1,"inputs":null,"metadata":null,"mint":null,"mint_count":0,"native_witnesses":null,"network_id":null,"output_count":1,"outputs":null,"plutus_data":null,"plutus_redeemers":null,"plutus_witnesses":null,"total_output":7281719,"ttl":null,"validity_interval_start":null,"vkey_witnesses":null}}
{"context":{"block_hash":"04ed1b98a1f0d6d8c43dc96c42f5d792aeb615892c1005b6c773d239e63f9e9a","block_number":7492516,"certificate_idx":null,"input_idx":0,"output_address":null,"output_idx":null,"slot":66137371,"timestamp":1657703662,"tx_hash":"13ac79a68317eb2f67f3224e2eb9fcad7d8b70d202b998af20dd6cce881087ef","tx_idx":0},"fingerprint":null,"tx_input":{"index":0,"tx_id":"f79ff39a3c11d829279fe4c8cc4ebe40ab2e500e60a1ab43f59290679bed8be1"}}
{"context":{"block_hash":"04ed1b98a1f0d6d8c43dc96c42f5d792aeb615892c1005b6c773d239e63f9e9a","block_number":7492516,"certificate_idx":null,"input_idx":null,"output_address":null,"output_idx":0,"slot":66137371,"timestamp":1657703662,"tx_hash":"13ac79a68317eb2f67f3224e2eb9fcad7d8b70d202b998af20dd6cce881087ef","tx_idx":0},"fingerprint":null,"tx_output":{"address":"addr1vyrceuygx8cgd4fe8lhqd8wpf0a5ztwzcq2a99g367wm30q7wj22w","amount":7281719,"assets":[],"datum_hash":null}}
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Error("can only flatten structs and maps (got an enum)", line: 0, column: 0)', src/sinks/stdout/run.rs:16:19
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
ERROR: "error in sink thread"

In fact, I get this error when trying to start Oura from any slot after 66137366 as well, for example, running any of the bellow commands results in the same error:

oura dump relays-new.cardano-mainnet.iohk.io:3001 --bearer tcp --since 66137371,04ed1b98a1f0d6d8c43dc96c42f5d792aeb615892c1005b6c773d239e63f9e9a
oura dump relays-new.cardano-mainnet.iohk.io:3001 --bearer tcp --since 66137373,a312cbeedc1843110646e838bc931f5d2e07df63749d8dc9c1f4d5b2d08fe832
oura dump relays-new.cardano-mainnet.iohk.io:3001 --bearer tcp --since 66137384,6c00532fdfebf2b4f79fa94f6cb155d72ec57f0f0e6de0652164a1b2b28e49cf

The problem doesn't seem to happen when running oura watch ...

@scarmuega scarmuega self-assigned this Aug 2, 2022
@scarmuega scarmuega added the bug Something isn't working label Aug 2, 2022
@scarmuega
Copy link
Member

Thanks for reporting @pedromtcosta!

It turns out that this is the 1st time we encounter an event of type GenesisKeyDelegation. There's a bug in Oura which breaks the json serialization of these type of events.

I'll work on a hotfix ASAP, but in the meantime, a workaround would be to skip these type of events by using the Selection filter.

@pedromtcosta
Copy link
Author

Thank you @scarmuega ! I just tested 1.5.2 and it works now 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants