Comments (12)
Will test this tonight and give you an update!
from espn-api.
Correct!
from espn-api.
Are the two leagues full? For that error to happen there is a team ID in the Team endpoint that is not in the Roster endpoint which seems odd to me.
from espn-api.
That's likely the issue, but I can't validate it. This is 2018 season, and between 2018 and 2019 we had some owner changes. It's possible we had slots open when league year changed as we had a 3 week window between owners leaving and new ones joining. ESPN won't let me view the 'Members' page for a 2018 league to confirm.
from espn-api.
That's interesting especially since the 2018 season is over and the data shouldn't change after that. I will look into a fix to make sure it does not crash.
If your able to attached the data for these two endpoints below for the league that is crashing, it would help me a ton!
insert your league id for "league_id".
https://fantasy.espn.com/apis/v3/games/FFL/seasons/2018/segments/0/leagues/league_id?view=mTeam
https://fantasy.espn.com/apis/v3/games/FFL/seasons/2018/segments/0/leagues/league_id?view=mRoster
Those endpoints shouldn't have any sensitive data in them.
from espn-api.
553759.roster.txt
553759.team.txt
Here you go. Thanks for looking into this!
from espn-api.
Perfect, I will try to work on it in the next couple days!
from espn-api.
@kstreepy I believe branch #24 should fix this issue. When you have time would you be able to pull branch #24 down and try using ff_espn_api with your league that it was crashing on?
I want to make sure there is no other errors!
from espn-api.
I'll be honest, I tried to figure out how to pull the specific branch with no luck. Happy to do it to test, but need some guidance on what the command would be. I've been trying variations of pip install git+https://github.com/cwendt94/ff-espn-api.git@[] but can't find the correct code to replace the brackets. Thanks in advance.
from espn-api.
No worries. So if run the commands below then use python3 inside the directory it will use that braches ff_espn_api package.
be inside ff-espn-api folder using command line
ff-espn-api$ git pull origin
ff-espn-api$ git branch -a
* master
remotes/origin/AddDraftFeature#2
remotes/origin/FreeAgencyList#18
remotes/origin/FreeAgentFilters
remotes/origin/HEAD -> origin/master
remotes/origin/KeyErrorPlayerNotDrafted
remotes/origin/TeamOwnerFieldEmpty#22
remotes/origin/master
ff-espn-api$ git checkout TeamOwnerFieldEmpty#22
Branch 'TeamOwnerFieldEmpty#22' set up to track remote branch 'TeamOwnerFieldEmpty#22' from 'origin'.
Switched to a new branch 'TeamOwnerFieldEmpty#22'
ff-espn-api$ git branch
* TeamOwnerFieldEmpty#22
master
Now from the directory you should be able to run the python3 cli and it will use the directories ff_espn_api package over the global one.
from espn-api.
Thanks for the steps. Was able to import the problematic league from this branch.
from espn-api.
Awesome! So no errors?
from espn-api.
Related Issues (20)
- NFL position mapping incorrect HOT 5
- Team Names not correct HOT 2
- Unable to access league data for 2018 season HOT 1
- Teams' names not updated HOT 1
- League current_week field returns 0 HOT 8
- meaning of statistics keys HOT 3
- Fix Team Data Change Working? HOT 1
- Add Owner info to Team
- Pulling League Data Errors in new season 23-24 HOT 1
- 'location' in data json doesn't exist anymore. Fix is provided HOT 2
- ESPN API Updated Key Names for Team Name HOT 1
- KeyError: 'location' in Fantasy BBall H2H Categories HOT 2
- Add back functionality to pull owner names HOT 4
- Getting "json.decoder.JSONDecodeError: Unterminated string" starting after NFL week 6 HOT 4
- Add accepted trade activity to fantasy basketball activity list HOT 3
- Player/Pick projected bid amount HOT 5
- slot_position only returning "PG" HOT 1
- Unable to get projected score of games of final completed week of season HOT 1
- Issue with Add full owner info to team commit HOT 2
- League.previousSeasons no longer an attribute? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from espn-api.