mikemountain / fantasy-football-scoreboard

Display the score of your fantasy football team on a Raspberry Pi driven RGB LED matrix for maximum ease of disappointment
GNU General Public License v3.0
63 stars 9 forks source link

Error encountered. Can't reach ESPN API #48

Closed LethalDose3 closed 2 months ago

LethalDose3 commented 2 months ago

Displays "Error encountered. Can't reach ESPN API " after attempting to download avatars

Downloading avatar for TEAM(1-13) /home/pi/fantasy-football-scoreboard/logos/default_avatar.png Downloading avatar for TEAM14 Error encountered. Can't reach ESPN API

stsmith313 commented 2 months ago

ESPN updated their API URL. You'll have update in the espn_api_parser.py file to https://lm-api.reads.fantasy.espn.com/apis/v3/games/ffl/seasons

LethalDose3 commented 2 months ago

I updated the API URL previously, though https://lm-api.reads.fantasy.espn.com/apis/v3/games/ffl/seasons never resolved for me, I had to change it to https://lm-api-reads.fantasy.espn.com/apis/v3/games/ffl/seasons which I found referenced in the reddit thread below

https://www.reddit.com/r/fantasyfootballcoding/comments/16dv9ih/espn_api_live_draft_player_pick_info/

stsmith313 commented 2 months ago

Ah yes you're correct, sorry. I didn't realize it was a period and not a dash. I'll update that code. Is it working for you?

mikemountain commented 2 months ago

Thanks for this, Sam. I really need to set up a testing suite for ESPN!

@LethalDose3 feel free to reopen this issue if you have any more bugs.

stsmith313 commented 2 months ago

All good. Sorry for the mess up guys!