[bank][boursorama] AssertionError when trying to connect
With which module do you encounter problems?
Boursorama
Describe the problem you encounter
The login is impossible. The password seems to be accepted and I receive the 2FA code by sms on my phone but then it fails with an AssertionError.
Paste here the stacktrace or error message you observe
~$ woob bank -b boursorama
Welcome to bank v3.1
Copyright(C) 2010-2022 Romain Bignon, Christophe Benz
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Type "help" to display available commands.
Loaded backends: boursorama
bank> logging debug
bank> list
Account Balance Coming
------------------------------------------+----------+----------
2022-09-30 00:19:57,028:DEBUG:woob.core.bcall:3.1:bcall.py:91:backend_process <Backend 'boursorama'>: Calling function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7fd0022e1900>>
[boursorama] Mot de passe (hidden input):
2022-09-30 00:20:02,848:DEBUG:urllib3.util.retry:3.1:retry.py:351:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2022-09-30 00:20:02,849:DEBUG:urllib3.util.retry:3.1:retry.py:351:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2022-09-30 00:20:02,854:DEBUG:woob.backend.boursorama.browser:3.1:browsers.py:1063:_load_cookies Reloaded cookies from storage
2022-09-30 00:20:02,859:DEBUG:urllib3.connectionpool:3.1:connectionpool.py:1006:_new_conn Starting new HTTPS connection (1): clients.boursorama.com:443
2022-09-30 00:20:03,042:DEBUG:urllib3.connectionpool:3.1:connectionpool.py:457:_make_request https://clients.boursorama.com:443 "GET /connexion/saisie-mot-de-passe HTTP/1.1" 200 None
2022-09-30 00:20:03,077:DEBUG:woob.backend.boursorama.browser:3.1:browsers.py:892:internal_callback Handle https://clients.boursorama.com/connexion/saisie-mot-de-passe with PasswordPage
2022-09-30 00:20:03,153:DEBUG:urllib3.connectionpool:3.1:connectionpool.py:457:_make_request https://clients.boursorama.com:443 "GET /connexion/clavier-virtuel?_hinclude=1 HTTP/1.1" 200 None
2022-09-30 00:20:03,157:DEBUG:woob.backend.boursorama.browser:3.1:browsers.py:892:internal_callback Handle https://clients.boursorama.com/connexion/clavier-virtuel?_hinclude=1 with VirtKeyboardPage
2022-09-30 00:20:04,578:DEBUG:urllib3.connectionpool:3.1:connectionpool.py:457:_make_request https://clients.boursorama.com:443 "POST /connexion/saisie-mot-de-passe HTTP/1.1" 302 None
2022-09-30 00:20:04,613:DEBUG:urllib3.connectionpool:3.1:connectionpool.py:457:_make_request https://clients.boursorama.com:443 "GET / HTTP/1.1" 302 None
2022-09-30 00:20:04,886:DEBUG:urllib3.connectionpool:3.1:connectionpool.py:457:_make_request https://clients.boursorama.com:443 "GET /securisation HTTP/1.1" 200 None
2022-09-30 00:20:04,926:DEBUG:woob.backend.boursorama.browser:3.1:browsers.py:892:internal_callback Handle https://clients.boursorama.com/securisation with AuthenticationPage
2022-09-30 00:20:05,261:DEBUG:urllib3.connectionpool:3.1:connectionpool.py:457:_make_request https://clients.boursorama.com:443 "GET /securisation/validation HTTP/1.1" 200 None
2022-09-30 00:20:05,272:DEBUG:woob.backend.boursorama.browser:3.1:browsers.py:892:internal_callback Handle https://clients.boursorama.com/securisation/validation with AuthenticationPage
2022-09-30 00:20:05,278:DEBUG:urllib3.connectionpool:3.1:connectionpool.py:1006:_new_conn Starting new HTTPS connection (1): api.boursorama.com:443
2022-09-30 00:20:05,647:DEBUG:urllib3.connectionpool:3.1:connectionpool.py:457:_make_request https://api.boursorama.com:443 "POST /services/api/v1.7/_user_/_7bb3c76dc3f62c4_/session/otp/startsms/10305 HTTP/1.1" 200 None
2022-09-30 00:20:05,653:DEBUG:woob.backend.boursorama.browser:3.1:browsers.py:892:internal_callback Handle https://api.boursorama.com/services/api/v1.7/_user_/_7bb3c76dc3f62c4_/session/otp/startsms/10305 with AddRecipientOtpSendPage
2022-09-30 00:20:05,653:DEBUG:woob.core.bcall:3.1:bcall.py:97:backend_process <Backend 'boursorama'>: Called function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7fd0022e1900>> raised an error: BrowserQuestion(<woob.tools.value.Value object at 0x7fcffe3fbfa0>)
[code] Entrez le code reçu par SMS: 123456
2022-09-30 00:20:20,831:DEBUG:woob.core.bcall:3.1:bcall.py:91:backend_process <Backend 'boursorama'>: Calling function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7fd0022e1900>>
2022-09-30 00:20:20,862:DEBUG:urllib3.connectionpool:3.1:connectionpool.py:457:_make_request https://clients.boursorama.com:443 "GET /aide/messages/dashboard?showza=0&_hinclude=1 HTTP/1.1" 302 None
2022-09-30 00:20:20,937:DEBUG:urllib3.connectionpool:3.1:connectionpool.py:457:_make_request https://clients.boursorama.com:443 "GET /securisation HTTP/1.1" 200 None
2022-09-30 00:20:20,948:DEBUG:woob.backend.boursorama.browser:3.1:browsers.py:892:internal_callback Handle https://clients.boursorama.com/securisation with AuthenticationPage
2022-09-30 00:20:20,979:DEBUG:urllib3.connectionpool:3.1:connectionpool.py:457:_make_request https://clients.boursorama.com:443 "GET /dashboard/comptes-professionnels?_hinclude=1 HTTP/1.1" 302 None
2022-09-30 00:20:21,060:DEBUG:urllib3.connectionpool:3.1:connectionpool.py:457:_make_request https://clients.boursorama.com:443 "GET /securisation HTTP/1.1" 200 None
2022-09-30 00:20:21,065:DEBUG:woob.backend.boursorama.browser:3.1:browsers.py:892:internal_callback Handle https://clients.boursorama.com/securisation with AuthenticationPage
2022-09-30 00:20:21,065:DEBUG:woob.core.bcall:3.1:bcall.py:97:backend_process <Backend 'boursorama'>: Called function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7fd0022e1900>> raised an error: AssertionError()
Bug(boursorama):
(If --auto-update is passed on the command-line, new versions of the module will be checked automatically)
Traceback (most recent call last):
File "/home/olivier/.local/lib/python3.10/site-packages/woob-3.1-py3.10.egg/woob/core/bcall.py", line 93, in backend_process
result = function(backend, *args, **kwargs)
File "/home/olivier/.local/lib/python3.10/site-packages/woob-3.1-py3.10.egg/woob/tools/application/base.py", line 351, in _do_complete
res = getattr(backend, function)(*args, **kwargs)
File "/home/olivier/.data/woob/modules/3.1/woob_modules/boursorama/module.py", line 190, in iter_resources
return self.iter_accounts()
File "/home/olivier/.data/woob/modules/3.1/woob_modules/boursorama/module.py", line 70, in iter_accounts
return self.browser.get_accounts_list()
File "/home/olivier/.local/lib/python3.10/site-packages/woob-3.1-py3.10.egg/woob/browser/retry.py", line 77, in wrapper
ret = cb()
File "/home/olivier/.local/lib/python3.10/site-packages/woob-3.1-py3.10.egg/woob/browser/retry.py", line 73, in <lambda>
cb = lambda: func(browser, *args, **kwargs)
File "/home/olivier/.local/lib/python3.10/site-packages/woob-3.1-py3.10.egg/woob/browser/browsers.py", line 996, in inner
return func(browser, *args, **kwargs)
File "/home/olivier/.data/woob/modules/3.1/woob_modules/boursorama/browser.py", line 505, in get_accounts_list
assert self.no_account.is_here()
AssertionError
------------------------------------------+----------+----------
bank>
What are the steps to reproduce the problem?
Any command which to be logged in.
What woob version are you using?
Output of woob config --version
command:
Woob config v3.1 Copyright(C) 2010-2022 Christophe Benz, Romain Bignon
What module version are you using?
Output of woob config info MODULE_NAME
command:
.------------------------------------------------------------------------------.
| Module boursorama |
+-----------------.------------------------------------------------------------'
| Version | 202209051348
| Maintainer | Gabriel Kerneis <gabriel@kerneis.info>
| License | LGPLv3+
| Description | Boursorama
| Capabilities | CapDocument, CapProfile, CapBank, CapContact, CapCurrencyRate, CapCollection, CapCredentialsCheck, CapBankWealth, CapTransfer, CapBankTransferAddRecipient, CapBankTransfer
| Installed | yes
| Location | https://updates.weboob.org/3.1/main/boursorama.tar.gz
| |
| Configuration | login: Identifiant (default: )
| | password: Mot de passe (default: )
| | code: None
| | request_information: None
'-----------------'
How did you install woob?
git + setup.py