Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extra validations when specifying custom endpoint #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dselans
Copy link

@dselans dselans commented Aug 21, 2022

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 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` :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant