Skip to content

MakeCall throws a generic error while logging the actual error details #16

@madhava-yallanki

Description

@madhava-yallanki

When an API error occurs, the SDK logs the detailed error response but only throws a generic Error with response.statusText The detailed JSON error gets lost and we are not able to access it.

Here is the exact line where the original error is getting lost.

https://github.com/exotel/exotel-ip-calling-crm-websdk/blob/main/src/ExotelWebPhoneSDK.ts#L164

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