Seemingly random PostgreSQL connection drops while handling Django requests

After experiencing this issue on several projects, we were able to pin it down to WhiteNoise, specifically something that changed between 5.2.0 and 6.6.0.

We’re going to triage further and see if we can narrow things down to the specific version, and maybe some of the why (I’m guessing middleware changes but that’s just speculation), but not sure when we’ll have time to do that, so noting it here for others who stumbles on this issue.

3 Likes