I am trying to work with WASM in workers to resize the images and upload them to the bucket.
I am using the photon wasm library to achieve this.
GitHub - fineshopdesign/cf-wasm: ⛅ A collection of wasm packages those work on Cloudflare workers, this fork of the library is made compatible with CF workers
The code works fine on the local with wrangler dev
command but when I deployed it to the server it gave error
✘ [ERROR] Error: Promise will never complete.
On server it works fine with small images but gives this error on images bigger than 3MB, the CPU utilisation is also not that much.
Some topics suggest CF thinks because their is no I/O CF thinks its stucked and terminates it.