Skip to content

Middleware onError doesn't work #2557

@dipras

Description

@dipras

openapi-fetch version

0.15.0

Description

I want to catch an error happen during a request. But when i tried it on React native, i can't even trigger a console when error happened. As you can see at my code below

Image

but for onRequest, there is no problem

Reproduction

  1. Write middleware onError contain console.log
  2. Trigger error request
  3. The console doesn't show up

Expected result

The console should show up when the error happened

Extra

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingopenapi-fetchRelevant to the openapi-fetch library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions