Back to Home

Question

I've just added a Worker on the Cloudflare Dashboard for my website: it works in the debugger but doesn't work when I query the site. Why is that? Is there anything to activate or anything I could check?

Answer:

Hello,

Sorry to hear that you are experiencing this issue.

If your Cloudflare Worker works in the debugger but not when you query the site, there are a few possible reasons:

Routing: Ensure that your Worker is correctly associated with the relevant URLs or routes. Please refer to Routes for additional assistance.

DNS Configuration: Confirm that your domain's DNS records are pointing to Cloudflare's nameservers and that DNS resolution is correctly configured.

Also, please check if caching settings are compatible with your Worker's functionality.

If you need any further assistance, please don't hesitate to reach out.

Best regards,
Ari Bovolente | Cloudflare Support

Thought Process:

I try to identify possible causes for the problem by researching the most common reasons why a Cloudflare Worker might not work as expected when queried. Then, I offer some troubleshooting steps for the customer to diagnose and resolve the issue and reassure the customer of Cloudflare's ongoing support to provide further details if needed.

Tools:

Documentation resources: Information about Worker deployment and troubleshooting.