dfs-with-r / ffespn

Get ESPN fantasy football data
Other
2 stars 2 forks source link

Getting error for 2023 league ID = 232954200 #22

Open TheMathNinja opened 1 year ago

TheMathNinja commented 1 year ago
Error: ESPN API request failed [401]
[http://fantasy.espn.com/apis/v3/games/ffl/seasons/2023/segments/0/leagues/232954200?view=kona_player_info]

7. | stop(sprintf("ESPN API request failed [%s]\n[%s]", httr::status_code(resp), url), call. = FALSE)
6. ffespn_api(path, query, headers)
5. | ffespn_projections(season, 0, "QB", league_id = espn_league_id_2023)
TheMathNinja commented 1 year ago

My code here is: > ffespn_projections(2023, 0, "QB", league_id = 232954200) Error: ESPN API request failed [401] [http://fantasy.espn.com/apis/v3/games/ffl/seasons/2023/segments/0/leagues/232954200?view=kona_player_info]

TheMathNinja commented 1 year ago

Nvm. Old issue. I didn't click "Make league viewable to the public."