chatcraft.org
chatcraft.org copied to clipboard
CloudFlare Warning for sharing PUT function
[mf:inf] PUT /api/share/chatcraft_dev/uwiryp_qVmBZ7khs0ThnQ 200 OK (17ms) Your worker created multiple branches of a single stream (for instance, by calling
response.clone()
orrequest.clone()
) but did not read the body of both branches. This is wasteful, as it forces the system to buffer the entire stream of data in memory, rather than streaming it through. This may cause your worker to be unexpectedly terminated for going over the memory limit. If you only meant to copy the request or response headers and metadata (e.g. in order to be able to modify them), use the appropriate constructors instead (for instance,new Response(response.body, response)
,new Request(request)
, etc).
Which happens in https://github.com/tarasglek/chatcraft.org/blob/main/functions/api/share/%5B%5Buser_id%5D%5D.ts#L13