Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

nfl.cache_pbp() doesn't work for the 2024 season #136

Description

@bendub21

Has anyone already reported this issue?

  • I have searched the existing issues

Have you installed the latest version of nfl_data_py?

  • I have installed the latest version of nfl_data_py

Add a description

Function call (include your input values):
nfl.cache_pbp([2024], downcast=True, alt_path="data/pbp_cache")
data_pbp = nfl.import_pbp_data([2024], downcast=True, cache=True, alt_path="data/pbp_cache")

Expectation:
2024 data gets downloaded/caches and then gets loaded into data frame

Actual result:
(terminal output)
DeprecationWarning: Caching failed for 2024, skipping.
In nfl_data_py 1.0, this will raise an exception.
Failure: HTTP Error 404: Not Found
nfl.cache_pbp(years, downcast=True, alt_path="data/pbp_cache")

(comments)
pbp_cache directory remains as it was before (e.g., no "season=2024" folder and no metadata/parquet files)

Full error message, if applicable:
See above

Any other relevant info:
2023 works fine.
And 2024 can be downloaded without caching--I'd just prefer to not spam the GitHub with requests while I'm developing/testing.

Environment

System Information:
- nfl_data_py version: 0.3.3 (latest available on PyPI)
- Python version: 3.12
- Operating System: Linux 6.8.0-71-generic
- Virtual environment: Yes (venv)

Error Details:
- Command: nfl.cache_pbp([2024], downcast=True, alt_path="data/pbp_cache")
- Error: HTTP Error 404: Not Found
- Expected: 2024 PBP data should be available since the season is complete
- Actual: Getting 404 error when trying to cache 2024 data

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions