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

QR code request denial unhandled #47

Open
thecrowkeep opened this issue Sep 28, 2024 · 1 comment
Open

QR code request denial unhandled #47

thecrowkeep opened this issue Sep 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@thecrowkeep
Copy link

Describe the bug

When denying a QR code login request, the denial is not handled or parsed by the error emitter correctly.

Versions

[email protected]
[email protected]

Screenshots and Error Logs

Reproduction:

  1. Set up the example login-with-qr
  2. Run the example
  3. Scan the QR code
  4. When prompted between signing in or canceling, choose cancel
  5. => ERROR: This login attempt has failed! FileNotFound

Stacktrace:

Error: FileNotFound
    at eresultError ([email protected]\node_modules\steam-session\dist\helpers.js:14:15)
    at AuthenticationClient.sendRequest ([email protected]\node_modules\steam-session\dist\AuthenticationClient.js:243:46)   
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async AuthenticationClient.pollLoginStatus ([email protected]\node_modules\steam-session\dist\AuthenticationClient.js:147:22)
    at async LoginSession._doPoll ([email protected]\node_modules\steam-session\dist\LoginSession.js:493:28) {
  eresult: 9
}
@thecrowkeep thecrowkeep added the bug Something isn't working label Sep 28, 2024
@DoctorMcKay
Copy link
Owner

This is expected, just handle the error event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants