Skip to content

server rejected WebSocket connection: HTTP 401 #3133

@ibrhimAli

Description

@ibrhimAli

Describe the bug

~2 months ago I faced an issue with http requests to openai agents, why? because my requests was taking too long ~100k token per request.
Suddenly those http requests stopped and return no results.

I migrated to use websocket which helped fixing the issue and improved the performance with 10-40%.

Today the websocket isn't available and every request returning below:

{ "error": "server rejected WebSocket connection: HTTP 401" }

Debug information

  • Agents SDK version: latest
  • Python version (e.g. Python 3.13)

Repro steps

Just try any request using websocket setup.

Expected behavior

It should return answer/response instead of errors.

PS:
I'm not sure if i'm the only one, but I faced many reliability issues with openai platform lately.

this one was days ago: https://community.openai.com/t/chat-completion-tab-on-platform-isnt-loading/1380271?u=budy

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions