Skip to content

Retrieving headers on failed request #311

@Eli-Black-Work

Description

@Eli-Black-Work

Hello 🙂

Is there any way to retrieve headers on a failed request? I'm utilizing useFetch to do a POST to an authentication server. The POST fails with the code net::ERR_FAILED but also returns valuable headers.

I've tried retrieving the headers by accessing the data.error.response.headers property, but it looks like data.error.response is null when the request has failed with net::ERR_FAILED instead of via a response code (such as 500 or 401).

Thanks 🙂

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions