PostHog / posthog

🦔 PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.
https://posthog.com
Other
21.23k stars 1.26k forks source link

[bug] api/ingest/static/recorder-v2: Request cannot have a ReadableStream body and keepalive set to true #20352

Open gregegan opened 7 months ago

gregegan commented 7 months ago

Bug description

Getting an error from PostHog recorder-v2 library with a TypeError: Request cannot have a ReadableStream body and keepalive set to true

We are seeing some streams properly being recorded, although no indication of what is causing this.

Currently seeing it on the following devices in our logs

Mac OS X Version:>=10.15.7

iOS Version:17.2

iOS Version:17.3.1

How to reproduce

  1. None

Environment

Additional context

image

Thank you for your bug report – we love squashing them!

pauldambra commented 7 months ago

Hey @gregegan

Which version of posthog-js are you using?

You can share individual Sentry issues... can you share that one with me? You can use https://us.posthog.com/#panel=support%3Asupport%3Asession_replay%3Alow to share it privately.

Is the site public and the error easily reproducible? It could be that our wrapping of fetch for payload capture is making an error elsewhere appear to come from our code

gregegan commented 7 months ago

Hey @gregegan

Which version of posthog-js are you using?

You can share individual Sentry issues... can you share that one with me? You can use https://us.posthog.com/#panel=support%3Asupport%3Asession_replay%3Alow to share it privately.

Is the site public and the error easily reproducible? It could be that our wrapping of fetch for payload capture is making an error elsewhere appear to come from our code

Submitted via the site, thank you