souzatharsis / pyETT

pyETT: Python library for Eleven VR Table Tennis data
https://pyett.readthedocs.io
Other
7 stars 1 forks source link

mimetype problem #11

Open ifuchs opened 2 years ago

ifuchs commented 2 years ago

Trying to play around with pyETT and when I try the statement in the "Getting started" (https://pyett.readthedocs.io/en/latest/pyETT_demo.html#) eleven.user_search_dataframe('Highlander').head() I get an error about the Mimetype aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html', url=URL('https://www.elevenvr.club/accounts/search/Highlander?page%5Bnumber%5D=39')

anttir commented 1 year ago

same error comes with the following request:

----> 1 m = p.get_matches_dataframe()

[/usr/local/lib/python3.7/dist-packages/aiohttp/client_reqrep.py](https://localhost:8080/#) in json(self, encoding, loads, content_type)
   1029                     message=('Attempt to decode JSON with '
   1030                              'unexpected mimetype: %s' % ctype),
-> 1031                     headers=self.headers)
   1032 
   1033         stripped = self._body.strip()  # type: ignore

ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html', url=URL('https://elevenvr.club/api/v1/accounts/338475/matches/?page%5Bnumber%5D=25&unranked=false')
souzatharsis commented 1 month ago

The underlying Eleven web API has changed causing breaking changes. We'll need to update pyETT, accordingly.