Skip to content

Client interceptor not working for failed requests? #1994

@aaronb97

Description

@aaronb97

Description

I can't figure out if interceptors for failed network requests are broken or if I'm just not doing something right. Here I messed up the base URL for the client and added a log in the response interceptor for a status code greater than 200 but nothing is logged. I also added an interceptor for error but nothing is logged there either.

Image

Reproducible example or configuration

https://stackblitz.com/edit/hey-api-example-jgynnupd?file=src%2FApp.tsx

OpenAPI specification (optional)

No response

System information (optional)

No response

Metadata

Metadata

Assignees

Labels

bug 🔥Something isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions