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

HTTP 403 for all leagues #547

Open
benwolbransky opened this issue Jun 7, 2024 · 10 comments
Open

HTTP 403 for all leagues #547

benwolbransky opened this issue Jun 7, 2024 · 10 comments

Comments

@benwolbransky
Copy link

Sport

Football

Summary

I'm running my script which was worked previous times in the past, but now I'm getting HTTP 403 when trying to access my public league. Even when trying to access the test instance, I get this same error (league_id = 123, season 2018). For the baseball test, the same thing happens ( leauge_id = 81134470, season= 2021).

I'm not sure if I'm doing something incorrectly, but hoping someone can validate that this is not working as intended.

Logs/Data

No response

@dtcarls
Copy link
Contributor

dtcarls commented Jun 7, 2024

Are you using the latest version? It was semi-recently fixed. #539

@tkauffman42
Copy link
Contributor

Upgraded to version 0.36.0 and I am also running into this issue.

HTTPSConnectionPool(host='lm-api-reads.fantasy.espn.com', port=443): Max retries exceeded with url: /apis/v3/games/ffl/seasons/2023/segments/0/leagues/[LEAGUEID]?view=mTeam&view=mRoster&view=mMatchup&view=mSettings&view=mStandings (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1091)')))

It is happening to all scripts that I created last year. I also got the latest espn_s2 cookie for a private league

@tkauffman42
Copy link
Contributor

I did just try on another computer, it did work......

@DesiPilla
Copy link
Contributor

Make sure that the leagues have been re-activated. That could also be a cause of the error.

@bs0l
Copy link

bs0l commented Aug 21, 2024

Upgraded to version 0.36.0 and I am also running into this issue.

HTTPSConnectionPool(host='lm-api-reads.fantasy.espn.com', port=443): Max retries exceeded with url: /apis/v3/games/ffl/seasons/2023/segments/0/leagues/[LEAGUEID]?view=mTeam&view=mRoster&view=mMatchup&view=mSettings&view=mStandings (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1091)')))

It is happening to all scripts that I created last year. I also got the latest espn_s2 cookie for a private league

Did you ever end up getting this working? I am having the same issue. Confirmed that I was running 0.36 but still encountering the 403 forbidden issue.

@tkauffman42
Copy link
Contributor

I cannot get this to work on my work computer. I am not sure if that is the root cause, or if it is because I have multiple versions of Python install.

On my personal Mac, I can get it to run with no issues

@cwendt94
Copy link
Owner

What python version are you seeing this error? That might be causing it.

@bs0l
Copy link

bs0l commented Aug 23, 2024

From what I can tell I just have one version of python installed, which is 3.9.9

Edit: I sorted it out. After viewing the logs for my docker container I noticed that despite me building a new container some old versions of the API were laying around. wiped all of that and started over, now it is up and running without any 403 errors

@tkauffman42
Copy link
Contributor

Finally sat down and spent time trying to figure out what is going on

The same as bs0l, I had launcher paths in the Environment Variables that were pointing to wrong versions. I went through Program Files, AppData/Roaming and AppData/Local and removed all references of Python folder, then uninstalled Python and re-installed in a customized location that I wanted it in

@loupalladino
Copy link

For what it's worth - I had been using python 3.8 with version 0.33 all last year with no issue, but hit the 403 with this year's football league. After updating to the latest version of the API (0.38.1), it resolved the 403.

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

7 participants