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

fix(batch-exports): Remove zero unicode from error message #27195

Merged
merged 3 commits into from
Dec 31, 2024

Conversation

tomasfarias
Copy link
Contributor

@tomasfarias tomasfarias commented Dec 31, 2024

Problem

In a similar vein to #27179, we must also clean-up any null bytes from our own error messages. Error messages in general could use a revisit, but in the meantime, this will address any PostgreSQL errors.

Changes

  • Replace \x00 byte from latest_error before updating batch export run.

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Does this work well for both Cloud and self-hosted?

How did you test this code?

Added a unit test that fails without this change.

@tomasfarias tomasfarias requested a review from rossgray December 31, 2024 10:34
@tomasfarias tomasfarias enabled auto-merge (squash) December 31, 2024 10:46
@tomasfarias tomasfarias merged commit b1cfb23 into master Dec 31, 2024
92 checks passed
@tomasfarias tomasfarias deleted the fix/clean-up-errors-before-writing-to-db branch December 31, 2024 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants