rate limit issue when calling evalution in aws self hosted environment. #7953
Replies: 5 comments 3 replies
|
The "rate limited" error in your self-hosted Langfuse environment happens when the external LLM provider (like OpenAI, Anthropic, Bedrock, etc.) returns an HTTP 429 (Too Many Requests) response. Langfuse does not impose its own rate limits—this behavior is the same in both cloud and self-hosted modes. When a rate limit is hit, Langfuse's worker will automatically retry the evaluation job after a delay (e.g., 48 seconds), and will keep retrying for up to 24 hours before giving up. This is why your evaluator stays in "pending" status if the LLM provider keeps rate limiting your requests see code details. To resolve this, you can reduce the frequency of evaluation jobs, upgrade your LLM provider plan to get higher rate limits, or rotate/add more API keys if your provider supports it. There are no configuration options in Langfuse to disable or bypass this retry logic for self-hosted users see retry logic. Monitoring your LLM provider's usage and error logs can help you spot and address rate limiting more proactively. To reply, just mention @dosu. Docs are dead. Just use Dosu. |
|
I'm having the same issue. |
|
Up to now, I found that when i calling evalutor using LLM-as-a-judge, there is so many requests. I executed only 5 traces filtered, why the request over 100 requests? Any bug in langfuse? or Any options to control this? |
|
Hi there, I actually encountered a similar issue not long ago. After some trial and error, I found that adjusting the prompt to explicitly specify outputting JSON-formatted key-value pairs for the "score" and "reasoning" fields worked effectively. Specifically, by reinforcing the requirement for strict JSON structure with those two fields, the model responded as intended. If you're facing the same challenge, this approach might be worth a try—though your mileage may vary depending on the specific context, of course. Happy to share more details if needed! |
|
After lots of debugging and going deep into the code,i found that the aws WAF which wraps the alb pointing to my app was blocking the requests as the payload(contains the whole system+user prompt) was to big.after adjusting the WAF,it started working :) |


After lots of debugging and going deep into the code,i found that the aws WAF which wraps the alb pointing to my app was blocking the requests as the payload(contains the whole system+user prompt) was to big.after adjusting the WAF,it started working :)