Bug report: SDK Doctor shows a generic error when no PostHog SDKs found in events
Open
@slshults is already working on this.
Since Apr 20, 2026.
bug
feature/sdk-doctor
team/growth
- Dominant language
- Python
- Stars
- 39.9k
- Forks
- 3.4k
- Avg merge
- 6h 51m
- Merged PRs (30d)
- 232
Description
Bug Description
Please describe
On a project with no projects captured by a PostHog SDK in the last 7 days (no $lib property, no $lib_version property found in any events), SDK Doctor currently shows:
Error loading SDK information. Please try again later.
We can improve that error message to say:
No events captured by PostHog SDKs in the last 7d days
in this scenario.
How to reproduce
- Visit a project with no PostHog SDKs capturing events in the last 7 days (e.g. EU projectId
7525) - Visit the SDK Doctor page
- See the error
Additional context
From: https://posthog.slack.com/archives/C043VJ93L3B/p1776411715528699
Debug info
Debug info
Session: https://us.posthog.com/project/sTMFPsFhdP1Ssg/replay/019dac02-e207-764b-b5fe-fe8716b7f52d?t=144
Admin: http://go/adminOrgEU/01898c01-032f-0000-77bd-be3f4ddf024e (project ID 7525)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.