Requests from Heroku to Worker with Custom Domain simply doesn't work
Hi! For some reason, requests we make from our node.js server on Heroku to any worker we have that uses a custom domain... doesn't work. requests simply fail, with no useful errors. if we use the workers.dev URL it works perfectly, but custom domains do not
9 Replies
Check your firewall logs. Maybe you are being blocked?
On CF?
Yes
I'll check. We just had an incident where a URL we've been using without any errors whatsoever for weeks suddenly stopped working. After replacing the custom domain URL with the workers.dev, it works again
We've experienced this before too with 2 other custom domains
the firewall events log does not match the failed requests as far as I can see
oh wait
looking at the events it does look right
managed challenge for all of them
What you can do is add some way of identifying your Heroku instance, and if it passes the WAF, it is Allowed through
gotcha
what are some common ways to do this?
btw, based on your accurate guess, this isn't the first time I assume? :p
The best way is to have a static IP that only you can use, though I assume Heroku doesn’t just give those out. Otherwise, it could also be a custom user agent, or something else
Nah, just done this a few times, and had a lucky first guess
gotcha. thank you for the pointers and help!
Happy to help!