Your worker created multiple branches of a single stream (for instance, by calling response.clone()

I am getting this when trying to use a cloudflare worker together with the uploadthing library. I have debugged in VS-code and the error is thrown here when uploadthing library calls the safeParseJSON function:
https://github.com/pingdotgg/uploadthing/blob/ea0f3c96f5db2fa945592d5efc06bf84811c5525/packages/shared/src/utils.ts#L233

Here is link to my cloudflare worker:
https://github.com/kristiankauffeld/uploadthing-cf-worker
Was this page helpful?