Skip to content

TypeError: terminated #855

@bakikucukcakiroglu

Description

@bakikucukcakiroglu

We use openai-agents-js (default Responses API) to run our Multi-Agent Systems (MAS). During MAS runs, we intermittently hit the following error:

{
  "error": "TypeError: terminated"
}

We’ve seen this issue for a long time, but the frequency has increased significantly over the last 2 days. It happens in both streamed and non-streamed MAS runs.

We use the gpt-4.1 and gpt-5 model families across our MASes.

Full error (from our logs):

"message": "terminated",
2026-01-14 10:07:06.941 CET
"stack": "TypeError: terminated
    at Fetch.onAborted (node:internal/deps/undici/undici:11322:53)
    at Fetch.emit (node:events:524:28)
    at Fetch.terminate (node:internal/deps/undici/undici:10480:14)
    at Object.onError (node:internal/deps/undici/undici:11443:38)
    at Request.onError (node:internal/deps/undici/undici:2210:31)
    at Object.errorRequest (node:internal/deps/undici/undici:1707:17)
    at TLSSocket.<anonymous> (node:internal/deps/undici/undici:6433:16)
    at TLSSocket.emit (node:events:536:35)
    at node:net:343:12
    at TCP.done (node:_tls_wrap:648:7)"

Because the SDK uses the Responses API by default, this may be related to the following thread:

https://community.openai.com/t/200-ok-from-v1-responses-but-body-times-out-und-err-body-timeout/1371083

This issue may also be related:

#744

And this is the corresponding “twin” issue in the OpenAI Developer Community:

https://community.openai.com/t/agents-sdk-typeerror-terminated/1371661

If there are any known incidents, rate limits, networking changes, or recommended client settings for these model families that could explain the recent increase, we’d appreciate any guidance. We’d also like to understand whether this error is caused by our system (e.g., timeouts/aborts/network/proxy behavior) or if it’s originating from the OpenAI backend.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions