Skip to content

API calls hang with no return (header changes?) #2

@delt87

Description

@delt87

It appears that functions are hanging again and not returning the expected dataframes. More than likely due to header changes. I've been using another package (nbastatsr) that uses the following headers:

 headers <- c(
    `Host` = 'stats.nba.com',
    `User-Agent` = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv =72.0) Gecko/20100101 Firefox/72.0',
    `Accept` = 'application/json, text/plain, */*',
    `Accept-Language` = 'en-US,en;q=0.5',
    `Accept-Encoding` = 'gzip, deflate, br',
    `x-nba-stats-origin` = 'stats',
    `x-nba-stats-token` = 'true',
    `Connection` = 'keep-alive',
    `Referer` = 'https =//stats.nba.com/',
    `Pragma` = 'no-cache',
    `Cache-Control` = 'no-cache'
  )

If possible, could you give this header a try to see if it fixes the hanging API calls? The other package that I'm using unfortunately does not have a function for the synergytables that I'm after.

Thank you!
DT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions