djc / abna

Python library to automatically retrieve mutations from ABN Amro
MIT License
10 stars 3 forks source link

'NoneType' object has no attribute 'encode' #5

Closed Deliki closed 2 years ago

Deliki commented 2 years ago

what can we do about this?

Traceback (most recent call last): File "H:\DelloTrade\B. DelloTrade Dev\DelloCode\AbnAmro.py", line 4, in sess.login(, '') File "C:\Users\dsama\Python\DelloEnv\lib\site-packages\abna__init.py", line 33, in login response = calculate_response(challenge['challenge'], challenge['userId'], token) File "C:\Users\dsama\Python\DelloEnv\lib\site-packages\abna__init__.py", line 60, in calculate_response obj = decode(challenge) File "C:\Users\dsama\Python\DelloEnv\lib\site-packages\abna\init.py", line 81, in decode bytes = hex2ba(challenge) File "C:\Users\dsama\Python\DelloEnv\lib\site-packages\abna\init__.py", line 110, in hex2ba return [i for i in s.encode('ascii').fromhex(s)] AttributeError: 'NoneType' object has no attribute 'encode'

djc commented 2 years ago

So apparently you're getting a null challenge from /session/loginchallenge? Not sure what's up with that. I'm not seeing it -- the failure mode I've seen is intermittent and manifests as a JSONDecodeError.

Deliki commented 2 years ago

Bedoel je dat het bij jou wel werkt?

Verstuurd vanaf mijn iPhone

Op 27 sep. 2022 om 22:14 heeft Dirkjan Ochtman @.***> het volgende geschreven:



So apparently you're getting a null challenge from /session/loginchallenge? Not sure what's up with that. I'm not seeing it -- the failure mode I've seen is intermittent and manifests as a JSONDecodeError.

— Reply to this email directly, view it on GitHubhttps://github.com/djc/abna/issues/5#issuecomment-1259998394, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AS3GDTBX4ZZ6IZOQRZ5XFSTWANIT5ANCNFSM6AAAAAAQW7FRN4. You are receiving this because you authored the thread.Message ID: @.***>

djc commented 2 years ago

Yup, hier werkt het gewoon.

Deliki commented 2 years ago

Heb je bepaalde instellingen in abn amro die hiervoor geactiveerd moeten zijn. Want het werkte eerst ook bij mij.

Verstuurd vanaf mijn iPhone

Op 27 sep. 2022 om 22:32 heeft Dirkjan Ochtman @.***> het volgende geschreven:



Yup, hier werkt het gewoon.

— Reply to this email directly, view it on GitHubhttps://github.com/djc/abna/issues/5#issuecomment-1260014767, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AS3GDTGR673ZNV26Q47HRTDWANKT5ANCNFSM6AAAAAAQW7FRN4. You are receiving this because you authored the thread.Message ID: @.***>

djc commented 2 years ago

Voor zover ik weet niet.

Deliki commented 2 years ago

[SOLVED] My code was blocked, I needed to reinstall the app on my phone and login and register my account.