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
Hello, I’m Allie!
Check your firewall logs. Maybe you are being blocked?
daniel_klungo
daniel_klungoOP2y ago
On CF?
daniel_klungo
daniel_klungoOP2y ago
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
Hello, I’m Allie!
What you can do is add some way of identifying your Heroku instance, and if it passes the WAF, it is Allowed through
daniel_klungo
daniel_klungoOP2y ago
gotcha what are some common ways to do this? btw, based on your accurate guess, this isn't the first time I assume? :p
Hello, I’m Allie!
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
daniel_klungo
daniel_klungoOP2y ago
gotcha. thank you for the pointers and help!
Hello, I’m Allie!
Happy to help!
Want results from more Discord servers?
Add your server