[bank][boursorama] TypeError: expected string or bytes-like object, got 'NotAvailableType'
With which module do you encounter problems?
boobank/boursorama
Describe the problem you encounter
Unable to get boursorama history
Paste here the stacktrace or error message you observe
2023-08-19 16:36:10,250:DEBUG:woob.config:3.5:yamlconfig.py:72:load Loading configuration file: /homecrypt/clabaut/.config/woob/bank.storage.
2023-08-19 16:36:10,251:DEBUG:woob.config:3.5:yamlconfig.py:76:load Configuration file loaded: /homecrypt/clabaut/.config/woob/bank.storage.
2023-08-19 16:36:10,290:DEBUG:woob.core.modules.loader:3.5:modules.py:250:load_module Loaded module "boursorama" from /home/clabaut/.local/share/woob/modules/3.5/woob_modules/boursorama
/usr/lib/python3.11/site-packages/woob/tools/backend.py:355: DeprecationWarning: Class attribute BoursoramaModule.VERSION is now unused and deprecated, you can remove it. If you do so, do not forget to increase the woob version to at least 3.4 in requirements.txt.
warnings.warn(
2023-08-19 16:36:10,328:DEBUG:woob.backend:3.5:modules.py:160:create_instance Created backend "boursorama" for module "boursorama"
2023-08-19 16:36:10,329:DEBUG:woob.config:3.5:iniconfig.py:43:load Loading application configuration file: /homecrypt/clabaut/.config/woob/bank.
2023-08-19 16:36:10,329:DEBUG:woob.config:3.5:iniconfig.py:60:load Application configuration file loaded: /homecrypt/clabaut/.config/woob/bank.
Account Balance Coming
---------------------------------------------------------+----------+----------
2023-08-19 16:36:10,332:DEBUG:woob.core.bcall:3.5:bcall.py:86:backend_process <Backend boursorama>: Calling function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7f913dce0c50>>
2023-08-19 16:36:10,333:DEBUG:urllib3.util.retry:3.5:retry.py:351:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2023-08-19 16:36:10,333:DEBUG:urllib3.util.retry:3.5:retry.py:351:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2023-08-19 16:36:10,335:DEBUG:woob.backend.boursorama.browser:3.5:browsers.py:1119:_load_cookies Reloaded cookies from storage
2023-08-19 16:36:10,336:DEBUG:urllib3.connectionpool:3.5:connectionpool.py:1003:_new_conn Starting new HTTPS connection (1): clients.boursorama.com:443
2023-08-19 16:36:10,490:DEBUG:urllib3.connectionpool:3.5:connectionpool.py:456:_make_request https://clients.boursorama.com:443 "GET /connexion/saisie-mot-de-passe HTTP/1.1" 200 None
2023-08-19 16:36:10,492:DEBUG:woob.backend.boursorama.browser:3.5:browsers.py:930:internal_callback Handle https://clients.boursorama.com/connexion/saisie-mot-de-passe with PasswordPage
2023-08-19 16:36:10,562:DEBUG:urllib3.connectionpool:3.5:connectionpool.py:456:_make_request https://clients.boursorama.com:443 "GET /connexion/saisie-mot-de-passe HTTP/1.1" 200 None
2023-08-19 16:36:10,590:DEBUG:woob.backend.boursorama.browser:3.5:browsers.py:930:internal_callback Handle https://clients.boursorama.com/connexion/saisie-mot-de-passe with PasswordPage
2023-08-19 16:36:10,671:DEBUG:urllib3.connectionpool:3.5:connectionpool.py:456:_make_request https://clients.boursorama.com:443 "GET /connexion/clavier-virtuel?_hinclude=1 HTTP/1.1" 200 None
2023-08-19 16:36:10,672:DEBUG:woob.backend.boursorama.browser:3.5:browsers.py:930:internal_callback Handle https://clients.boursorama.com/connexion/clavier-virtuel?_hinclude=1 with VirtKeyboardPage
2023-08-19 16:36:12,647:DEBUG:urllib3.connectionpool:3.5:connectionpool.py:456:_make_request https://clients.boursorama.com:443 "POST /connexion/saisie-mot-de-passe HTTP/1.1" 302 None
2023-08-19 16:36:12,687:DEBUG:urllib3.connectionpool:3.5:connectionpool.py:456:_make_request https://clients.boursorama.com:443 "GET / HTTP/1.1" 302 None
2023-08-19 16:36:13,045:DEBUG:urllib3.connectionpool:3.5:connectionpool.py:456:_make_request https://clients.boursorama.com:443 "GET /infos-profil/ HTTP/1.1" 302 None
2023-08-19 16:36:13,660:DEBUG:urllib3.connectionpool:3.5:connectionpool.py:456:_make_request https://clients.boursorama.com:443 "GET /infos-profil/pedagogie-fraude HTTP/1.1" 302 None
2023-08-19 16:36:13,924:DEBUG:urllib3.connectionpool:3.5:connectionpool.py:456:_make_request https://clients.boursorama.com:443 "GET /infos-profil/pedagogie-fraude/64e0d35d157d9/1 HTTP/1.1" 200 None
2023-08-19 16:36:13,927:DEBUG:woob.backend.boursorama.browser:3.5:browsers.py:930:internal_callback Handle https://clients.boursorama.com/infos-profil/pedagogie-fraude/64e0d35d157d9/1 with ErrorPage
2023-08-19 16:36:13,927:DEBUG:woob.core.bcall:3.5:bcall.py:92:backend_process <Backend boursorama>: Called function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7f913dce0c50>> raised an error: TypeError("expected string or bytes-like object, got 'NotAvailableType'")
Bug(boursorama): expected string or bytes-like object, got 'NotAvailableType'
(If --auto-update is passed on the command-line, new versions of the module will be checked automatically)
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/woob/core/bcall.py", line 88, in backend_process
result = function(backend, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/woob/tools/application/base.py", line 347, in _do_complete
res = getattr(backend, function)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/clabaut/.local/share/woob/modules/3.5/woob_modules/boursorama/module.py", line 190, in iter_resources
return self.iter_accounts()
^^^^^^^^^^^^^^^^^^^^
File "/home/clabaut/.local/share/woob/modules/3.5/woob_modules/boursorama/module.py", line 70, in iter_accounts
return self.browser.get_accounts_list()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/woob/browser/retry.py", line 75, in wrapper
ret = cb()
^^^^
File "/usr/lib/python3.11/site-packages/woob/browser/retry.py", line 71, in <lambda>
cb = lambda: func(browser, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/woob/browser/browsers.py", line 1042, in inner
browser.do_login()
File "/usr/lib/python3.11/site-packages/woob/browser/retry.py", line 43, in wrapper
return func(browser, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/clabaut/.local/share/woob/modules/3.5/woob_modules/boursorama/browser.py", line 485, in do_login
return super(BoursoramaBrowser, self).do_login()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/woob/browser/mfa.py", line 201, in do_double_authentication
self.init_login()
File "/home/clabaut/.local/share/woob/modules/3.5/woob_modules/boursorama/browser.py", line 407, in init_login
if messages.search(error_message):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got 'NotAvailableType'
---------------------------------------------------------+----------+----------
2023-08-19 16:36:13,942:DEBUG:woob.backend.boursorama.browser:3.5:browsers.py:1180:dump_state Stored cookies into storage
2023-08-19 16:36:13,943:DEBUG:woob.config:3.5:yamlconfig.py:90:save Configuration file saved: /homecrypt/clabaut/.config/woob/bank.storage.
What are the steps to reproduce the problem?
woob bank -b boursorama list
What woob version are you using?
Output of woob config --version
command:
Woob config v3.5 Copyright(C) 2010-2023 Christophe Benz, Romain Bignon
What module version are you using?
Output of woob config info MODULE_NAME
command:
.------------------------------------------------------------------------------.
| Module boursorama |
+-----------------.------------------------------------------------------------'
| Version | 202307241723
| Maintainer | Gabriel Kerneis <gabriel@kerneis.info>
| License | LGPLv3+
| Description | Boursorama
| Capabilities | CapDocument, CapBank, CapContact, CapBankTransfer, CapBankWealth, CapBankTransferAddRecipient, CapCredentialsCheck, CapProfile, CapTransfer, CapBankMatching, CapCollection, CapCurrencyRate
| Installed | yes
| Location | https://updates.weboob.org/3/main/boursorama.tar.gz
| |
| Configuration | login: Identifiant (default: )
| | password: Mot de passe (default: )
'-----------------'
How did you install woob?
arch linux package