Had issues posting to a self-hosted instance of posthog. Realized that this was
because the library expects me to provide just the address (as in https://host.name.com)
whereas I was providing https://host.name.com/capture.
This PR adds some extra validations for the expected endpoint config.
Sidenote: for those who have kong in front of posthog, make sure to add routes
for both /capture and /batch - this library uses /batch :)
Had issues posting to a self-hosted instance of posthog. Realized that this was because the library expects me to provide just the address (as in
https://host.name.com
) whereas I was providinghttps://host.name.com/capture
.This PR adds some extra validations for the expected endpoint config.
Sidenote: for those who have kong in front of posthog, make sure to add routes for both
/capture
and/batch
- this library uses/batch
:)