PostHog / posthog

🦔 PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.
https://posthog.com
Other
19.45k stars 1.14k forks source link

Cohort.DoesNotExist: Cohort matching query does not exist. #23386

Closed sentry-io[bot] closed 5 days ago

sentry-io[bot] commented 6 days ago

Sentry Issue: POSTHOG-1DQ3

Cohort.DoesNotExist: Cohort matching query does not exist.
(8 additional frame(s) were not displayed)
...
  File "posthog/api/services/query.py", line 50, in process_query_dict
    return process_query_model(
  File "posthog/api/services/query.py", line 133, in process_query_model
    result = query_runner.run(execution_mode=execution_mode, user=user, query_id=query_id)
  File "posthog/hogql_queries/query_runner.py", line 491, in run
    **self.calculate().model_dump(),
  File "posthog/hogql_queries/insights/funnels/funnels_query_runner.py", line 106, in calculate
    results = self.funnel_class._format_results(response.results)
  File "posthog/hogql_queries/insights/funnels/funnel_trends.py", line 84, in _format_results
    serialized_result.update({"breakdown_value": Cohort.objects.get(pk=breakdown_value).name})