weserv / images

Source code of wsrv.nl (formerly images.weserv.nl), to be used on your own server(s).
https://wsrv.nl/
BSD 3-Clause "New" or "Revised" License
1.84k stars 188 forks source link

Getting 404, on some sizes of images #410

Open nilsmakeable opened 4 months ago

nilsmakeable commented 4 months ago

We are seeing {"status": "error", "code": 404, "message": "The hostname of the origin is unresolvable (DNS) or blocked by policy." } On requests on some image sizes. If we change the image size the image appears as expected.

In the nginx error.log on we see the following lines

This issue seems a bit above my experience with nginx, any pointers would be appreciated.

kleisauke commented 2 months ago

Sounds like the DNS server is not properly configured. Is this with Docker? If so, see: https://github.com/weserv/images/issues/206#issuecomment-1752740666.

kleisauke commented 1 month ago

@nilsmakeable Were you able to make any progress with this?

nilsmakeable commented 1 month ago

@kleisauke It was in docker, but it was configured correctly, and I had seen the above mentioned thread earlier.

I ended up adding a default url on the script generation our urls with a cache break parameter to avoid the intermittend errors. since then we haven't seen any problems. Which means I haven't been given any more time to look into a better / more correct solution.