Open DJJ05 opened 3 years ago
Update:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/r6sapi/players.py", line 307, in get_rank
result = yield from self.load_rank(region, season, data=data)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/r6sapi/players.py", line 277, in load_rank
rank_definitions = yield from self.auth.get_rank_definitions()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/r6sapi/auth.py", line 522, in get_rank_definitions
data = yield from resp.json()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1097, 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://www.ubisoft.com/en-gb/game/rainbow-six/siege/stats')
After waiting several minutes, the program eventually throws a ContentTypeError. This applies for all 3 regions I've tried, NA, EU, and ASIA.
what version of the library are you using?
Here is my full code:
After executing this code, accessing attributes such as
matches_won
, orxp
seems to work fine, however as soon as the commented outload_rank
is added into the program, the program will never go past that, any code below that line will not execute at all, and no exceptions are caught by the except clause. It seems to simply freeze the loop when ran.