PostHog / PostHog/posthog

Bug report: SDK Doctor shows a generic error when no PostHog SDKs found in events

Open
#55,360 0 comments 0 reactions 1 assignee View on GitHub

@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

  1. Visit a project with no PostHog SDKs capturing events in the last 7 days (e.g. EU projectId 7525)
  2. Visit the SDK Doctor page
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.