Sandeep
Sandeep
CDCloudflare Developers
Created by Sandeep on 5/20/2024 in #workers-help
Using workers to compress images and upload back to R2 Bucket.
I'm getting below logs form the worker log stream { "outcome": "exceededMemory", "scriptVersion": { "id": "5c72e87a-332b-475b-8a03-2861ce1beb0e" }, "scriptName": "hello-world-abc", "diagnosticsChannelEvents": [], "exceptions": [ { "name": "Error", "message": "Promise will never complete.", "timestamp": 1716279401666 } ], "logs": [ { "message": [ "KEY=======>", "Sample-jpg-image-20mb.jpg" ], "level": "log", "timestamp": 1716279400178 }, { "message": [ ">>>>>>>>>>>>", "{"signedUrl":"https://<MY_BUCKET.ACC_ID.r2.cloudflarestorage.com/Sample-jpg-image-20mb.jpg","headers":{"authorization":"AWS4-HMAC-SHA256 Credential=5080868f24377e6b2058dc10c87e6619/20240521/auto/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=32dd98b7a38bb60e115159e747e54129817914768477c688181e20f30a94406f","x-amz-content-sha256":"UNSIGNED-PAYLOAD","x-amz-date":"20240521T081640Z"}}" ], "level": "log", "timestamp": 1716279400178 } ], "eventTimestamp": 1716279400178, "event": { "batchSize": 1, "queue": "test-bucket-queue" }, "id": 3 }
5 replies
CDCloudflare Developers
Created by Sandeep on 5/20/2024 in #workers-help
Using workers to compress images and upload back to R2 Bucket.
Hello @jack I just tried the logs, here is the output of the issue what I'm facing. I tried to upload one 20 MB Jpeg file on the R2 bucket, it got uploaded well. However, while making a fetch request for the object, I got above error. Here is the worker code attached what I'm using. Please help me with this!
5 replies