Cloudflare Worker for API endpoint returning Cloudflare error page

Under bursts of traffic some of my customers are seeing the Cloudflare error page instead of a response from my service. I don't see anything in the logs that would indicate an issue coming from the worker logic. Is my API endpoint getting throttled somehow? I'm on a paid plan which I assumed wasn't rate limited? It only seems to happen under bursts of traffic (relatively small bursts of less than 100). Example: Ray ID: 8aea1e9efd2576d2 2024-08-05 22:10:51 UTC
No description
6 Replies
Erisa
Erisa4mo ago
What kind of error is it? There should be an error code
ra
raOP4mo ago
<h1>
<span class="cf-error-type" data-translate="error">Error</span>
<span class="cf-error-code">1101</span>
<small class="heading-ray-id">Ray ID: 8aea1e9efd2576d2 &bull; 2024-08-05 22:10:51 UTC</small>
</h1>
<h1>
<span class="cf-error-type" data-translate="error">Error</span>
<span class="cf-error-code">1101</span>
<small class="heading-ray-id">Ray ID: 8aea1e9efd2576d2 &bull; 2024-08-05 22:10:51 UTC</small>
</h1>
It looks like this error is for not returning a response? Odd.
Erisa
Erisa4mo ago
1101 means an exception was thrown in your code, you'd need to capture it in logs to understand more https://developers.cloudflare.com/workers/observability/logging/
Cloudflare Docs
Logging · Cloudflare Workers docs
Use different methods of logging throughout the entire software development lifecycle of your Worker project.
ra
raOP4mo ago
I do have logs, and I see The script will never generate a response. for this trace id I'm not sure how that would be possible given my application logic. Are there any common things you've seen that result in this error?
ra
raOP4mo ago
It looks like I do have a global promise due to using p-limit . Will fix that. Is this behavior documented somewhere? I feel like there should be a lint rule or something here.
Want results from more Discord servers?
Add your server