PostHog / posthog-node

Official PostHog Node library
MIT License
21 stars 19 forks source link

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

Open merrcury opened 2 years ago

merrcury commented 2 years ago

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

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).