Skip to content

"error.request is undefined" when a request is cancelled #548

@danxuliu

Description

@danxuliu

Regression introduced in #510

config, response and request may not be defined in some cases, so since #510 trying to destructure request: { responseURL } fails in those cases (error.request is undefined). This can be seen when a request is canceled in Talk, although I do not know if the problem is specific to using the deprecated CancelToken or if it happens too when a request is aborted using the AbortController (or in other cases).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions