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

Users Key Error #51

Open
timfro opened this issue Mar 7, 2023 · 1 comment
Open

Users Key Error #51

timfro opened this issue Mar 7, 2023 · 1 comment

Comments

@timfro
Copy link

timfro commented Mar 7, 2023

Traceback (most recent call last):
File "c:\Users\timf0\Python Projects\fanduelauto.py", line 13, in
fd = southpaw.Fanduel(fd_email, fd_pw, fd_basic, fd_session)
File "C:\Users\timf0\Python\lib\site-packages\southpaw\fanduel.py", line 275, in init
self.__authenticate()
File "C:\Users\timf0\Python\lib\site-packages\southpaw\fanduel.py", line 444, in __authenticate
if current_response_json and len(current_response_json['users']) > 0:
KeyError: 'users'

Looks like the headers doesn't initialize a "users" key but is referenced later. How would you go about this if it still is working?

@empire-sports
Copy link

empire-sports commented Apr 14, 2023

it looks like the x-auth-token rotates. to fix this you have to retrieve it after successfully logging into their platform.

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