Looking at the logs cancelling those requests is making the one in-flight throwing HTTP 500. We should likely catch CHQueryErrorQueryWasCancelled and return a non HTTP 5xx status code.
How to reproduce
run long running query via an HTTP endpoint
cancel that request
seeing a HTTP 5xx in the logs
Environment
[X] PostHog Cloud
[X] self-hosted PostHog, version/commit: please provide
This issue hasn't seen activity in two years! If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in two weeks.
Bug description
With https://github.com/PostHog/posthog/pull/11485 we are now cancelling unnecessary in-flight requests removing some load from CH.
Looking at the logs cancelling those requests is making the one in-flight throwing HTTP 500. We should likely catch
CHQueryErrorQueryWasCancelled
and return a non HTTP 5xx status code.How to reproduce
Environment
Additional context
N/A