Skip to content

Tracing fails with Unicode characters in OpenAI Agents SDK #130

Not planned
@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

Activity

dkundel-openai

dkundel-openai commented on Jun 21, 2025

@dkundel-openai
Collaborator

Looking into this. Thanks for raising this

seratch

seratch commented on Jun 24, 2025

@seratch
Member

Hi @JahanzaibTayyab, thank you again for taking the time to report this issue, but I am unable to reproduce the situation (the latest Agents SDK, macOS, Node 22). The tracing works without any issues.

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

Just including these characters in any data such as agent metadata, instructions, input, and the returned text response from a model does not arise the same error for me. There might be some additional condition that causes the issue. If you could provide repro steps, it would be greatly appreciated.

added and removed
bugSomething isn't working
on Jun 24, 2025
github-actions

github-actions commented on Jul 3, 2025

@github-actions
Contributor

This issue is stale because it has been open for 7 days with no activity.

github-actions

github-actions commented on Jul 6, 2025

@github-actions
Contributor

This issue was closed because it has been inactive for 3 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @seratch@JahanzaibTayyab@dkundel-openai

      Issue actions

        Tracing fails with Unicode characters in OpenAI Agents SDK · Issue #130 · openai/openai-agents-js