Open merrcury opened 2 years ago
No
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.
Asserting an error if the connection is unsuccessful only when the initial connection is made. This should only be for server-side libraries.
Logging a test event (makes no sense every time).
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).