-
Notifications
You must be signed in to change notification settings - Fork 1
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
Tracelistener bug: invalid UTF-8 sequence #794
Comments
By rejecting the trace during the processing phrase, we allow an other processor to handle it, and we also prevent a database error that occurs during the insert when the unmarshaled coin contains invalid UTF-8 characters (see EmerisHQ/demeris-backend#794)
By rejecting the trace during the processing phrase, we allow an other processor to handle it, and we also prevent a database error that occurs during the insert when the unmarshaled coin contains invalid UTF-8 characters (see EmerisHQ/demeris-backend#794).
OK it appears EmerisHQ/tracelistener#127 did not fix the issue (we realized that with Dor when I was presenting the change!). Indeed in case of a write operation and an unmarshal error on We found the root cause of invalid UTF-8 characters, it's a trace representing a delete operation of a custom iris mod, that is wrongly interpreted as a bank balance trace in the TL. In a real delete bank balance trace, the value is empty, so we have a specific case to retrieve the denom from key, while we used to read it from the value for write operation. But since the trace is actually not a balance key, the key doesn't contain the denom, and so the We need to discuss about a fix. I have some ideas:
[0] https://github.com/EmerisHQ/tracelistener/blob/7da0f0e8c763fa81bb84c790f1cfccc638df47b0/tracelistener/processor/cw20_balance.go#L74-L77 |
It happened on the Iris chain in prod that a transaction couldn't be executed because of an "invalid UTF-8 sequence".
Original slack thread reporting this: https://allinbits.slack.com/archives/C02AXJ0K9F1/p1652956514666829.
Error log:
DoD
The text was updated successfully, but these errors were encountered: