jason
CDCloudflare Developers
•Created by jason on 4/18/2024 in #workers-help
Cannot get image transformations to work with S3 proxy.
I'm having an issue getting Image Transformations working, and I'm not 100% why.
I have a worker that acts as a proxy for my s3 bucket. The function uses the AWS SDK to generate a signed request and then returns that to the client. This is working as expected. I wanted to add image transformations to this. So I updated my return to be:
When I did this, I get:
ERROR 9408: Could not fetch the image — the server returned HTTP error 401 Unauthorized
I thought this might have to do something the signed requests, so I made a new worker to act as a proxy. I followed the worker code in the documentation (and updated it in places) and passed my proxy url to this new function. When I do that, I get: ERROR 9408: Could not fetch the image — the server returned HTTP error 403 Forbidden
. Which is different, but not really.
I was starting to think that I had something mis-configured until I randomly tried an image from cloudflare's homepage through the new transformation worker... and that worked!
So it seems like this has something to do specifically with my setup in the proxy. It's not entirely clear to me which server is returning the error code and why.
Any help on what might be going on?6 replies
CDCloudflare Developers
•Created by jason on 12/15/2023 in #workers-help
SSL Certificate Error for Custom Domain
I just set a custom domain on one of my workers. However, accessing it now gives me an SSL error.
https://images.oops.net
It says that the cert is active. What do I need to do?
5 replies