posthog icon indicating copy to clipboard operation
posthog copied to clipboard

Wrong protocol in session recording

Open jandolezal71 opened this issue 2 years ago • 2 comments

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?

image image image

Environment

  • [ ] PostHog Cloud
  • [x] self-hosted PostHog (ClickHouse-based), version/commit: 1.37.1
  • [ ] self-hosted PostHog (Postgres-based, legacy), version/commit: please provide

jandolezal71 avatar Jul 20 '22 15:07 jandolezal71

Sometimes snapshots request returns next: null and in this case everything works as expected.

image

jandolezal71 avatar Jul 21 '22 08:07 jandolezal71

This does like a more generic bug in that next urls are not taking into consideration the configured SITE_URL . Should be fixable...

benjackwhite avatar Sep 12 '22 10:09 benjackwhite

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

pauldambra avatar Apr 26 '24 11:04 pauldambra