Skip to content

QR code request denial unhandled #47

@undrscrdt

Description

@undrscrdt

Describe the bug

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

Versions

node-steam-session@1.9.0
node@22.9.0

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 (steam-session@1.9.0\node_modules\steam-session\dist\helpers.js:14:15)
    at AuthenticationClient.sendRequest (steam-session@1.9.0\node_modules\steam-session\dist\AuthenticationClient.js:243:46)   
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async AuthenticationClient.pollLoginStatus (steam-session@1.9.0\node_modules\steam-session\dist\AuthenticationClient.js:147:22)
    at async LoginSession._doPoll (steam-session@1.9.0\node_modules\steam-session\dist\LoginSession.js:493:28) {
  eresult: 9
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions