question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

🐛 BUG: wrangler tail does not work of worker is deployed with Custom domain routing

See original GitHub issue

What version of Wrangler are you using?

2.0.22

What operating system are you using?

Mac

Describe the Bug

Wrangler tail does not work if it is deployed to custom domain route. I have console.log('message') statement in my workers code. Upon request it does not get printed to wrangler tail console. Neither it gets loged in Workers UI ) Workers -> Services-> Worker-> Logs-> real-time Logs).

My wrangler.toml cofig (scenarion 1): routes = [{pattern="subdomain.domain.com", custom_domain=true}]

If only I change my wrangler.toml to (scenario 2):

routes = [{pattern = "domain.com/path/", zone_id = "<zoneid>"}]
# routes = [{pattern="subdomain.domain.com", custom_domain=true}]

Things go back to normal.

If I activate buth standard route and custom domain (scenario 3):

routes = [
  {pattern="subdomain.domain.com", custom_domain=true},
  {pattern = "domain.com/path/", zone_id = "<zoneid>"}
]

ant hit the custom domain, logs are streamed in UI and terminal correctly. Meaning only custom domain is used for routing (scenario 1) logging gets malfunctioned.

It obvious that it’s not a wrangler bug, but a platform bug. But maybe you can escalate it from here.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
JacobMGEvanscommented, Aug 9, 2022

Linked this issue to internal ticket, thank you for the additional context! 😄

0reactions
JacobMGEvanscommented, Oct 21, 2022

@JacobMGEvans @jspspike can we re-open this issue to escalate it to the Cloudflare team? we’re also having problems with not being able to tail logs here (on custom domains), and looks like there are others in the recent comments as well. Thank you! 🙏

@kevjin

  1. What Cloudflare team do you mean? (both of us are on the CF Workers DevProd team)

  2. Are you on the latest version of Wrangler?

  3. Can you provide a minimal reproduction (Wrangler configuration mostly)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugging Workers - Cloudflare Docs
To get started, run wrangler dev in your Workers project directory. The wrangler dev command will deploy your application to the preview ...
Read more >
@cloudflare/wrangler | Yarn - Package Manager
The Cloudflare API returns a new token which allows wrangler dev to route subsequent requests to the new script. Previously, wrangler dev would...
Read more >
Cloudflare launches Workers Unbound, next evolution of its ...
One point I'm disappointed about is that they list API Gateway and DNS Queries (per MM requests) at $0. This may be true...
Read more >
Cloudflare Workers | Noise | Page 2
Client-side micro-frontend applications suffer from a number of problems. ... We configure Wrangler to upload these assets to Cloudflare and serve them from ......
Read more >
ZBO - River Thames Conditions
Voligoma argentina, Torproject polipo, Episode fairy tail 167 dailymotion, ... Do konserwacji podwozia, Ncr 5877 ttw, Domainfactory externe domain mx, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found