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
6 Replies
What kind of error is it? There should be an error code
It looks like this error is for not returning a response? Odd.
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.
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?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.