Skip to content

[BUG/English]: Login error  #152

@engineerknow

Description

@engineerknow

Please select the Valora version you are using

Official Version https://val.bili33.top

If you selected "third-party version", please enter the Valora URL you are using here

No response

Please enter the URL where you encountered the issue (e.g., https://val.bili33.top/market)

https://val.bili33.top/login

Please provide the steps to reproduce the issue

We're very sorry, there was an error on the server
500 Internal Server Error

The server encountered the following error
Traceback (most recent call last):
File "C:\Users\Mark-adev\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mark-adev\AppData\Local\Programs\Python\Python311\Lib\site-packages\simplejson_init_.py", line 514, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mark-adev\AppData\Local\Programs\Python\Python311\Lib\site-packages\simplejson\decoder.py", line 386, in decode
obj, end = self.raw_decode(s)
^^^^^^^^^^^^^^^^^^
File "C:\Users\Mark-adev\AppData\Local\Programs\Python\Python311\Lib\site-packages\simplejson\decoder.py", line 416, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\Mark-adev\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask\app.py", line 2529, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mark-adev\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask\app.py", line 1825, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mark-adev\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask\app.py", line 1823, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mark-adev\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask\app.py", line 1799, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mark-adev\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask_profiler\flask_profiler.py", line 137, in wrapper
return wrapped(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mark-adev\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask_profiler\flask_profiler.py", line 109, in wrapper
returnVal = f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "D:\WEB\Valora\app.py", line 238, in RiotLogin_handler
return RiotLogin(app, request)
^^^^^^^^^^^^^^^^^^^^^^^
File "D:\WEB\Valora\utils\api.py", line 41, in RiotLogin
user.auth()
File "D:\WEB\Valora\utils\RiotLogin.py", line 56, in auth
tokens = self.authorize(MFACode)
^^^^^^^^^^^^^^^^^^^^^^^
File "D:\WEB\Valora\utils\RiotLogin.py", line 94, in authorize
data = r.json()
^^^^^^^^
File "C:\Users\Mark-adev\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

You can try refreshing this page or clicking the "Reset Site Data" button below to solve this problem.
If you have already clicked the button below but still encounter this problem, try clearing your browser's cookies to reset the session
If you have tried both of the above methods, please contact the developer with this error information!

Please paste the logs displayed on the error page

The server encountered the following error
Traceback (most recent call last):
File "C:\Users\Mark-adev\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mark-adev\AppData\Local\Programs\Python\Python311\Lib\site-packages\simplejson\__init__.py", line 514, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mark-adev\AppData\Local\Programs\Python\Python311\Lib\site-packages\simplejson\decoder.py", line 386, in decode
obj, end = self.raw_decode(s)
^^^^^^^^^^^^^^^^^^
File "C:\Users\Mark-adev\AppData\Local\Programs\Python\Python311\Lib\site-packages\simplejson\decoder.py", line 416, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\Mark-adev\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask\app.py", line 2529, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mark-adev\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask\app.py", line 1825, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mark-adev\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask\app.py", line 1823, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mark-adev\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask\app.py", line 1799, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mark-adev\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask_profiler\flask_profiler.py", line 137, in wrapper
return wrapped(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mark-adev\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask_profiler\flask_profiler.py", line 109, in wrapper
returnVal = f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "D:\WEB\Valora\app.py", line 238, in RiotLogin_handler
return RiotLogin(app, request)
^^^^^^^^^^^^^^^^^^^^^^^
File "D:\WEB\Valora\utils\api.py", line 41, in RiotLogin
user.auth()
File "D:\WEB\Valora\utils\RiotLogin.py", line 56, in auth
tokens = self.authorize(MFACode)
^^^^^^^^^^^^^^^^^^^^^^^
File "D:\WEB\Valora\utils\RiotLogin.py", line 94, in authorize
data = r.json()
^^^^^^^^
File "C:\Users\Mark-adev\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

You can try refreshing this page or clicking the "Reset Site Data" button below to solve this problem.
If you have already clicked the button below but still encounter this problem, try clearing your browser's cookies to reset the session
If you have tried both of the above methods, please contact the developer with this error information!

Please provide screenshots of relevant information

สกรีนช็อต 2024-06-12 225332

Any additional information? Please include it below

สกรีนช็อต 2024-06-12 225332

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingduplicateThis issue or pull request already exists

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions