Skip to content

SocketError: other side closed #9775

@cloudycotton

Description

@cloudycotton

Description

I'm facing a problem where if my agent streams for long (we have agent that runs for 100+ steps and write big files), I get error socket connection closed error. It always happens during streaming a big write to a file using a tool.

This seems to happen across providers (anthropic, openai).

AI SDK Version

latest verison of anthropic provider and ai sdk.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai/corecore functions like generateText, streamText, etc. Provider utils, and provider spec.support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions