JaseZiv/worldfootballR

Error when using non-"shooting" stat_type arguments in fb_league_stats function

Closed this issue · 1 comments

Hello,

I've encountered an issue with the fb_league_stats function in the worldfootballR library. The function operates as expected when I use "shooting" as the argument for stat_type. However, attempting to use other stat_type arguments, such as "standard", "passing", etc., results in an error.

Error Message
"Error: Request failed after 3 attempts."

Specifications

  • Library version 0.6.5.3
  • R version 4.3.2
  • OS: macOS Sonoma 14.2
library(worldfootballR)
packageVersion("worldfootballR")

national_league_2024_player_stats <- fb_league_stats(
  country = "ENG",
  gender = "M",
  season_end_year = "2022",
  tier = "1st",
  stat_type = "standard",
  team_or_player = "player"
)
View(national_league_2024_player_stats)

sessionInfo()

Expected Behavior:
The function should return player stats for the specified league, season, and stat_type without errors.

Actual Behavior:
The function returns an error message stating the request failed after 3 attempts when stat_type is set to anything other than "shooting".

Has anyone experienced anything similiar?
Any guidance on resolving or working around this problem would be greatly appreciated.

Thank you for your assistance.

Just saw: #318
Closing issue.