Giter Site home page Giter Site logo

Comments (12)

kstreepy avatar kstreepy commented on May 21, 2024 1

Will test this tonight and give you an update!

from espn-api.

kstreepy avatar kstreepy commented on May 21, 2024 1

Correct!

from espn-api.

cwendt94 avatar cwendt94 commented on May 21, 2024

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.

kstreepy avatar kstreepy commented on May 21, 2024

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.

cwendt94 avatar cwendt94 commented on May 21, 2024

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.

kstreepy avatar kstreepy commented on May 21, 2024

553759.roster.txt
553759.team.txt

Here you go. Thanks for looking into this!

from espn-api.

cwendt94 avatar cwendt94 commented on May 21, 2024

Perfect, I will try to work on it in the next couple days!

from espn-api.

cwendt94 avatar cwendt94 commented on May 21, 2024

@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.

kstreepy avatar kstreepy commented on May 21, 2024

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.

cwendt94 avatar cwendt94 commented on May 21, 2024

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.

kstreepy avatar kstreepy commented on May 21, 2024

Thanks for the steps. Was able to import the problematic league from this branch.

from espn-api.

cwendt94 avatar cwendt94 commented on May 21, 2024

Awesome! So no errors?

from espn-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.