ffverse / ffscrapr

R API Client for Fantasy Football League Platforms
https://ffscrapr.ffverse.com
Other
82 stars 21 forks source link

espn api endpoints not working #427

Closed tanho63 closed 4 months ago

tanho63 commented 4 months ago

see ffverse/ffsimulator#70

jacobakaye commented 2 months ago

Is this still an issue?

tanho63 commented 2 months ago

I don’t know, are you having problems?

jacobakaye commented 2 months ago

Yes, this is the issue

> espn_conn <- espn_connect(season = 2023, league_id = 352072624)
> mfl_sim <- ff_simulate(conn = espn_conn, n_seasons = 100)
── Starting simulation 2024-05-20 18:28:21.576716 ─────────────────────────────────────────────────────────────────────────────────
✔ Importing data ... done
Error in espn_getendpoint_raw(conn, url_query, xff) : 
  object 'parsed' not found
In addition: Warning message:
ESPN API did not return json while calling https://fantasy.espn.com/apis/v3/games/ffl/seasons/2023/segments/0/leagues/352072624?view=mSettings
tanho63 commented 2 months ago

Have you installed the latest development version of ffscrapr? (make sure to restart R first)

jacobakaye commented 2 months ago

Looks like that fixed it. Thank you