Can't add bank (Crédit Coopératif) because of authentication process
Bug report
Woob's version I am using is: 3.0
Kresus's version I am using is: 0.17.4~ynh2 (it is the Yunohost packaging of the app)
Steps to reproduce: Add Crédit Coopératif bank by filling all mandatory fields
What I expect: some sort of authentication process
What I observe: Kresus reports the following error :
Unknown error: Unexpected response during login authentication. Erreur inconnue de Kresus : essayez de mettre à jour Woob, et si cela ne règle pas votre problème, merci de signaler l'erreur aux auteurs de Kresus. Veuillez vous référer à la console développeurs pour plus d'informations.
and at the same time, or sometimes a few seconds after, my bank android app asks me to authorize the connection. But it's too late, accepting it does not work. And each new try reproduces the problem.
- so it seems to me that there is something wrong with the authentication process
- also, in the log (see below) I can see lines about "caissedepargne" which is not the same bank so this seems weird to me...
Client logs :
A request has failed with the following information:
- code: GENERIC_EXCEPTION
- short message: Unknown error: Unexpected response during login authentication.
- stack: no stack
- message: Unknown error: Unexpected response during login authentication.
Traceback (most recent call last):
File "/var/www/kresus/build/server/providers/woob/py/main.py", line 704, in fetch
results['values'] = self.get_accounts()
File "/var/www/kresus/build/server/providers/woob/py/main.py", line 554, in get_accounts
for account in list(self.backend.iter_accounts()):
File "/var/www/kresus/data/woob-data/modules/3.0/caissedepargne/module.py", line 86, in iter_accounts
for account in self.browser.get_accounts_list():
File "/var/www/kresus/venv/lib/python3.7/site-packages/woob/browser/switch.py", line 100, in wrapper
return val(*args, **kwargs)
File "/var/www/kresus/venv/lib/python3.7/site-packages/woob/browser/retry.py", line 77, in wrapper
ret = cb()
File "/var/www/kresus/venv/lib/python3.7/site-packages/woob/browser/retry.py", line 73, in <lambda>
cb = lambda: func(browser, *args, **kwargs)
File "/var/www/kresus/venv/lib/python3.7/site-packages/woob/browser/browsers.py", line 981, in inner
browser.do_login()
File "/var/www/kresus/data/woob-data/modules/3.0/caissedepargne/compat/woob_browser.py", line 436, in do_double_authentication
self.init_login()
File "/var/www/kresus/data/woob-data/modules/3.0/caissedepargne/browser.py", line 284, in init_login
return self.do_new_login()
File "/var/www/kresus/data/woob-data/modules/3.0/caissedepargne/browser.py", line 1046, in do_new_login
self.handle_steps_login()
File "/var/www/kresus/data/woob-data/modules/3.0/caissedepargne/browser.py", line 819, in handle_steps_login
self.handle_step(authentication_method, "login")
File "/var/www/kresus/data/woob-data/modules/3.0/caissedepargne/browser.py", line 828, in handle_step
return self.handle_step_validation(authentication_method, feature, **params)
File "/var/www/kresus/data/woob-data/modules/3.0/caissedepargne/browser.py", line 872, in handle_step_validation
self.page.check_errors(feature=feature)
File "/var/www/kresus/data/woob-data/modules/3.0/caissedepargne/pages.py", line 318, in check_errors
raise AssertionError('Unexpected response during %s authentication' % feature)
AssertionError: Unexpected response during login authentication
Server logs : -