Skip to content

Cannot read properties of undefined (reading 'data') - ETIMEDOUT #26

@sbutler2901

Description

@sbutler2901

Version: 2.2.1.

handleRequest assumes that error.response exists when catching an error thrown by Axios. As a result, creating error.message in the catch block throws a type error.

I've had this occur when a ETIMEDOUT code from Axios is returned. Based on https://axios-http.com/docs/handling_errors the catch block should check whether error.response or error.request exists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions