-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
statcast throwing KeyError on certain dates in 2023 #375
Comments
I have tested the I guess maybe something went wrong in concurrent mode according to the error message Maybe try to turn off the stats = statcast(start_dt="2023-06-25", parallel=False) |
I discovered the issue -- there must have been something corrupted in the cache. Disabling the cache fixed the problem. But attempting to purge the cache also results in an error.
|
I found that some cache file not save completely that cause {"func": "_small_request", "args": [ Because it is not valid json so it will raise decode error. You can find the cache files from IMO, currently we can only delete those invalid cache file manually since they also do not contain |
Should be fixed in #438 |
While getting all of the statcast data, I kept getting an error around 98%. So I eventually was able to narrow it down to 2023-06-25 being the first problematic one day. Other day(s) past this one also cause the error, but I've stopped at 06-25 because this amount of data is good enough for my current purposes.
The code I'm executing is this:
stats = statcast(start_dt="2023-06-25")
Upon execution, my terminal looks like this:
The text was updated successfully, but these errors were encountered: