liftedinit / yaci

Yet Another Cosmos Indexer
Apache License 2.0
6 stars 3 forks source link

Crash when `TxResponse.raw_log` contains invalid UTF-8 #25

Closed fmorency closed 1 week ago

fmorency commented 1 week ago

The Manifest testnet failed transaction on block 348600 is causing a crash

https://testnet.manifest.explorers.guru/transaction/5B894E5A785C1F15BE6397911BF4849CECE0448DD62FFB9BE161EBE20C81F48D?height=348600

Sanitize raw_log

fmorency commented 1 week ago

The issue stems from https://github.com/cosmos/cosmos-sdk/issues/22414.

As a workaround, we handle the field as bytes instead of a string resulting in a base64-encoded value in the database.