No log display after using static assets
I'm trying to convert a project I wrote in JS to TS, but when I made the changes, there were no more logs on the worker's log page, and even the request records themselves (such as log records like "GET URL") were not displayed. However, when developing locally or debugging with the web editor, the logs are normal. Does anyone know why?
https://sub.schwi.workers.dev/
我正在尝试把我用JS写的项目改为使用TS,但当我修改完成后,在worker的日志页面就再也没有日志了,甚至不会显示请求记录本身(例如“GET URL”这样的日志记录),但是本地开发状态下或使用网页编辑器调试时,日志却是正常的,有人知道这是为什么吗?
any more information needed, please reply, thanks

13 Replies
I see a log in time
2025-03-20T04:47:10.217Z
.
but...why? Why this person's request can be logged? what happend to other request?😭
Hi Scwi, how often does this happen? Can you share your account ID
Ok, my Account ID is a2f78f394f5cd5885f7e5daddfcd3aab
About how often, I'm not sure. After I send this post, I receive 4 logs from 2 IPs, one is Google Datacenter, another is cloudflare, and many requests from malicious scripts where IP belong to OVH (because I closed my custom WAF rule). But when I visit the url by my self, still no log to show
btw, first time when I found there's no log, I tried to delete and recreate worker, then the log has show, but after my publish (or after a few minutes, I'm not sure which cause it), log doesn't show anymore. I think you can see these logs and operations by checking my account ID
I think that no matter what happens in the code, there should at least be a request record logged by cloudflare, such as "GET https://url.....", am I right?
I see 96 invocations over the last day, have you made sure you are looking over a long timerange?
I have looked at these logs, they are all requests from malicious scripts, but I don't see any requests from me. I don't know what the difference is between their requests and mine, and why their logs can exist

Any test can I do?
Wait, the live logs are showing up now, but I didn’t do anything…
Let me try update code to latest and test again.
I just tried to submit my code to the latest version. The worker executed normally and returned results, but the live log did not show any logs. What happened?
10 minutes have passed and no new records have appeared after refreshing the log. This does not seem normal.

So where are the logs for the 126 requests in the last 12 hours? 😭

what different between these 3 invocations and other 135 invocations? They both in last 24 hours


Prompted by the post https://discordapp.com/channels/595317990191398933/1353347373518164050 , I found that the problem was caused by static assets. After I removed the static assets, the logs were displayed normally, so I can be sure that this is the cause of the problem. So is this a problem within CloudFlare Workers?
Sorry I couldn't help more with debugging this. Good job on figuring out it was static assets. It has been flagged with the team
Thank you very much!
I hope this report will help to resolve this issue and that it will be resolved soon.