Skip to content

[Self Hosted] - Session recordings not visible #44105

@scoobhidu

Description

@scoobhidu

Bug Description

curl 'https://pg.venturasecurities.com/api/environments/1/session_recordings?kind=RecordingsQuery&order=start_time&order_direction=DESC&date_from=-3d&properties=%5B%5D&events=%5B%5D&actions=%5B%5D&console_log_filters=%5B%5D&having_predicates=%5B%7B%22type%22%3A%22recording%22%2C%22key%22%3A%22active_seconds%22%2C%22value%22%3A5%2C%22operator%22%3A%22gt%22%7D%5D&filter_test_accounts=false&operand=AND&limit=20&person_uuid=' \
  -H 'Accept: */*' \
  -H 'Accept-Language: en-US,en;q=0.9' \
  -H 'Connection: keep-alive' \
  -b 'sessionid=eu03aeknfbsobrpshs93x4ctayykn5oo; posthog_csrftoken=fy2IyMDmgDinlovqJA4lUQJIfJQmBmIo; ph_sTMFPsFhdP1Ssg_posthog=%7B%22distinct_id%22%3A%22Va6lbN8srr5bwDkD8wCIT9sq5lTM55og5UzwL6MeZmb%22%2C%22%24sesid%22%3A%5B1767103139358%2C%22019b6f44-56df-75e9-9ee1-4597cf8404be%22%2C1767098308317%5D%2C%22%24epp%22%3Atrue%2C%22%24initial_person_info%22%3A%7B%22r%22%3A%22%24direct%22%2C%22u%22%3A%22https%3A%2F%2Fpg.venturasecurities.com%2Flogin%22%7D%7D' \
  -H 'Referer: https://pg.venturasecurities.com/project/1/replay/playlists/wozmmTYu' \
  -H 'Sec-Fetch-Dest: empty' \
  -H 'Sec-Fetch-Mode: cors' \
  -H 'Sec-Fetch-Site: same-origin' \
  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36' \
  -H 'X-POSTHOG-DISTINCT-ID: Va6lbN8srr5bwDkD8wCIT9sq5lTM55og5UzwL6MeZmb' \
  -H 'X-POSTHOG-SESSION-ID: 019b6f44-56df-75e9-9ee1-4597cf8404be' \
  -H 'sec-ch-ua: "Google Chrome";v="143", "Chromium";v="143", "Not A(Brand";v="24"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "macOS"'

this is giving 502 status code with response

<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.26.1</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->

Image

How to reproduce

  1. Just do the hobby installation
  2. The errors are tracking and the session events are going from the frontend with 200 status code
  3. but on trying to view the session recording on the dashboard, the API is not working

Debug info

- [ ] PostHog Cloud, Debug information: [please copy/paste from https://us.posthog.com/settings/project-details#variables or https://eu.posthog.com/settings/project-details#variables]
- [X] PostHog Hobby self-hosted with `docker compose`, version/commit: latest [please provide]
- [ ] PostHog self-hosted with Kubernetes (deprecated, see [`Sunsetting Kubernetes support`](https://posthog.com/blog/sunsetting-helm-support-posthog)), version/commit: [please provide]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions