Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: ESPN Certificate has expired #71

Open
gabrielmc9 opened this issue Oct 22, 2022 · 2 comments
Open

Error: ESPN Certificate has expired #71

gabrielmc9 opened this issue Oct 22, 2022 · 2 comments

Comments

@gabrielmc9
Copy link

Hi - I've not been able to get scores for a number of leagues since the last update. Error from the log as follows:

[22.10.2022` 18:18.17.181] [LOG] [MMM-MyScoreboard] 22-Oct-22 18:18 ** ERROR ** Couldn't retrieve ESP_LALIGA data for provider ESPN: Error: certificate has expired
[22.10.2022 18:18.17.182] [LOG] [MMM-MyScoreboard] https://site.api.espn.com/apis/site/v2/sports/soccer/esp.1/scoreboard?dates=20221022&limit=200
[22.10.2022 18:18.17.189] [LOG] [MMM-MyScoreboard] 22-Oct-22 18:18 ** ERROR ** Couldn't retrieve NCAAF data for provider ESPN: Error: certificate has expired
[22.10.2022 18:18.17.191] [LOG] [MMM-MyScoreboard] https://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?dates=20221022&limit=200&groups=80
[22.10.2022 18:18.17.201] [LOG] [MMM-MyScoreboard] 22-Oct-22 18:18 ** ERROR ** Couldn't retrieve NCAAM data for provider ESPN: Error: certificate has expired
[22.10.2022 18:18.17.204] [LOG] [MMM-MyScoreboard] https://site.api.espn.com/apis/site/v2/sports/basketball/mens-college-basketball/scoreboard?dates=20221022&limit=200&groups=50

Config is as follows:

{`
module: "MMM-MyScoreboard",
position: "top_center",
classes: "default everyone",
header: "My Scoreboard",
config: {
showLeagueSeparators: true,
colored: true,
rolloverHours: 6,
viewStyle: "oneLineWithLogos",
sports: [
{
league: "ESP_LALIGA",
label: "Spain La Liga",
teams: ["BAR", "VAL", "MAD"],
},
{
league: "NFL",
label: "NFL",
// teams: ["SEA", "GB", "NYG", "NYJ"],
},
{
league: "MLB",
label: "MLB",
teams: ["NYY"],
},
{
league: "NCAAF",
label: "College Football",
teams: ["WISC"],
},
{
league: "NCAAM",
label: "College Basketball",
teams: ["WISC", "WIS"],
},
// {
// league: "NCAAM_MM",
// label: "March Madness",
// teams: ["WISC"],
// },
]
}
}

MLB and NFL scores post correctly. I tried WISC and WIS for Wisconsin. Neither work.

Thanks.

@01ZerosOnes01
Copy link

I was getting the same error but for NBA scores. What I did to fix the issue was open the ESPN.js file inside of the MMM-MyScoreboard directory at around line 395 var url = "https://site.api.espn.com/apis/site/v2/sports/" you want to change the URL from https to http. Now I get NBA scores. Odd you have to remove https. So just remove the s from https Hope this helps people who are having this issue.

@gabrielmc9
Copy link
Author

Thanks, @01ZerosOnes01 - That did the trick. Appreciate the tip!
Earlier I thought maybe the issue might have been related to expired certs on my instance of Buster. I haven't updated RaspiOS in a while. Updates made no difference.
I wonder why more people aren't having the same issue...

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants