Skip to content
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

Errors starting on 1/22/2020 #46

Closed
jyablonski opened this issue Jan 23, 2020 · 5 comments
Closed

Errors starting on 1/22/2020 #46

jyablonski opened this issue Jan 23, 2020 · 5 comments

Comments

@jyablonski
Copy link

Hi I started getting some errors while running certain functions yesterday and I was wondering if these are reproducible issues for anyone else. I tried reinstalling the package but it didn't seem to help. I listed the 4 functions i normally use below and the error i got with each of them.

schedule <- seasons_schedule(seasons=2020, season_type="Regular Season")
Error: Column dateGame is unknown

gameLogs <- game_logs(seasons=2020, league="NBA", result_types="player", season_types="Regular Season")
Error in curl::curl_fetch_memory(url, handle = handle) :
Operation was aborted by an application callback

teamStats <- bref_teams_stats(seasons = 2020)
Error in curl::curl_fetch_memory(url, handle = handle) :
Operation was aborted by an application callback

injuryDB <- bref_injuries()
Error in eval_tidy(pair$lhs, env = default_env) :
object 'slugPlayerBREF' not found

I did have some functions that still worked though:

nba_insider_salaries()
dictionary_bref_players()
@delt87
Copy link

delt87 commented Jan 24, 2020

I've been following the same issue as reported in the nba_api for Python and the issues seems to be related to the fact that NBA API headers have changed (again). The same issue is happening in the nbaTools package and I opened an issue in that package along with the fix below. Adding the following fields to the headers call for the nbaTools package returned the expected output so I assume doing the same thing for this package will correct the hanging calls to the NBA API.

    'x-nba-stats-origin' = 'stats',
    'x-nba-stats-token' = 'true'

@emmett4
Copy link

emmett4 commented Jan 24, 2020

I have also had problems with game_logs(), which runs without ever completing.

Please help!

@abresler
Copy link
Owner

I've been following the same issue as reported in the nba_api for Python and the issues seems to be related to the fact that NBA API headers have changed (again). The same issue is happening in the nbaTools package and I opened an issue in that package along with the fix below. Adding the following fields to the headers call for the nbaTools package returned the expected output so I assume doing the same thing for this package will correct the hanging calls to the NBA API.

    'x-nba-stats-origin' = 'stats',
    'x-nba-stats-token' = 'true'

THANKS!!!

@abresler
Copy link
Owner

Reinstall the newest version

@emmett4
Copy link

emmett4 commented Jan 24, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants