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

Unable to connect to Huawei B535-333 with the error 125003 (Wrong token) #187

Open
Wildside-UK opened this issue Jun 4, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Wildside-UK
Copy link

Traceback (most recent call last):
File "C:\Users\steve\AppData\Local\Programs\Python\Python311\Lib\site-packages\huawei_lte_api\api\User.py", line 61, in _login
result = self._session.post_set('user/login', {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\steve\AppData\Local\Programs\Python\Python311\Lib\site-packages\huawei_lte_api\Session.py", line 215, in post_set
self._post(endpoint, data, refresh_csrf, prefix, is_encrypted, is_json)
File "C:\Users\steve\AppData\Local\Programs\Python\Python311\Lib\site-packages\huawei_lte_api\Session.py", line 34, in wrapped
return fn(*args, **kw)
^^^^^^^^^^^^^^^
File "C:\Users\steve\AppData\Local\Programs\Python\Python311\Lib\site-packages\huawei_lte_api\Session.py", line 254, in _post
response_data = cast(str, self._check_response_status(self._process_response_data(response)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\steve\AppData\Local\Programs\Python\Python311\Lib\site-packages\huawei_lte_api\Session.py", line 156, in _check_response_status
raise error_code_to_exception.get(error_code, ResponseErrorException)(
huawei_lte_api.exceptions.ResponseErrorWrongSessionToken: 125003: Wrong Session Token

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\steve\Documents\GitHub\api\main.py", line 5, in
with Connection('http://admin:[email protected]/') as connection:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\steve\AppData\Local\Programs\Python\Python311\Lib\site-packages\huawei_lte_api\Connection.py", line 34, in init
self.user_session = UserSession(
^^^^^^^^^^^^
File "C:\Users\steve\AppData\Local\Programs\Python\Python311\Lib\site-packages\huawei_lte_api\api\User.py", line 27, in init
self.user.login(username, password, True)
File "C:\Users\steve\AppData\Local\Programs\Python\Python311\Lib\site-packages\huawei_lte_api\api\User.py", line 112, in login
return self._login(username, password, PasswordTypeEnum(int(state_login.get('password_type', 0))))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\steve\AppData\Local\Programs\Python\Python311\Lib\site-packages\huawei_lte_api\api\User.py", line 86, in _login
raise error_code_to_exception.get(e.code, ResponseErrorException)(
huawei_lte_api.exceptions.ResponseErrorException: 125003: Unknown

@Salamek Salamek added the bug Something isn't working label Jun 13, 2023
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