Skip to content

failed fetches not mapped to APICallError #6370

Closed
@YousefED

Description

@YousefED

Description

According to this code, the intention seems to map failed fetches to APICallError.

However, the error detection is looking for fetch failed, while browser-based fetch() errors normally throw Failed to Fetch,

Image

It could be that in nodejs / next environments fetch failed is thrown, but I think we should handle both cases?

AI SDK Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai/corebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions