Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exported sender is not reset on AUTH_KEY_UNREGISTERED error #770

Open
AshenCoon opened this issue Jan 17, 2025 · 0 comments
Open

Exported sender is not reset on AUTH_KEY_UNREGISTERED error #770

AshenCoon opened this issue Jan 17, 2025 · 0 comments

Comments

@AshenCoon
Copy link

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);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant