Not planned
Description
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
)
Activity
dkundel-openai commentedon Jun 21, 2025
Looking into this. Thanks for raising this
seratch commentedon Jun 24, 2025
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.
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.
github-actions commentedon Jul 3, 2025
This issue is stale because it has been open for 7 days with no activity.
github-actions commentedon Jul 6, 2025
This issue was closed because it has been inactive for 3 days since being marked as stale.