Skip to content

bug: python: "Data is not base64 encoded" on server sent events #5659

@yorickvP

Description

@yorickvP

Describe the bug

When starting a response with data: (which happens for Server Sent Events), langfuse tries to parse it as base64 and fails. The test should probably be data:[^\s] so SSE doesn't trigger it.

To reproduce

@observe()
async def test_sse():
    yield "data: {}"
    yield "data: [DONE]"

SDK and container versions

No response

Additional information

No response

Are you interested to contribute a fix for this bug?

No

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions