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

Requested URL is incorrect when PostHog host includes a path #274

Open
bcheidemann opened this issue Dec 18, 2024 · 1 comment · May be fixed by bcheidemann-kmbal/posthog-ios#1
Open

Requested URL is incorrect when PostHog host includes a path #274

bcheidemann opened this issue Dec 18, 2024 · 1 comment · May be fixed by bcheidemann-kmbal/posthog-ios#1
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@bcheidemann
Copy link

bcheidemann commented Dec 18, 2024

Version

3.17.0

Steps to Reproduce

  1. Set com.posthog.posthog.POSTHOG_HOST to http://localhost:3000/some/path
  2. Run a dummy server on port 3000 which logs incoming requests
  3. Trigger a batch of events to be sent
  4. Observe that the requested URL is http://localhost:3000/batch

Expected Result

The requested URL is http://localhost:3000/some/path/batch

Actual Result

The requested URL is http://localhost:3000/batch

Additional Context

See PostHog/posthog-flutter#128

@marandaneto
Copy link
Member

Before closing this, I'd need to check if the same happens on Android and RN, good catch.

@marandaneto marandaneto added the help wanted Extra attention is needed label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants