Occasionally getting "TypeError: object of type 'NoneType' has no len()" and it seems to be coming from the langfuse OpenAI sdk wrapper #5453
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
|
Hey @shaiunterslak! I'm here to help you with any bugs, questions, or contributions. Let's tackle this together! A similar issue was previously reported and resolved. The solution involved updating to a newer version of the Langfuse Python SDK, specifically version 2.36.2 [1]. The error you're encountering, "TypeError: object of type 'NoneType' has no len()", might be related to how the Langfuse library handles responses from the OpenAI API. A To address this issue, ensure that you are using the latest version of the Langfuse SDK. Additionally, you might want to implement error handling to check for To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
|
Are you on the latest version of the sdks? Please open a bug report if this happens on the latest python sdk version: langfuse.com/issues |
Beta Was this translation helpful? Give feedback.

Are you on the latest version of the sdks? Please open a bug report if this happens on the latest python sdk version: langfuse.com/issues