I'm encountering a 502 error when trying to fetch images from r2 using a custom domain. How can I resolve this?