Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Feature Request: First Time Information if connection is established  #43

@merrcury

Description

@merrcury

Is this related to platform?

No

Describe the Problem

PostHog CLI/SDK throws an error only if we pass an empty string. It doesn't intimate if API Key is valid and the connection is successful or not.

Reason to believe It's required

  • Due to some compliance, If Key needs to change and teams forget to update it in legacy code.
  • Setting Up a New Developing/Staging Environment.

Solution

Asserting an error if the connection is unsuccessful only when the initial connection is made. This should only be for server-side libraries.

Current Approach

Logging a test event (makes no sense every time).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions