Skip to content

When running in relatively high amount of concurrent requests we start getting: "API error occurred: Service unavailable." from Langfuse server #4041

Answered by dosubot bot
sternr asked this question in Support
Discussion options

You must be logged in to vote

Hey there, @sternr! I'm here to assist you with any bugs, questions, or contributions. Let's tackle this issue together!

I found a similar closed issue that might be relevant to your situation: bug: ERROR:langfuse:API error occurred:. The suggested solution in that case was to upgrade Langchain and switch to the recommended from langchain_openai import AzureChatOpenAI [1].

For handling high concurrency and buffering in Langfuse, you can adjust several configurations in the client library:

  1. Concurrency and Buffering Settings:

    • LANGFUSE_THREADS: Increase the number of consumer threads to handle more concurrent requests. The default is 1, but you can increase it if you encounter scaling is…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by sternr
Comment options

You must be logged in to vote
1 reply
@marcklingen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants