R2 Bucket 404 for custom domain, but working on r2.dev
i upload a object via wordpress site, and the custom domain URL. return 404, but r2.dev url work fine, i can see object in r2 Dashboard
13 Replies
Make sure you're not appending the bucket name to your custom domain.
ex. if your object name is cookies/pineapple.png, you would visit it via your r2 bucket custom domain
https://r2-bucket.example.com/cookies/pineapple.png
i am using proper structure, and i am copying the URL from r2 dashboard
That works for me and Discord
Perhaps local cache, or CF Cache?
i am getting this page
how can i fix this/
That looks like dns cache? Did you have the domain pointed at something else/recently changed it to point at r2?
yes couple hours ago
https://dnschecker.org/#A/cdn.usinsightnews.com
Looks like most DNS Resolvers updated besides a few ISP Resolvers
DNS Checker
DNS Checker - DNS Check Propagation Tool
Check DNS Propagation worldwide. DNS Checker provides name server propagation check instantly. Changed nameservers so do a DNS lookup and check if DNS and nameservers have propagated.
You could try clearing your DNS Cache (Depends on OS) and switching your DNS Resolver to 1.1.1.1: https://1.1.1.1/dns/
Those are local changes though, eventually dns cache will expire if you wait long enough, might be a bit though (few hours, prob, some ISPs ignore record the ttl of the record/max time it should be cached, and cache for longer)
thanks, @Chaika i will try an test on my local, and wait for dns cache to expire
@Chaika , thank you for help, this issue was dns cache, and its resolved
I'm having a similar kind of issue with the r2 bucket i added a custom domain, and now when I'm trying to access the object it gives me an SSL error can you help me with this?