Open stealthymonkey opened 10 months ago
did you fill in the cookie ids swid
and espn_s2
. They are both required for private leagues.
I can reproduce your error if I omit the two cookie ids. Also, you must be seeing these warnings:
I did fill in both but still no bueno :( I sent over some screenshots. But the public id you have mentioned does work for me.
I tried using the apps on 12/3/2023 but keep getting these error messages. On both apps (https://espn-nba-fantasy-head-to-head-analysis.streamlit.app/, https://espn-nba-fantasy-post-round-analysis.streamlit.app/). I am in a private league but putting in both ids. They seem to register because the drop-down with teams has the correct list of teams from my league but no data or output comes up.
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 534, in _run_script exec(code, module.dict) File "/mount/src/espn-nba-fantasy/src/post_round_analysis.py", line 181, in
main()
File "/mount/src/espn-nba-fantasy/src/post_round_analysis.py", line 102, in main
espn = EspnFantasyRoundAnalysis(
File "/mount/src/espn-nba-fantasy/src/EspnFantasyRoundAnalysis.py", line 14, in init
super().init(cookies, league_settings)
File "/mount/src/espn-nba-fantasy/src/EspnFantasyLeague.py", line 65, in init
self.set_league_team_division_settings()
File "/mount/src/espn-nba-fantasy/src/EspnFantasyLeague.py", line 153, in set_league_team_division_settings
data = self.get_division_team_setting_data()
File "/mount/src/espn-nba-fantasy/src/EspnFantasyLeague.py", line 108, in get_division_team_setting_data
self.division_setting_data = self.get_espn_data(
File "/mount/src/espn-nba-fantasy/src/EspnFantasyLeague.py", line 98, in get_espn_data
raise ValueError('Error fetching the teams data')