-
Notifications
You must be signed in to change notification settings - Fork 184
Completed 406 NOT_ACCEPTABLE when using Cloudflare Image Resizing #1208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
406 NOT_ACCEPTABLE usually indicates that you're requesting an unsupported mediatype. But getObject supports all types, as can be seen in the log as well. I don't understand the use-case enough to test myself, you could try and use |
Sure, here's some logs with Logs
|
I'm guessing the important log line is:
|
found it! There's an erroneous I just checked all |
GetObject had a wrong "produces" declarations, some others were not consistent. AWS SDK does not send "Accept" headers, but if we're using plain HTTP requests, a 406 NOT_ACCEPTABLE is returned from Spring MVC when a request comes in and the "Accept" / "Content-Type" headers do not match the expectations. Fixes #1208
Refactored the changelog. 2.17.0 is the last planned minor version update. 3.x is the new current version. Fixes #1208
@sampotts just released 2.17.0 which should fix your problem :) |
Awesome! Thanks for getting it fixed so quickly! |
We tried to use Cloudflare's Image Resizing service through a tunnel to our local machines. Accessing the images directly (bypassing the Image Resizing service) works fine. When we add the extra path in the URL for the image resizing (which will request the image, resize it and cache it) we get a 406 error:
In the S3Mock logs I see this when using
debug
mode:It doesn't really give me much info but hoping there's something I can configure here to get this working.
Unfortunately, I can't provide the URLs for testing, given this is public but the difference being:
The above would go through the tunnel and S3Mock returns the image. This works fine.
This example would go through the Cloudflare image service and return a resized image. It throws the 406 error from S3Mock.
I've tried using two different tunnels:
Both experience the same issue.
The text was updated successfully, but these errors were encountered: