You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from soccerapi.api import Api888Sport
api = Api888Sport()
url = 'https://www.888sport.com/#/filter/football/italy/serie_a'
odds = api.odds(url)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.9/site-packages/soccerapi/api/base.py", line 28, in odds
odds_to_parse = self.requests(self.url_to_competition(url))
File "/usr/local/lib/python3.9/site-packages/soccerapi/api/888sport.py", line 40, in requests
'full_time_result': self._request(competition, 12579),
File "/usr/local/lib/python3.9/site-packages/soccerapi/api/888sport.py", line 65, in _request
return self.session.get(url, params=params).json()
File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.9/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.9/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
I am pretty sure this is due to Kambi or Varnish blocking IP addresses after a while.
Here is an even simpler example highlighting what happens:
The error occurs on a server located in DE. I can confirm that other servers (also in DE) which have not been used to fetched Kambi data do not have this issue. So this leads me to believe that it must be due to some sort of restrictions/blocking.
Anyone has any ideas on how to tackle this issue. Only thing I can think of are: Proxy, IP rotating or other such measures. Maybe someone has a better idea.
The text was updated successfully, but these errors were encountered:
The IP address will be blacklisted. Not sure if they have a master list which you happen to be appearing from (most Azure IPs fail to work) or that you've hit a limit and been added to it. Only option is to use a different IP. Never seen one released.
Hi all,
I am experiencing the following error
I am pretty sure this is due to Kambi or Varnish blocking IP addresses after a while.
Here is an even simpler example highlighting what happens:
The error occurs on a server located in DE. I can confirm that other servers (also in DE) which have not been used to fetched Kambi data do not have this issue. So this leads me to believe that it must be due to some sort of restrictions/blocking.
Anyone has any ideas on how to tackle this issue. Only thing I can think of are: Proxy, IP rotating or other such measures. Maybe someone has a better idea.
The text was updated successfully, but these errors were encountered: