MrBithles
CDCloudflare Developers
•Created by MrBithles on 4/7/2025 in #pages-help
Log aggregator service BetterStack (logtail) for a worker pages to collect logs is not working
I would like to collect logs from my pages services for a SSR tanstack start application. Locally everything is fine, I see my logs in BetterStack but my deployed app doesn't get any logs. Currently the tokens are committed into source so its not an env issue. The serverSideFn calls are done via tanstack RPC calls which don't have CF ctx to use waitUntil, however I am still always called logger.flush() to ensure logs are sent before completing call and yet I still don't get logs. I also have worker RPC calls to other workers where there logs are also not called. Those same workers with RPC are also invoked via scheduled and queues and logging is fine. This leads me to beleive there is something funky with worker pages, maybe the code is run in some sort of sandbox that is blocking logs??
1 replies
CDCloudflare Developers
•Created by MrBithles on 11/7/2024 in #workers-help
Browser Rendering Env Binding in local dev is not set?
In my local wranger dev I can see logs saying it will bind browser but when I print out env from fetch or queue param its undefined. I assume it's why I am seeing this error trying to launch puppeteer.
✘ [ERROR] TypeError: Cannot read properties of undefined (reading 'fetch') at PuppeteerWorkers.launch
2 replies