Bonjour,
J’ai installé une nouvelle instance Kresus via Docker (à partir du docker-compose de framagit).
J’ai pu créer, avec succès, un nouvel accès pour Boursorama, et j’ai récupéré et synchronisé les transactions.
Par contre, impossible de récupérer les transactions d’un accès à La Banque Postale.
D’après les logs ci-dessous, après connexion, Kresus/Woob détecte bien mes différents comptes LBP (CB, comptes bancaires, livrets,…) mais renvoie une erreur au moment de récupérer les transactions et notamment :
Got error while running command "2": Unknown error: Unable to find 1st [Montant imputé le|cours prélevé au] \d+/\d+/\d+ : (.*) € in ''
(ds les logs ci dessous, les références bancaires ont été remplacées par XXXXXX.
Merci de votre aide.
[2024-12-16T17:50:28.085] [INFO] providers/woob - Calling woob: command version...
[2024-12-16T17:50:28.217] [INFO] providers/woob - exited with code 0.
[2024-12-16T17:50:28.217] [INFO] providers/woob - OK: woob exited normally with non-empty JSON content.
[2024-12-16T17:50:28.218] [INFO] HTTP - GET /api/instance/woob - 304 (133 ms)
[2024-12-16T17:50:43.247] [INFO] HTTP - POST /api/settings - 200 (8 ms)
[2024-12-16T17:51:42.254] [INFO] accounts-manager - Retrieve all accounts from access bp with login XXXXXX
[2024-12-16T17:51:42.255] [INFO] providers/woob - Calling woob: command accounts...
[2024-12-16T17:51:46.677] [INFO] providers/woob - exited with code 0.
[2024-12-16T17:51:46.677] [WARN] providers/woob - stderr: 2024-12-16 17:51:42,388:DEBUG:woob.core.modules.loader:modules.py:255:load_module Loaded module "bp" from /home/user/data/woob-data/modules/3.7/woob_modules/bp
.........
[2024-12-16T17:51:46.677] [INFO] providers/woob - Saving session for access from bank bp with login XXXXXXX
[2024-12-16T17:51:46.682] [INFO] providers/woob - OK: woob exited normally with non-empty JSON content.
[2024-12-16T17:51:46.682] [INFO] accounts-manager - -> 7 bank account(s) found
[2024-12-16T17:51:46.683] [INFO] accounts-manager - New account found: COMPTE 1
[2024-12-16T17:51:46.683] [INFO] accounts-manager - => Saving it as per request.
[2024-12-16T17:51:46.685] [INFO] accounts-manager - New account found: XXXXXXX
[2024-12-16T17:51:46.685] [INFO] accounts-manager - => Saving it as per request.
[2024-12-16T17:51:46.686] [INFO] accounts-manager - New account found: CARTE 1
[2024-12-16T17:51:46.686] [INFO] accounts-manager - => Saving it as per request.
[2024-12-16T17:51:46.688] [INFO] accounts-manager - New account found: CARTE 2
[2024-12-16T17:51:46.688] [INFO] accounts-manager - => Saving it as per request.
[2024-12-16T17:51:46.689] [INFO] accounts-manager - New account found: XXXXXXX
[2024-12-16T17:51:46.689] [INFO] accounts-manager - => Saving it as per request.
[2024-12-16T17:51:46.691] [INFO] accounts-manager - New account found: XXXXXXX
[2024-12-16T17:51:46.691] [INFO] accounts-manager - => Saving it as per request.
[2024-12-16T17:51:46.692] [INFO] accounts-manager - New account found: XXXXXXX
[2024-12-16T17:51:46.692] [INFO] accounts-manager - => Saving it as per request.
[2024-12-16T17:51:46.696] [INFO] providers/woob - Calling woob: command transactions...
[2024-12-16T17:51:52.971] [INFO] providers/woob - exited with code 1.
[2024-12-16T17:51:52.971] [WARN] providers/woob - stderr: 2024-12-16 17:51:46,832:DEBUG:woob.core.modules.loader:modules.py:255:load_module Loaded module "bp" from /home/user/data/woob-data/modules/3.7/woob_modules/bp
2024-12-16 17:51:46,832:DEBUG:woob.backend:modules.py:163:create_instance Created backend "bp" for module "bp"
2024-12-16 17:51:46,832:DEBUG:urllib3.util.retry:retry.py:353:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2024-12-16 17:51:46,833:DEBUG:urllib3.util.retry:retry.py:353:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2024-12-16 17:51:46,835:DEBUG:urllib3.util.retry:retry.py:353:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2024-12-16 17:51:46,835:DEBUG:urllib3.util.retry:retry.py:353:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2024-12-16 17:51:46,836:DEBUG:urllib3.connectionpool:connectionpool.py:1022:_new_conn Starting new HTTPS connection (1): voscomptesenligne.labanquepostale.fr:443
2024-12-16 17:51:46,982:DEBUG:urllib3.connectionpool:connectionpool.py:475:_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
2024-12-16 17:51:46,988:DEBUG:woob.bp.browser:browsers.py:1040: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
2024-12-16 17:51:46,988:DEBUG:urllib3.connectionpool:connectionpool.py:1022:_new_conn Starting new HTTPS connection (1): d21j9nkdg2p3wo.cloudfront.net:443
2024-12-16 17:51:47,087:DEBUG:urllib3.connectionpool:connectionpool.py:475:_make_request https://d21j9nkdg2p3wo.cloudfront.net:443 "GET /321226/dasti.js HTTP/1.1" 200 None
2024-12-16 17:51:47,114:DEBUG:woob.bp.browser:browsers.py:1054:internal_callback Unable to handle https://d21j9nkdg2p3wo.cloudfront.net/321226/dasti.js
2024-12-16 17:51:47,117:DEBUG:charset_normalizer:api.py:461:from_bytes Encoding detection: ascii is most likely the one.
2024-12-16 17:51:48,166:DEBUG:urllib3.connectionpool:connectionpool.py:475:_make_request https://voscomptesenligne.labanquepostale.fr:443 "POST /wsost/OstBrokerWeb/auth HTTP/1.1" 302 261
2024-12-16 17:51:48,969:DEBUG:urllib3.connectionpool:connectionpool.py:475:_make_request https://voscomptesenligne.labanquepostale.fr:443 "GET /voscomptes/canalXHTML/identif.ea?origin=particuliers HTTP/1.1" 302 0
2024-12-16 17:51:49,019:DEBUG:urllib3.connectionpool:connectionpool.py:475:_make_request https://voscomptesenligne.labanquepostale.fr:443 "GET /voscomptes/canalXHTML/securite/authentification/repositionnerCheminCourant-identif.ea HTTP/1.1" 200 None
2024-12-16 17:51:49,020:DEBUG:woob.bp.browser:browsers.py:1040:internal_callback Handle https://voscomptesenligne.labanquepostale.fr/voscomptes/canalXHTML/securite/authentification/repositionnerCheminCourant-identif.ea with LienJavascript
2024-12-16 17:51:49,074:DEBUG:urllib3.connectionpool:connectionpool.py:475:_make_request https://voscomptesenligne.labanquepostale.fr:443 "GET /voscomptes/canalXHTML/securite/authentification/verifierSiDeconnexionObligatoire-identif.ea HTTP/1.1" 302 0
2024-12-16 17:51:49,137:DEBUG:urllib3.connectionpool:connectionpool.py:475:_make_request https://voscomptesenligne.labanquepostale.fr:443 "GET /voscomptes/canalXHTML/comptesCommun/synthese_assurancesEtComptes/verifierPresenceCompte-synthese.ea HTTP/1.1" 302 0
2024-12-16 17:51:49,181:DEBUG:urllib3.connectionpool:connectionpool.py:475:_make_request https://voscomptesenligne.labanquepostale.fr:443 "GET /voscomptes/canalXHTML/securite/authentification/verifierPresenceCompteOK-identif.ea HTTP/1.1" 200 None
2024-12-16 17:51:49,182:DEBUG:woob.bp.browser:browsers.py:1040:internal_callback Handle https://voscomptesenligne.labanquepostale.fr/voscomptes/canalXHTML/securite/authentification/verifierPresenceCompteOK-identif.ea with LienJavascript
2024-12-16 17:51:49,296:DEBUG:urllib3.connectionpool:connectionpool.py:475:_make_request https://voscomptesenligne.labanquepostale.fr:443 "GET /voscomptes/canalXHTML/securite/authentification/verifierSyndicationParapheur-identif.ea HTTP/1.1" 302 0
2024-12-16 17:51:49,768:DEBUG:urllib3.connectionpool:connectionpool.py:475:_make_request https://voscomptesenligne.labanquepostale.fr:443 "GET /voscomptes/canalXHTML/securite/gestionAuthentificationForte/init-gestionAuthentificationForte.ea HTTP/1.1" 200 None
2024-12-16 17:51:49,770:DEBUG:woob.bp.browser:browsers.py:1040:internal_callback Handle https://voscomptesenligne.labanquepostale.fr/voscomptes/canalXHTML/securite/gestionAuthentificationForte/init-gestionAuthentificationForte.ea with TwoFAPage
2024-12-16 17:51:49,817:DEBUG:urllib3.connectionpool:connectionpool.py:475:_make_request https://voscomptesenligne.labanquepostale.fr:443 "GET /voscomptes/canalXHTML/securite/authentification/retourDSP2-identif.ea HTTP/1.1" 200 None
2024-12-16 17:51:49,818:DEBUG:woob.bp.browser:browsers.py:1040:internal_callback Handle https://voscomptesenligne.labanquepostale.fr/voscomptes/canalXHTML/securite/authentification/retourDSP2-identif.ea with LienJavascript
2024-12-16 17:51:49,867:DEBUG:urllib3.connectionpool:connectionpool.py:475:_make_request https://voscomptesenligne.labanquepostale.fr:443 "GET /voscomptes/canalXHTML/donneesPersonnelles/aiguillage_personnalisation/init-aiguillagePersonnalisation.ea HTTP/1.1" 302 0
2024-12-16 17:51:49,952:DEBUG:urllib3.connectionpool:connectionpool.py:475:_make_request https://voscomptesenligne.labanquepostale.fr:443 "GET /voscomptes/canalXHTML/comptesCommun/synthese_ccp/afficheSyntheseCCP-synthese_ccp.ea HTTP/1.1" 200 None
2024-12-16 17:51:49,976:DEBUG:woob.bp.browser:browsers.py:1040:internal_callback Handle https://voscomptesenligne.labanquepostale.fr/voscomptes/canalXHTML/comptesCommun/synthese_ccp/afficheSyntheseCCP-synthese_ccp.ea with AccountList
.......
2024-12-16 17:51:52,934:DEBUG:woob.bp.browser:browsers.py:1040:internal_callback Handle https://voscomptesenligne.labanquepostale.fr/voscomptes/canalXHTML/CB/releveCB/preparerRecherche-mouvementsCarteDD.ea?indexCompte=XXXXXXX&indexCarte=0&typeListe=0 with AccountHistory
[2024-12-16T17:51:52.971] [INFO] providers/woob - Command returned an error code.
[2024-12-16T17:51:52.972] [INFO] providers/woob - Checking that woob is installed and can actually be called…
[2024-12-16T17:51:52.972] [INFO] providers/woob - Calling woob: command test...
[2024-12-16T17:51:53.106] [INFO] providers/woob - exited with code 0.
[2024-12-16T17:51:53.106] [INFO] providers/woob - OK: woob exited normally with non-empty JSON content.
[2024-12-16T17:51:53.106] [ERROR] providers/woob - Got error while running command "2": Unknown error: Unable to find 1st [Montant imputé le|cours prélevé au] \d+/\d+/\d+ : (.*) € in ''.
Traceback (most recent call last):
File "/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/providers/woob/py/main.py", line 713, in fetch
results["values"] = self.get_transactions(from_date)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/providers/woob/py/main.py", line 596, in get_transactions
for hist_tr in self.backend.iter_history(account):
File "/home/user/data/woob-data/modules/3.7/woob_modules/bp/browser.py", line 825, in <genexpr>
return (tr for tr in self.iter_card_transactions(account) if not tr._coming)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/data/woob-data/modules/3.7/woob_modules/bp/browser.py", line 946, in iter_card_transactions
for tr in iter_transactions(account.url, self.deferred_card_history_multi):
File "/home/user/data/woob-data/modules/3.7/woob_modules/bp/browser.py", line 942, in iter_transactions
for tr in self.page.get_history(deferred=True):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/data/woob-data/modules/3.7/woob_modules/bp/pages/accounthistory.py", line 137, in get_history
tr = self.generate_card_summary()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/data/woob-data/modules/3.7/woob_modules/bp/pages/accounthistory.py", line 180, in generate_card_summary
tr.amount = abs(CleanDecimal.French(
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/woob/browser/filters/base.py", line 188, in __call__
return self.filter(self.select(self.selector, item))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/woob/browser/filters/base.py", line 172, in select
ret = selector(item)
^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/woob/browser/filters/base.py", line 188, in __call__
return self.filter(self.select(self.selector, item))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/woob/browser/filters/base.py", line 136, in wrapper
res = function(self, value)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/woob/browser/filters/standard.py", line 641, in filter
return self.default_or_raise(RegexpError(msg))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/woob/browser/filters/base.py", line 71, in default_or_raise
raise exception
woob.browser.filters.standard.RegexpError: Unable to find 1st [Montant imputé le|cours prélevé au] \d+/\d+/\d+ : (.*) € in ''
........
[2024-12-16T17:52:04.207] [INFO] helpers - Error
at new KError (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/helpers.js:62:22)
at callWoob (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/providers/woob/index.js:234:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async _fetchHelper (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/providers/woob/index.js:291:16)
at async Object.fetchTransactions (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/providers/woob/index.js:315:12)
at async /usr/local/share/.config/yarn/global/node_modules/kresus/build/server/lib/accounts-manager.js:259:20
at async retryCallProvider (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/lib/accounts-manager.js:96:20)
at async pollTransactions (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/lib/accounts-manager.js:258:34)
at async AccountManager.syncTransactions (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/lib/accounts-manager.js:395:24)
at async createAndRetrieveData (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/controllers/accesses.js:150:37)
[2024-12-16T17:52:04.207] [ERROR] HTTP - POST /api/accesses - 500 (21963 ms)
[2024-12-16T17:52:34.551] [INFO] providers/woob - Calling woob: command version...
[2024-12-16T17:52:34.685] [INFO] providers/woob - exited with code 0.
[2024-12-16T17:52:34.685] [INFO] providers/woob - OK: woob exited normally with non-empty JSON content.
[2024-12-16T17:52:34.686] [INFO] HTTP - GET /api/instance/woob - 304 (136 ms)