GamerNoTitle / Valora

VLR (Valora) is a website that can help you check your VALORANT daily store/night market/accessory store without opening the game or downloading an APP | 瓦罗兰特商店查询,无需安装任何软件即可帮助你查询每日商店、夜市和配件商店的网页
https://val.bili33.top
GNU Affero General Public License v3.0
37 stars 8 forks source link

If you cannot login, please report it here. | 如果你无法登陆,请在这里反映 #124

Open GamerNoTitle opened 10 months ago

GamerNoTitle commented 10 months ago

请选择你所使用的Valora版本

正式版 https://val.bili33.top

如果你选择了第三方版本,请在这里输入你使用的Valora网址

No response

请输入你遇到问题的网址(例如:https://val.bili33.top/market

https://val.bili33.top/api/login

请提供复现的步骤

直接登录,然后报错

请贴入报错页面弹出的日志

服务器发生了以下错误:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.10/site-packages/simplejson/__init__.py", line 514, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.10/site-packages/simplejson/decoder.py", line 386, in decode
obj, end = self.raw_decode(s)
File "/usr/local/lib/python3.10/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 "/usr/local/lib/python3.10/site-packages/flask/app.py", line 2529, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1825, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1823, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1799, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/app/app.py", line 233, in RiotLogin_handler
return RiotLogin(app, request)
File "/app/utils/api.py", line 41, in RiotLogin
user.auth()
File "/app/utils/RiotLogin.py", line 56, in auth
tokens = self.authorize(MFACode)
File "/app/utils/RiotLogin.py", line 94, in authorize
data = r.json()
File "/usr/local/lib/python3.10/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)

请提供相关信息的截图

No response

还有更多信息?请在下面附上

No response

GamerNoTitle commented 10 months ago

2023.8.30 又可以登陆了 暂时不改 本issue仍然保持开放状态,如果无法登陆请在此反映

GamerNoTitle commented 10 months ago

注:关于RiotClient的UA,以riotClientBuild70.0.0.247.1382为例,UA应该呈现为RiotClient/70.0.0.247.1382 riot-status (Windows;10;;Professional, x64)

GamerNoTitle commented 10 months ago

已经对UA进行了修改,如果后期出现无法登陆的情况请在此反映

kevinyasuo commented 10 months ago

image

kevinyasuo commented 10 months ago

登录不了

GamerNoTitle commented 10 months ago

登录不了

看起来是在设置cookie的时候出现了问题,登录的时候获取不到你的玩家名,是新号吗?

kevinyasuo commented 10 months ago

哦~(⊙o⊙)是的!是新号,原来是这个问题啊~,还以为是登录太多账号造成的呢

GamerNoTitle commented 10 months ago

哦~(⊙o⊙)是的!是新号,原来是这个问题啊~,还以为是登录太多账号造成的呢

新号必须设定了玩家名+tag过后才可以登录,例如Valora#val

vitorhenrique123 commented 1 month ago

Hey hey!

I'm encountering the same issue after setting up on a VPS. It seems like Cloudflare might be blocking it? I'm receiving a 403 error on the request.

GamerNoTitle commented 1 month ago

Hey hey!

I'm encountering the same issue after setting up on a VPS. It seems like Cloudflare might be blocking it? I'm receiving a 403 error on the request.

Hi, thank you for your report. Have you ever tried to login with this wheel? https://github.com/Prodzify/Riot-auth If you haven't, try to use it and see the result is still 403 or not.

vitorhenrique123 commented 1 month ago

Hey Hey!

Thanks for the answer!

I tested with this lib and received the following message: image

GamerNoTitle commented 1 month ago

Hey Hey!

Thanks for the answer!

I tested with this lib and received the following message: image

It seems that you are not using https://github.com/ohlunaaa/Riot-auth but https://github.com/ohlunaaa/Valorant-auth Besides, I've tested https://github.com/ohlunaaa/Riot-auth by myself and it seemed that the way to bypass cloudflare's WAF is now unable to use. Unless the lib was updated or I made a lib to bypass this, or we can't log account in this way :<

GamerNoTitle commented 1 month ago

I will try to make one later. If I have further progress, I will post it here. Thank you for your report or I will not know this :D

vitorhenrique123 commented 1 month ago

Sorry about that! I sent you the wrong screenshot. I tested both libraries. The first one (your link) actually returned a 403 error too. I'm going to try some methods to bypass Cloudflare as well. I'll send updates here as soon as I can.

GamerNoTitle commented 1 month ago

Sorry about that! I sent you the wrong screenshot. I tested both libraries. The first one (your link) actually returned a 403 error too. I'm going to try some methods to bypass Cloudflare as well. I'll send updates here as soon as I can.

I've tried using VPN to do the http request and it would work. If you cannot login, you can try using VPN. It seems that Riot Games has blocked some ASN to access their log service.