billy-yoyo / RainbowSixSiege-Python-API

Asynchronous python api for rainbow six siege (r6sapi)
MIT License
130 stars 31 forks source link

player.get_rank() is broken (https://r6unhash.tk/) outdated? #67

Closed RAYs3T closed 3 years ago

RAYs3T commented 3 years ago
  File "/usr/local/lib/python3.8/site-packages/r6sapi/players.py", line 307, in get_rank
    result = yield from self.load_rank(region, season, data=data)
  File "/usr/local/lib/python3.8/site-packages/r6sapi/players.py", line 277, in load_rank
    rank_definitions = yield from self.auth.get_rank_definitions()
  File "/usr/local/lib/python3.8/site-packages/r6sapi/auth.py", line 522, in get_rank_definitions
    data = yield from resp.json()
  File "/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 790, in json

aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8'

Jackywathy commented 3 years ago

probably caused by the .json files in the definitions redirecting to the main site -> https://www.ubisoft.com/en-au/game/rainbow-six/siege/stats instead of returning json as it did before

billy-yoyo commented 3 years ago

Will be fixed by the pull request previously mentioned