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

unable to get user_information from get_user() #87

Closed
obarbier opened this issue Aug 9, 2020 · 5 comments
Closed

unable to get user_information from get_user() #87

obarbier opened this issue Aug 9, 2020 · 5 comments
Labels
bug Something isn't working need more information

Comments

@obarbier
Copy link

obarbier commented Aug 9, 2020

headers = {"User-Agent": "https://github.com/amosbastian/fpl"} from util looks like the cause of this,
when changing user agent I was able to get the information

@amosbastian
Copy link
Owner

Can you provide the code where you encounter this error?

@amosbastian amosbastian added bug Something isn't working need more information labels Aug 9, 2020
@obarbier
Copy link
Author

obarbier commented Aug 10, 2020

user = await fpl.get_user(return_json=True)
user_id = user['id']

@amosbastian
Copy link
Owner

Thanks, I pushed a new version where it is removed (and working). Not sure why this was happening in the first place 🤔

@obarbier
Copy link
Author

thank you so much. any way I can contribute let me know. As I am a bit familiar with the code base now

@amosbastian
Copy link
Owner

Sounds great! If you have any ideas that you would want to work on just make a feature request @obarbier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need more information
Projects
None yet
Development

No branches or pull requests

2 participants