Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Feb 22, 2024
1 parent be19673 commit d71246c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions posthog/session_recordings/session_recording_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,10 @@ def snapshots(self, request: request.Request, **kwargs):

elif source == "realtime":
if request.GET.get("version", None) == "3" and settings.RECORDINGS_INGESTER_URL:
url = f"{settings.RECORDINGS_INGESTER_URL}/api/projects/{self.team.pk}/session_recordings/{str(recording.session_id)}/snapshots"
with requests.get(url=url, stream=True) as r:
with requests.get(
url=f"{settings.RECORDINGS_INGESTER_URL}/api/projects/{self.team.pk}/session_recordings/{str(recording.session_id)}/snapshots",
stream=True,
) as r:
if r.status_code == 404:
return Response({"snapshots": []})

Expand Down

0 comments on commit d71246c

Please sign in to comment.