outside-edge / python-espncricinfo

Python wrapper for the ESPNCricInfo JSON API
MIT License
144 stars 65 forks source link

Issue with match.py when passing match ID = 729303 #50

Open satlujcodes opened 2 years ago

satlujcodes commented 2 years ago

Describe the bug Whenever I try using match.py with match id =729303. it's throwing error: Expecting value: line 1 column 1 (char 0). It's a valid match ID. I haven't got any issue for other match ids so far, but this one is throwing an error. On deep diving, I found out that: json_url = "https://www.espncricinfo.com/matches/engine/match/{0}.json".format(str(match_id))

This is giving: error 500 Internal Server Error

I tried json_url for other match ids and it's giving proper json object.

I don't know what's causing the issue with this match. Is it any server-side issue or am I doing something wrong?

To Reproduce -> m = Match(729303) -> m.json

Expected behavior Match(729303) should work without any error.

Screenshots Actual Error: 7293303_error JSON_url for match_id =729303 (NOT WORKING) 729303_json JSON_url for match_id =729301 (WORKING) 729301_json

Additional context Add any other context about the problem here.