fut icon indicating copy to clipboard operation
fut copied to clipboard

Gracious error handling needed for empty profiles

Open dinana opened this issue 10 years ago • 4 comments

If a new account has only been registered through the web but never played on a console/pc through the game I receive the following error:

Traceback (most recent call last): File "", line 1, in File "***\fut\core.py", line 106, in init

self.__login__(email, passwd, secret_answer, platform, code, emulate)

File "***\fut\core.py", line 218, in _login _ rc = rc.json()['userAccountInfo']['personas'][0] KeyError: 'userAccountInfo'

dinana avatar Dec 18 '14 22:12 dinana

you have to connect on console or pc to set your secret answer before using web app

Innursery avatar Dec 19 '14 12:12 Innursery

Could You attach html code so i can make exception?

oczkers avatar Dec 19 '14 18:12 oczkers

Several years later, but just downloaded the fut 0.2.9 library and getting the same issue originally posted here. Any idea what might be causing this? I've logged in using my secret answer before, i even tried updating it to make sure but still same issue.

File "C:\Users\kswingle\AppData\Local\Continuum\Anaconda3\lib\site-packages\fut\core.py", line 171, in init self.login(email, passwd, secret_answer, platform, code, emulate) File "C:\Users\kswingle\AppData\Local\Continuum\Anaconda3\lib\site-packages\fut\core.py", line 332, in login personas = rc.json()['userAccountInfo']['personas'] KeyError: 'userAccountInfo'

swingo256 avatar Mar 14 '17 04:03 swingo256

@swingo256 I need to see logs to make exception for this but looks like there is no valid persona found (active pc/xbox/ps team for fifa17).

oczkers avatar Mar 14 '17 12:03 oczkers