Skip to content

Tracing fails with Unicode characters in OpenAI Agents SDK #130

Open
@JahanzaibTayyab

Description

@JahanzaibTayyab

Please read this first

  • Have you read the docs? Agents SDK docs
  • Have you searched for related issues? Others may have faced similar issues.

Describe the bug

When using the OpenAI Agents SDK with tracing enabled, the exporter fails if any string (e.g., prompt or metadata) contains characters outside the Latin-1 (ISO-8859-1) range — such as Unicode curly quotes ( or , code point 8220). This throws an internal TypeError in undici.

Debug information

  • Agents SDK version: "@openai/agents": "^0.0.9",
  • Runtime environment ( Node.js 22.16.0)

Image
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions