posthog
posthog copied to clipboard
Wrong protocol in session recording
Bug description
I have self hosted Posthog 1.37.1 and activated session recording. Sessions are recorded and when i'll click on some session i will get an error, because request to /api/projects/1/session_recordings/{id}/snapshots/?offset=20&limit=20
will fail, because my posthog domain is on HTTPS but this request is to HTTP, i don't know why.
These are my envs:
SITE_URL=https://mydomain.com
INGESTION_SITE_URL=https://mydomain.com
DISABLE_SECURE_SSL_REDIRECT=true
SECURE_COOKIES=true
I access posthog on https://mydomain.com , but request to get session recording /api/projects/1/session_recordings/{id}/snapshots/
will return http protocol in next
key. Why? What can i override to put same protocol as web?
Environment
- [ ] PostHog Cloud
- [x] self-hosted PostHog (ClickHouse-based), version/commit:
1.37.1
- [ ] self-hosted PostHog (Postgres-based, legacy), version/commit: please provide
Sometimes snapshots
request returns next: null
and in this case everything works as expected.
This does like a more generic bug in that next
urls are not taking into consideration the configured SITE_URL
. Should be fixable...
This is so old I'll assume it's fixed. Sorry you didn't get a response sooner. Do let us know if you're still having issues