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

idk how to solve this one #9

Open
aurimassiaulys opened this issue Nov 21, 2022 · 1 comment
Open

idk how to solve this one #9

aurimassiaulys opened this issue Nov 21, 2022 · 1 comment

Comments

@aurimassiaulys
Copy link

2022-11-21 13:25:02 INFO discord.client logging in using static token
2022-11-21 13:25:03 INFO discord.gateway Shard ID None has connected to Gateway (Session ID: 45c6860b551ecf3f7bce953e95a8ca32).
Bot connected.
Traceback (most recent call last):
File "/home/pi/valorantstats/ValorantRankedPointsBot/bot.py", line 111, in login
player_id, headers = await val.run(username, password)
File "/home/pi/valorantstats/ValorantRankedPointsBot/valorant_api.py", line 25, in run
data = await r.json()
File "/usr/local/lib/python3.9/dist-packages/aiohttp/client_reqrep.py", line 1104, in json
raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8', url=URL('https://auth.riotgames.com/api/v1/authorization')

@ConnorDoesDev
Copy link

Use an up-to-date User-Agent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants