-
Notifications
You must be signed in to change notification settings - Fork 84
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
run_optimization ValueError(f"No transactions in database for team ID {fpl_team_id}") #688
Comments
Hi @ElliottTDon , if you sign-in on the FPL website, then point your browser to that URL, https://fantasy.premierleague.com/api/my-team/2115508/, does it show the json data of your "picks"? If you are able to view the json data in your browser when you're logged in, could it be an issue with the FPL_LOGIN and FPL_PASSWORD variables you've defined? When you first run the optimization step |
Hi @nbarlowATI - thanks for your response. I have updated the credentials and it logs in correctly. This is the response I receive and I'm able to view my picks in JSON form: airsenal_run_optimization --weeks_ahead 3 |
Hi @ElliottTDon (good team name BTW!! :) ). I don't know if it would really help debug this, since the error is clearly just that 403 error from the API, but if you want to explore interactively you could start a python session and do something like:
(I guess you'll get the same error again...) |
I'm running in to this issue also. Running optimization with fpl_team_id 1487656 Any help would be appreciated. |
Hi @Iain-SF , do you still get the error today and is it the same if you run |
Hey Jack, Yeah still getting the error (when running |
It seems to run ok for me with your team ID, e.g. here are the outputs of an optimization (it won't reflect any transfers you've already made this gameweek, if any, as you need to login to get transfers since the last deadline):
As well as pulling the latest version and re-installing, try running If none of that works it's a bug specific to your system, so trickier to debug, but following some of the steps Nick wrote above in response to the original issue might help point us in the right direction. EDIT: Also, although you get login failed errors, does the optimisation continue to run successfully after that or does it completely crash/fail? |
Thanks Jack, I'll try the steps you mention.
On 23 Sept 2024 21:14, Jack Roberts ***@***.***> wrote:
It seems to run ok for me with your team ID, e.g. here are the outputs of an optimization (it won't reflect any transfers you've already made in the game this gameweek, if any, as you need to login to get transfers since the last deadline):
Strategy for Team ID: 1487656
Baseline score: 157.728495821423
Best score: 167.5136329015096
===============================================
========= Optimum strategy ====================
===============================================
=========== Gameweek 6 ================
Chips played: None
Players in: Players out:
----------- ------------
Jarrod Bowen Diogo Teixeira da Silva
=========== Gameweek 7 ================
Chips played: None
Players in: Players out:
----------- ------------
Mohammed Kudus Morgan Gibbs-White
=========== Gameweek 8 ================
Chips played: None
Players in: Players out:
----------- ------------
James Maddison Kevin De Bruyne
==========================
Total score: 167
Getting starting squad for 1487656
=== starting 11 ===
== GK ==
David Raya Martin (ARS)
== DEF ==
Pedro Porro (TOT)
Joško Gvardiol (MCI)
Manuel Akanji (MCI)
Trent Alexander-Arnold (LIV)(VC)
== MID ==
Kevin De Bruyne (MCI)
Mohamed Salah (LIV)(C)
Eberechi Eze (CRY)
Jarrod Bowen (WHU)
== FWD ==
Danny Welbeck (BHA)
Jamie Vardy (LEI)
=== subs ===
Guglielmo Vicario (TOT)
Rodrigo Muniz Carvalho (FUL)
Trevoh Chalobah (CHE)
Morgan Gibbs-White (NFO)
As well as pulling the latest version and re-installing, try running airsenal_run_pipeline --clean - that cause the whole database to be deleted and re-created, which might fix things if you have something weird saved in your current one.
If none of that works it's a bug specific to your system, so trickier to debug, but following some of the steps Nick wrote above in response to the original issue might help point us in the right direction.
—
Reply to this email directly, view it on GitHub<#688 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A6XAMHNJJWXF6MASBPMP4CTZYBZBVAVCNFSM6AAAAABMZ3IWKKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRZGI4DCNRRGM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi I get the same issue as well, tried to run it with Here is the error I get, however it does run and output a team in the end
|
@newbie1668 Could you check/re-set your team ID, username, and password as per the config section in the readme and see if that fixes it? |
Hi @jack89roberts , re-set it, and kept getting stuck. Then saw the thread here- #695 and updated my version to 1.9.0 and now get this error and its stuck
|
Hi @newbie1668 for the first problem, if you didn't already do this it's probably best to recreate the database from scratch after updating the airsenal version:
|
@nbarlowATI , just tried it now and run into the same error with Jax |
Updated for my squad after GW1 and issues with accessing team API "UserWarning: Failed to get current squad from API:
Unable to access FPL API: 404 Client Error: Not Found for url: https://fantasy.premierleague.com/api/my-team/2115508/" and subsequently not adding transactions to the database for the team ID.
The text was updated successfully, but these errors were encountered: