Workers not receiving some requests?

I think this is going to hard to troubleshoot -- but we're seeing CloudFlare workers not receiving a number of requests. We have a script that triggers analytics tracking to both our Nginx server as well as our CloudFlare worker. When comparing the two with wrangler tail, we have significantly less requests to our CloudFlare worker than our Nginx server, even though they're being sent at the same time, from the same script (only the domain is different a.example.com vs b.example.com) I've confirmed that the traffic is real people (not bots), and I'm wondering if there are settings that we should look at to see what else could be blocking the requests. I THINK that the offending traffic is coming from sandboxed browsers in apps (like the Facebook browser or TikTok browser) but I'm not sure why that would make a difference. Another possibility is that we fire off a number of these requests right in a row (sometimes 2~4) and maybe CloudFlare is seeing them as DDOS?
2 Replies
Beny
Beny9mo ago
You'll be able to see any request blocked by Cloudflare in your Dashboard under Security > Events. Also if your Worker has a high volume of traffic, the wrangler tail might enter sampling mode, meaning you wont see every request.
harisenbon
harisenbonOP9mo ago
No events under Security > Events. So I guess not blocking.
Also if your Worker has a high volume of traffic
Only 1.5k requests over 3 hours of tail . the traffic also didn't make it into the database, so I assume the request was never received. I'm not sure where else to look, to be honest. Both the Nginx and Worker are behind CloudFlare proxy, so there shouldn't be any settings difference. For anyone else who has this issue, the problem was indeed that CloudFlare was blocking the requests through the Default Security level, even though they were not showing on the Security > Events page Adding a custom rule for that worker that set the Security Level to Essentially Off fixed the issue.
Want results from more Discord servers?
Add your server