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

Handle malformed events more gracefully #224

Merged
merged 4 commits into from
Jul 26, 2023

Conversation

kegsay
Copy link
Member

@kegsay kegsay commented Jul 25, 2023

But handle unusual events. With regression test.

@kegsay kegsay added the bug Something isn't working label Jul 25, 2023
@kegsay kegsay requested a review from DMRobertson July 25, 2023 13:42
Comment on lines +458 to +460
logger.Warn().Str("event_id", ev.ID).Err(err).Msg(
"filterAndEnsureFieldsSet: failed to parse event, ignoring",
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably want to log room ID here too.

Copy link
Contributor

@DMRobertson DMRobertson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TestEventTableMembershipDetection is failing. Not sure if related or if it's just a flake?

You should probably also take a look at https://sentry.tools.element.io/organizations/element/issues/69559/?project=56&query=is%3Aunresolved if you haven't already.

json: cannot unmarshal number 18446744073407678578 into Go struct field receiptInfo.content.m.read.ts of type int64

@kegsay kegsay merged commit 750a9c6 into main Jul 26, 2023
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants