-
Notifications
You must be signed in to change notification settings - Fork 690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 BUG: tail workers not work and break the dashboard #3745
Comments
Sorry you're running into this. Since this issue isn't directly related to wrangler or any projects contained in this repo, I'll close this and open an internal ticket to track this elsewhere. If you could provide more detail about the specific error you received in the Dashboard, the URL you were visiting when you saw the error page, and how you deployed the worker it would help us a lot in fixing the issue. Thanks! |
Hi, @1000hz Sorry for that, but the tail worker broke the other worker's dashboard and did not work. The context is, I create a tail worker, the code is very simple: export interface Env {
NEWRELIC_API_ENDPOINT: string
NEWRELIC_API_KEY: string
}
export default {
async tail(events: TailEvent, env: Env, ctx: any) {
const { NEWRELIC_API_ENDPOINT, NEWRELIC_API_KEY } = env
console.log('NEWRELIC_API_KEY', NEWRELIC_API_KEY)
console.log('tail', events)
// TODO: send log one by one, newrelic can parse json array
const res = await fetch(NEWRELIC_API_ENDPOINT, {
method: "POST",
headers: {
"Content-Type": "application/json",
"Api-Key": NEWRELIC_API_KEY,
},
body: JSON.stringify({}),
})
const json = await res.json()
console.log('res', json)
}
} But when I deploy the production, I need to connect it to other workers like: After I click the button And if I need the dashboard back, I need to use the wrangler in CLI to redeploy the worker without the tail worker. And most important, the tail worker can not receive any logs from other workers bound to it. So could you help to report this issue to the internal team? Because it stop me to use the tail worker to collect the logs and it is important to me. And this is my worker URL with the issue: https://dash.cloudflare.com/20cf736b0cc331fdc0fd15533bb1a2dc/workers/services/view/my-invest-gateway/production/settings/bindings Thanks. |
Hi @madawei2699, thanks for adding that information! This should now be fixed. |
Which Cloudflare product(s) does this pertain to?
Workers for Platforms
What version(s) of the tool(s) are you using?
3.1.2 [wrangler]
What version of Node are you using?
v18.15.0
What operating system are you using?
Mac
Describe the Bug
I tried to set up a consumer worker as described in the docs, however, that will crash the Cloudflare Dashboard UI after I deploy the worker :NotLikeThis: Also the tailing does not work, the tail worker does not receive any events.
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No response
The text was updated successfully, but these errors were encountered: