andrewRowlinson / mplsoccer

Football pitch plotting library for matplotlib
MIT License
391 stars 80 forks source link

Unable to fetch match data #97

Closed RishabAgr closed 11 months ago

RishabAgr commented 11 months ago

I was using the Sbopen parser to fetch data from the Statsbomb database and encountered the following error:

image

My internet connection has been working smoothly, and previous calls to the Statsbomb dataset have been successful, but after this issue arose for the first time, I have been unable to fetch any data at all.

andrewRowlinson commented 11 months ago

Can you try again? I cannot replicate this with Google Collab. Screenshot_20230927-175015

RishabAgr commented 11 months ago

It works on Colab for me as well, but somehow it doesn't work when I try to run it in Vscode. Is there an issue with the environment that I can resolve? For reference: I have made a virtual environment to work with the mplsoccer library and related tools. It has worked a few times before and then I didn't do any further work for a few days. Then I open up the notebook again and this error popped up.

On a previous execution of the notebook:

image

The issue now as it is:

image

The configuration of the virtual environment:

image
andrewRowlinson commented 11 months ago

You could try whether you can retrieve the file using requests only. I think that's the part that is failing:

resp = requests.get(url=url)

RishabAgr commented 11 months ago

I tried sending the request using Postman, and going to the URL using my browser window, but even with those I keep getting timeout messages.

andrewRowlinson commented 11 months ago

I'm closing this as I suspect the error isn't related to mplsoccer.