Skip to content

[BUG] MobileWebAuth.cli_login raises NoneType error #468

Description

@InterStella0

Description
Mobile Authenticator raise a NoneType error on attempting to login with cli_login

Steps to Reproduce the behavior

  1. Set username and password on the constructor
  2. use cli_login
  3. do the captcha
  4. do the 2FA

Code

fromsteam.webauthimportMobileWebAuthusername, password="", ""wa=MobileWebAuth(username, password)
wa.cli_login()

Expected behavior
It should give me a valid error/successful login

Tracebacks

Traceback (mostrecentcalllast):
File"U:\Programming\PycharmProjects\steam_profile\venv\Lib\site-packages\steam\webauth.py", line266, incli_loginreturnself.login(password, captcha, email_code, twofactor_code, language)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File"U:\Programming\PycharmProjects\steam_profile\venv\Lib\site-packages\steam\webauth.py", line193, inloginifresp['success'] andresp['login_complete']:
~~~~^^^^^^^^^^^TypeError: 'NoneType'objectisnotsubscriptable

It looks like self._send_login is returning None somehow.

Versions Report

python -m steam.versions_report
steam: 1.4.4Dependencies:
vdf: 3.4protobuf: 3.20.3requests: 2.32.3cachetools: 5.4.0gevent: 24.2.1gevent-eventemitter: 2.1pycryptodomex: 3.20.0enum34: Not Installedwin-inet-pton: Not InstalledPython runtime:
executable: U:\Programming\PycharmProjects\steam_profile\venv\Scripts\python.exeversion: 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)]platform: win32System info:
system: Windowsmachine: AMD64release: 10version: 10.0.22631

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions