Skip to content

Exported sender is not reset on AUTH_KEY_UNREGISTERED error #770

Open
@AshenCoon

Description

@AshenCoon

Sometimes Im getting AUTH_KEY_UNREGISTERED error while trying to download file from secondary data centers, and it seems like in that case sender is suppose to be reset from _exportedSenderPromises but the error persists until application restart.

i suspect that the reason is that the condition is suppose to check for e.errorMessage not e.message

if (
e.message === "AUTH_KEY_UNREGISTERED" ||
e.message === "SESSION_REVOKED"
) {
// 'AUTH_KEY_UNREGISTERED' for the main sender is thrown when unauthorized and should be ignored
this._handleBadAuthKey(true);
}

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