Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

498 Error #30

Open
dupuishugo80 opened this issue Sep 10, 2024 · 3 comments
Open

498 Error #30

dupuishugo80 opened this issue Sep 10, 2024 · 3 comments

Comments

@dupuishugo80
Copy link

Hi,

When i try to login i got http 498 Error,

Traceback (most recent call last):
File "D:\DEV\ValTrack\python-riot-auth\script.py", line 7, in
asyncio.run(auth.authorize(username="myuser", password="mypassword"))
File "D:\Python\Lib\asyncio\runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "D:\Python\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python\Lib\asyncio\base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "D:\DEV\ValTrack\python-riot-auth\riot_auth\auth.py", line 290, in authorize
return await self.__fetch_access_token(session, body, headers, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\DEV\ValTrack\python-riot-auth\riot_auth\auth.py", line 183, in __fetch_access_token
async with session.put(
File "D:\Python\Lib\site-packages\aiohttp\client.py", line 1197, in aenter
self._resp = await self._coro
^^^^^^^^^^^^^^^^
File "D:\Python\Lib\site-packages\aiohttp\client.py", line 696, in _request
resp.raise_for_status()
File "D:\Python\Lib\site-packages\aiohttp\client_reqrep.py", line 1070, in raise_for_status
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 498, message='', url=URL('https://auth.riotgames.com/api/v1/authorization')

Thanks

@floxay
Copy link
Owner

floxay commented Sep 10, 2024

Please consult the below map;
image

@dupuishugo80
Copy link
Author

What change should be made to the code with these region codes?

@floxay
Copy link
Owner

floxay commented Sep 10, 2024

Try from a different IP from another country

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

No branches or pull requests

2 participants