Skip to content

[Bug]: raise JSONDecodeError of leaguefinder api #526

@DirkFi

Description

@DirkFi

NBA API Version

V1.8.0

Issue

i try to use the leaguegamefinder like the code part below.

but got error:
raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0).
i also try the GET api request with postman, seems that parameters with DateFrom & DateTo does not work now.
From this post, I tested with url parameters start_date & end_date and it worked. Interstingly, I found that DateBegin & DateEnd also worked.
Do we need to change the implementation of the api to make it happen? I'm willing to help if needed.

Code

from nba_api.stats.endpoints import leaguegamefinder, boxscoreadvancedv3
start_date = '2021-01-01'
end_date = '2021-01-31'

gamefinder = leaguegamefinder.LeagueGameFinder(date_from_nullable=start_date, date_to_nullable=end_date)
games_df = gamefinder.get_data_frames()[0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    endpoint: third-party issueIssues, unrelated to the library, that exists within the 3rd-party's API service.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions