Worker is logging requests when website is making no requests

I built a Worker to handle form requests for my website and put the data to different services I use. According to my Cloudflare back office... my Worker is logging multiple requests over the last day but none of my forms have actually be submitted. Where are these requests coming from. I am guessing the only way I can truly find out if setting up logging?
13 Replies
Hello, I’m Allie!
Random bots on the internet may be hitting your Worker, providing data which it isn't equipped to handle, and causing it to error. This would show up as a billable Request, but wouldn't actually log a submitted form, since it didn't succeed. Check the number of errors in your Workers' statistics.
danboyle8637
danboyle863716mo ago
That's what is strange. I have a 100% success rate. 0% errors. Not sure if there is something else going on... on the subrequests... I am getting a bunch of uncached subrequests. Does this mean my worker code is calling one of my services and erroring out?
Hello, I’m Allie!
Are you try/catching the entire request? If so, it may show as a success, even if it isn't
danboyle8637
danboyle863716mo ago
Yeah good point. I do try catch... is there a way to block these requests? I have a custom auth "solution" that responds with a 401. But I guess that is still successful huh?
Hello, I’m Allie!
You can use the WAF. First though, you need to know what they are doing, to make sure you only block them, and not legitimate traffic. Do you have LogPush enabled?
danboyle8637
danboyle863716mo ago
No I'll have to look at the docs and get that set up
Hello, I’m Allie!
Are you on Enterprise?
danboyle8637
danboyle863716mo ago
no... just paid for Workers and a couple other services
Hello, I’m Allie!
Is your Worker on a custom domain?
danboyle8637
danboyle863716mo ago
no
Hello, I’m Allie!
Without a custom domain, afaik, there isn't a way to block those requests, or at least not in a way that would prevent you from being billed.
danboyle8637
danboyle863716mo ago
ok... thanks for helping clear some things up.
Hello, I’m Allie!
No problem!
Want results from more Discord servers?
Add your server
More Posts
cloudflare pages site speed test but 404 errorWhen my site, which was created using cloudflare pages, performs the speed test, a 404 error occurs.The wording around how sampling is doneThe wording around how sampling is done is unclear - which row from a sampled region gets stored? WhWorkers not decoding gzip request automaticallyGetting the `.text()` of ```Z�&�;��2����9s#Ò/y�H�H�����Cp_΃;05��J#c�E�G9�M*�a�zJ%,�[t���)<�>��Ņ��^��Error: "stream does not start with a json array" when making logpush job, incorrect error code?I am trying to make a logpush job that sends an array JSON to axiom. I am getting an error: ``` {"eHow to cancel deployment if any part of the build fails or throws an error?I set up a tiny build script for my site at https://github.com/ReactFinland/future-frontend-site/bloHow am I to run my Next.js 13 app with Edge runtime API route with KV bindings locally?I created a brand new next.js 13 app with Edge runtime API route. This works well both locally and wService bindingsIs it possible to create worker service bindings through cloudflare API https://developers.cloudflarError when hosted on pages but not on localokay... if I have minify/rocketloader off, cf shouldn't touch any of my code right? so why is it thaPOST to worker > "Network connection lost" (via 'wrangler tail')POST https://valet-ticket-list.vaya.workers.dev/vstnd_6t84ks2nvu5xqo3hhp1p2otpj/vtkt_d2u4wh8ulv8gzmcgetting error code: 1042 when curling a worker from laptopThis error means that a worker cannot fetch another worker from the same zone, but I am fetching fro