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.35k stars 1.13k forks source link

RuntimeError: dictionary changed size during iteration #23306

Closed sentry-io[bot] closed 1 day ago

sentry-io[bot] commented 5 days ago

Sentry Issue: POSTHOG-1BVV

RuntimeError: dictionary changed size during iteration
(8 additional frame(s) were not displayed)
...
  File "posthog/hogql_queries/query_runner.py", line 491, in run
    **self.calculate().model_dump(),
  File "posthog/hogql_queries/insights/trends/trends_query_runner.py", line 361, in calculate
    raise errors[0]
  File "posthog/hogql_queries/insights/trends/trends_query_runner.py", line 316, in run
    response = execute_hogql_query(
  File "posthog/hogql/query.py", line 168, in execute_hogql_query
    timings_dict = timings.to_dict()
  File "posthog/hogql/timings.py", line 41, in to_dict
    for key, start in reversed(self._timing_starts.items()):