cloudflare / workers-sdk

⛅️ Home to Wrangler, the CLI for Cloudflare Workers®
https://developers.cloudflare.com/workers/
Apache License 2.0
2.56k stars 656 forks source link

🐛 BUG: Tailing - workers.api.error.script_not_found [code: 8000068] #6289

Open magick93 opened 1 month ago

magick93 commented 1 month ago

Which Cloudflare product(s) does this pertain to?

Workers Runtime

What version(s) of the tool(s) are you using?

Wrangler 3.65.0

What version of Node are you using?

No response

What operating system and version are you using?

Ubuntu 24:04

Describe the Bug

Observed behavior

When trying to tail a Cloudflare pages Next.js application I'm getting:

A request to the Cloudflare API (/accounts/61871ed1209ff345d53e18f6b0ce8552/pages/projects/typebot-io-viewer/deployments/d30ef19b-c048-4b61-93a5-3c0476d06d12/tails) failed.

  workers.api.error.script_not_found [code: 8000068]

Expected behavior

Should be able to tail logs

Steps to reproduce

Please provide the following:

To reproduce

ENCRYPTION_SECRET=fx+RanDom/abcbDEX/rskFmtgGSSZ8Ta

# DATABASE_URL=postgresql://postgres:typebot@typebot-db:5432/typebot

DATABASE_URL=postgres://postgres:postgres@nevermind:5432/postgres?schema=typebot

NEXTAUTH_URL=http://typebot.domain.com:8080
NEXT_PUBLIC_VIEWER_URL=http://typebot.domain.com:8081

GITHUB_CLIENT_ID=xxxxxxxxxxxxxxxxxx
GITHUB_CLIENT_SECRET=xxxxx

ADMIN_EMAIL=your@email.com

Please provide a link to a minimal reproduction

https://github.com/yestechgroup/typebot.io

Please provide any relevant error logs

workers.api.error.script_not_found [code: 8000068]

irvinebroque commented 1 month ago

seems similar to https://github.com/cloudflare/workers-sdk/issues/3347

ikobe commented 1 month ago

same here

petebacondarwin commented 1 month ago

I believe this may be caused by trying to tail a project that has no fetch handler? There is an internal ticket to improve the messaging in this case.