[bank][bp]Unknown error: not all arguments converted during string formatting
With which module do you encounter problems?
BP (La Banque Postale)
Describe the problem you encounter
impossible to connect to the bank's website
Paste here the stacktrace or error message you observe
Error message with openssl :
encoding error : input conversion failed due to input error, bytes 0x8D 0x96 0xA3 0xB6 encoding error : input conversion failed due to input error, bytes 0x8D 0x96 0xA3 0xB6 I/O error : encoder error Bug(bp): not all arguments converted during string formatting (If --auto-update is passed on the command-line, new versions of the module will be checked automatically) Use "logging debug" option to print backtraces.
with logging debug:
2022-12-13 21:26:52,559:DEBUG:urllib3.util.retry:3.0:retry.py:333:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None) 2022-12-13 21:26:52,559:DEBUG:urllib3.util.retry:3.0:retry.py:333:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None) 2022-12-13 21:26:52,620:DEBUG:modules:3.0:modules.py:166:load_module Loaded module "linebourse" from /home/mecano/.local/share/woob/modules/3.0/linebourse 2022-12-13 21:26:52,620:DEBUG:urllib3.util.retry:3.0:retry.py:333:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None) 2022-12-13 21:26:52,620:DEBUG:urllib3.util.retry:3.0:retry.py:333:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None) 2022-12-13 21:26:52,624:DEBUG:urllib3.connectionpool:3.0:connectionpool.py:973:_new_conn Starting new HTTPS connection (1): voscomptesenligne.labanquepostale.fr:443 2022-12-13 21:26:52,840:DEBUG:urllib3.connectionpool:3.0:connectionpool.py:452:_make_request https://voscomptesenligne.labanquepostale.fr:443 "GET /wsost/OstBrokerWeb/loginform?TAM_OP=login&ERROR_CODE=0x00000000&URL=%2Fvoscomptes%2FcanalXHTML%2Fidentif.ea%3Forigin%3Dparticuliers HTTP/1.1" 200 None 2022-12-13 21:26:52,857:DEBUG:backend.bp.browser:3.0:browsers.py:880:internal_callback Handle https://voscomptesenligne.labanquepostale.fr/wsost/OstBrokerWeb/loginform?TAM_OP=login&ERROR_CODE=0x00000000&URL=%2Fvoscomptes%2FcanalXHTML%2Fidentif.ea%3Forigin%3Dparticuliers with LoginPage 2022-12-13 21:26:52,938:DEBUG:urllib3.connectionpool:3.0:connectionpool.py:452:_make_request https://voscomptesenligne.labanquepostale.fr:443 "GET /wsost/OstBrokerWeb/loginform?imgid=allunifie2&e=4&0.8401846303690376 HTTP/1.1" 200 3516 encoding error : input conversion failed due to input error, bytes 0x9D 0x09 0x70 0x94 encoding error : input conversion failed due to input error, bytes 0x9D 0x09 0x70 0x94 I/O error : encoder error 2022-12-13 21:26:52,946:DEBUG:backend.bp.browser:3.0:browsers.py:880:internal_callback Handle https://voscomptesenligne.labanquepostale.fr/wsost/OstBrokerWeb/loginform?imgid=allunifie2&e=4&0.8401846303690376 with UselessPage 2022-12-13 21:26:52,975:DEBUG:PIL.PngImagePlugin:3.0:PngImagePlugin.py:201:call STREAM b'IHDR' 16 13 2022-12-13 21:26:52,976:DEBUG:PIL.PngImagePlugin:3.0:PngImagePlugin.py:201:call STREAM b'IDAT' 41 3459 2022-12-13 21:26:53,030:DEBUG:bcall:3.0:bcall.py:98:backend_process <Backend 'bp'>: Called function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7f6c5013c550>> raised an error: TypeError('not all arguments converted during string formatting') Bug(bp): not all arguments converted during string formatting (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/mecano/.local/lib/python3.9/site-packages/woob/core/bcall.py", line 94, in backend_process result = function(backend, *args, **kwargs) File "/home/mecano/.local/lib/python3.9/site-packages/woob/tools/application/base.py", line 349, in _do_complete res = getattr(backend, function)(*args, **kwargs) File "/home/mecano/.local/share/woob/modules/3.0/bp/module.py", line 181, in iter_resources return self.iter_accounts() File "/home/mecano/.local/share/woob/modules/3.0/bp/module.py", line 80, in iter_accounts return self.browser.get_accounts_list() File "/home/mecano/.local/lib/python3.9/site-packages/woob/browser/browsers.py", line 981, in inner browser.do_login() File "/home/mecano/.local/share/woob/modules/3.0/bp/browser.py", line 500, in do_login self.login_without_2fa() File "/home/mecano/.local/share/woob/modules/3.0/bp/browser.py", line 480, in login_without_2fa self.page.login(self.username, self.password) File "/home/mecano/.local/share/woob/modules/3.0/bp/pages/login.py", line 102, in login vk = Keyboard(self) File "/home/mecano/.local/share/woob/modules/3.0/bp/pages/login.py", line 82, in init self.check_symbols(self.symbols, page.browser.responses_dirname) File "/home/mecano/.local/lib/python3.9/site-packages/woob/tools/captcha/virtkeyboard.py", line 174, in check_symbols self.get_symbol_code(symbols[s]) File "/home/mecano/.local/share/woob/modules/3.0/bp/pages/login.py", line 85, in get_symbol_code code = VirtKeyboard.get_symbol_code(self, md5sum) File "/home/mecano/.local/lib/python3.9/site-packages/woob/tools/captcha/virtkeyboard.py", line 164, in get_symbol_code 'Code not found for these hashes "%s".' TypeError: not all arguments converted during string formatting
Error message with libnss:
Bug(bp): HTTPSConnectionPool(host='voscomptesenligne.labanquepostale.fr', port=443): Max retries exceeded with url: /wsost/OstBrokerWeb/loginform?TAM_OP=login&ERROR_CODE=0x00000000&URL=%2Fvoscomptes%2FcanalXHTML%2Fidentif.ea%3Forigin%3Dparticuliers (Caused by SSLError(SSLError(0, "(SEC_ERROR_UNTRUSTED_ISSUER) Peer's certificate issuer has been marked as not trusted by the user."))) (If --auto-update is passed on the command-line, new versions of the module will be checked automatically) Use "logging debug" option to print backtraces.
with logging debug:
2022-12-13 21:33:15,139:WARNING:urllib3.connectionpool:3.0:connectionpool.py:780:urlopen Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(0, "(SEC_ERROR_UNTRUSTED_ISSUER) Peer's certificate issuer has been marked as not trusted by the user."))': /wsost/OstBrokerWeb/loginform?TAM_OP=login&ERROR_CODE=0x00000000&URL=%2Fvoscomptes%2FcanalXHTML%2Fidentif.ea%3Forigin%3Dparticuliers 2022-12-13 21:33:15,220:WARNING:urllib3.connectionpool:3.0:connectionpool.py:780:urlopen Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(0, "(SEC_ERROR_UNTRUSTED_ISSUER) Peer's certificate issuer has been marked as not trusted by the user."))': /wsost/OstBrokerWeb/loginform?TAM_OP=login&ERROR_CODE=0x00000000&URL=%2Fvoscomptes%2FcanalXHTML%2Fidentif.ea%3Forigin%3Dparticuliers Bug(bp): HTTPSConnectionPool(host='voscomptesenligne.labanquepostale.fr', port=443): Max retries exceeded with url: /wsost/OstBrokerWeb/loginform?TAM_OP=login&ERROR_CODE=0x00000000&URL=%2Fvoscomptes%2FcanalXHTML%2Fidentif.ea%3Forigin%3Dparticuliers (Caused by SSLError(SSLError(0, "(SEC_ERROR_UNTRUSTED_ISSUER) Peer's certificate issuer has been marked as not trusted by the user.")))
What are the steps to reproduce the problem?
$woob bank or woob bank --nss
bank>list
What woob version are you using?
Woob config v3.0 Copyright(C) 2010-2022 Christophe Benz, Romain Bignon
What module version are you using?
------------------------------------------------------------------------------. | Module bp | +-----------------.------------------------------------------------------------' | Version | 202210101650
How did you install woob?
as a dependance of kresus on yunohost system
Additional info you'd like to mention
System version: YunoHost 11.0.10.2 (stable) Kresus version : 0.18.1~ynh9