posthog icon indicating copy to clipboard operation
posthog copied to clipboard

feat(data-exploration): errors in data table

Open mariusandra opened this issue 2 years ago β€’ 3 comments

Problem

The data exploration events table swallowed all errors. No longer!

Changes

Before:

2023-01-13 11 47 01

After:

2023-01-13 11 46 09

Questions

I don't think we're exposing anything secret by passing on the ClickHouse error. However I don't know. Could we leak credentials or anything else this way? πŸ€”

How did you test this code?

Added tests for the backend. Checked the frontend in the browser.

mariusandra avatar Jan 13 '23 10:01 mariusandra

Django tests red❗

Twixes avatar Jan 13 '23 13:01 Twixes

No more!

mariusandra avatar Jan 13 '23 15:01 mariusandra

Perhaps we could use posthog.errors.code.lookup_error_code() to only pass on errors like SYNTAX_ERROR, ILLEGAL_TYPE_OF_ARGUMENT, TYPE_MISMATCH, and such (based on a whitelist)? The rest would be good old 500s.

Twixes avatar Jan 13 '23 16:01 Twixes

This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week.

posthog-bot avatar Jan 23 '23 07:01 posthog-bot

This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week.

posthog-bot avatar Jan 31 '23 07:01 posthog-bot

This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week.

posthog-bot avatar Feb 08 '23 07:02 posthog-bot

This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week.

posthog-bot avatar Feb 16 '23 07:02 posthog-bot