BforBank : double authentification

Bonjour,

Je suis un nouvel utilisateur de Kresus (via YunoHost). Tout d’abord merci pour l’initiative, je trouve ça top de pouvoir auto-héberger son agrégateur bancaire :slight_smile: J’ai réussi à ajouter plusieurs comptes donc mon install semble fonctionnelle, mais je bute avec BforBank :

  1. je renseigne mon identifiant, ma date de naissance ainsi que mon mot de passe, une 1ère authentification semble fonctionner puisque dans les logs on peut voir qu’il détecte mon PEA
  2. ensuite il m’envoie un SMS, je saisis le code et là ça plante :
[2023-08-01T10:38:35.296] [INFO] HTTP - POST /kresus/api/settings - 200 (16 ms)
[2023-08-01T10:38:35.356] [INFO] accounts-manager - Retrieve all accounts from access bforbank with login ***
[2023-08-01T10:38:35.362] [INFO] providers/woob - Calling woob: command accounts...
[2023-08-01T10:38:37.299] [INFO] providers/woob - exited with code 0.
[2023-08-01T10:38:37.301] [INFO] providers/woob - Saving session for access from bank bforbank with login ***
[2023-08-01T10:38:37.313] [INFO] providers/woob - Browser question is required; propagating question to the user.
[2023-08-01T10:38:37.318] [INFO] HTTP - POST /kresus/api/accesses - 200 (1986 ms)
[2023-08-01T10:38:54.662] [INFO] accounts-manager - Retrieve all accounts from access bforbank with login ***
[2023-08-01T10:38:54.668] [INFO] providers/woob - Calling woob: command accounts...
[2023-08-01T10:39:00.686] [INFO] providers/woob - exited with code 0.
[2023-08-01T10:39:00.686] [INFO] providers/woob - Saving session for access from bank bforbank with login ***
[2023-08-01T10:39:00.708] [INFO] providers/woob - OK: woob exited normally with non-empty JSON content.
[2023-08-01T10:39:00.710] [INFO] accounts-manager - -> 1 bank account(s) found
[2023-08-01T10:39:00.715] [INFO] accounts-manager - New account found:  PEA
[2023-08-01T10:39:00.716] [INFO] accounts-manager - => Saving it as per request.
[2023-08-01T10:39:00.803] [INFO] providers/woob - Calling woob: command operations...
[2023-08-01T10:39:08.623] [INFO] providers/woob - exited with code 1.
[2023-08-01T10:39:08.625] [INFO] providers/woob - Command returned an error code.
[2023-08-01T10:39:08.625] [INFO] providers/woob - Checking that woob is installed and can actually be called…
[2023-08-01T10:39:08.627] [INFO] providers/woob - Calling woob: command test...
[2023-08-01T10:39:09.585] [INFO] providers/woob - exited with code 0.
[2023-08-01T10:39:09.586] [INFO] providers/woob - OK: woob exited normally with non-empty JSON content.
[2023-08-01T10:39:09.587] [ERROR] providers/woob - Got error while running command "operations": Unknown error: Unexpected error at login: "StrongAuthenticationSessionExpired".
Traceback (most recent call last):
  File "/var/www/kresus/build/server/providers/woob/py/main.py", line 704, in fetch
    results['values'] = self.get_operations(from_date)
  File "/var/www/kresus/build/server/providers/woob/py/main.py", line 621, in get_operations
    op for op in self.backend.iter_coming(account)
  File "/var/www/kresus/data/woob-data/modules/3.6/woob_modules/bforbank/module.py", line 61, in iter_coming
    return self.browser.get_coming(account)
  File "/var/www/kresus/venv/lib/python3.9/site-packages/woob/browser/browsers.py", line 1118, in inner
    browser.do_login()
  File "/var/www/kresus/venv/lib/python3.9/site-packages/woob/browser/mfa.py", line 181, in do_double_authentication
    handle_method()
  File "/var/www/kresus/data/woob-data/modules/3.6/woob_modules/bforbank/browser.py", line 286, in handle_sms
    self.handle_errors(error, clear_twofa=True)
  File "/var/www/kresus/data/woob-data/modules/3.6/woob_modules/bforbank/browser.py", line 180, in handle_errors
    raise AssertionError('Unexpected error at login: "%s"' % error)
AssertionError: Unexpected error at login: "StrongAuthenticationSessionExpired"

[2023-08-01T10:39:09.587] [ERROR] providers/woob - 	(error code: GENERIC_EXCEPTION)
[2023-08-01T10:39:09.603] [ERROR] controllers/accesses - The access process creation failed, cleaning up...
[2023-08-01T10:39:09.604] [INFO] controllers/accesses - 	deleting access...
[2023-08-01T10:39:09.610] [ERROR] helpers - when creating a bank access: Unknown error: Unexpected error at login: "StrongAuthenticationSessionExpired".
Traceback (most recent call last):
  File "/var/www/kresus/build/server/providers/woob/py/main.py", line 704, in fetch
    results['values'] = self.get_operations(from_date)
  File "/var/www/kresus/build/server/providers/woob/py/main.py", line 621, in get_operations
    op for op in self.backend.iter_coming(account)
  File "/var/www/kresus/data/woob-data/modules/3.6/woob_modules/bforbank/module.py", line 61, in iter_coming
    return self.browser.get_coming(account)
  File "/var/www/kresus/venv/lib/python3.9/site-packages/woob/browser/browsers.py", line 1118, in inner
    browser.do_login()
  File "/var/www/kresus/venv/lib/python3.9/site-packages/woob/browser/mfa.py", line 181, in do_double_authentication
    handle_method()
  File "/var/www/kresus/data/woob-data/modules/3.6/woob_modules/bforbank/browser.py", line 286, in handle_sms
    self.handle_errors(error, clear_twofa=True)
  File "/var/www/kresus/data/woob-data/modules/3.6/woob_modules/bforbank/browser.py", line 180, in handle_errors
    raise AssertionError('Unexpected error at login: "%s"' % error)
AssertionError: Unexpected error at login: "StrongAuthenticationSessionExpired"

[2023-08-01T10:39:09.612] [INFO] helpers - Error
    at new KError (/var/www/kresus/build/server/helpers.js:59:22)
    at callWoob (/var/www/kresus/build/server/providers/woob/index.js:192:15)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async _fetchHelper (/var/www/kresus/build/server/providers/woob/index.js:249:16)
    at async Object.fetchOperations (/var/www/kresus/build/server/providers/woob/index.js:274:12)
    at async pollTransactions (/var/www/kresus/build/server/lib/accounts-manager.js:216:34)
    at async AccountManager.syncTransactions (/var/www/kresus/build/server/lib/accounts-manager.js:339:24)
    at async createAndRetrieveData (/var/www/kresus/build/server/controllers/accesses.js:149:37)
    at async create (/var/www/kresus/build/server/controllers/accesses.js:184:22)
[2023-08-01T10:39:09.619] [ERROR] HTTP - POST /kresus/api/accesses - 500 (14981 ms)
[2023-08-01T10:39:16.753] [INFO] controllers/accesses - Cleaning up incomplete access with id 33
[2023-08-01T10:39:17.104] [INFO] HTTP - GET /kresus/api/all/ - 304 (354 ms)
[2023-08-01T10:39:24.719] [INFO] providers/woob - Calling woob: command version...
[2023-08-01T10:39:25.695] [INFO] providers/woob - exited with code 0.
[2023-08-01T10:39:25.696] [INFO] providers/woob - OK: woob exited normally with non-empty JSON content.
[2023-08-01T10:39:25.699] [INFO] HTTP - GET /kresus/api/instance/woob - 304 (981 ms)

De quel côté puis-je creuser ?

Merci d’avance,

Salut !

Merci pour le retour. Est-ce que tu as essayé de mettre à jour Woob (en dehors de Kresus) et ses modules (depuis les préférences, puis administration, dans Kresus) ? Si ça plante encore, est-ce que tu as l’occasion de tester avec woob directement en ligne de commande stp, et voir si tu reproduis le problème ?

Salut,

Je ne sais pas mettre à jour woob en dehors de Kresus. via YunoHost ? en ligne de commande avec quelque chose du genre « apt update xxx » ?
Depuis l’admin Kresus j’ai lancé la mise à jour manuelle des modules. Tout en haut il est indiqué que ma version de woob est la 3.6.

As-tu un exemple d’utilisation de woob en ligne de commande, stp ?

Merci d’avance,

Salut, rien dont je me souvienne en particulier là comme ça, mais je suis certain que le site de Woob a de la documentation là-dessus :slight_smile:

Pour mettre à jour woob tu peux forcer une mise à jour du paquet yunohost avec sudo yunohost app upgrade kresus -u https://github.com/YunoHost-Apps/kresus_ynh.

Bonjour,
Désolé pour mon délai de réponse.
Je suis parti d’une VM Debian 11 sur laquelle j’ai installé Kresus 0.20.1 via npm (et woob 3.6 via pip).
Mon instance est fonctionnelle : j’ai synchronisé Boursorama et Fortuneo avec succès.

Concernant BforBank, j’ai toujours le même problème en passant par Kresus : je saisis le code reçu par SMS et ça plante :

error when entering 2nd factor: Unknown error: Unexpected error at login: "StrongAuthenticationSessionExpired"

cf. log dans mon 1er message

J’ai fait un test avec woob ‹ bank › et là ça fonctionne :

$ woob bank
Welcome to bank v3.6
Loaded backends: bforbank

bank> list
                 Account                     Balance    Coming
------------------------------------------+----------+----------
[bforbank] Identifiant (hidden input):
[bforbank] Code personnel (hidden input):
[code] Un SMS contenant un code vous a été envoyé sur votre téléphone portable: 564489
 #1 (bforbank)   PEA                          xxx.00
------------------------------------------+----------+----------
                              Total (EUR)     xxx.00       0.00

Je ne sais pas quelles commandes woob sont utilisées par Kresus…
Comment puis-je avancer ?

Log debug :

[2024-02-19T12:40:07.303] [INFO] accounts-manager - Retrieve all accounts from access bforbank with login ***
[2024-02-19T12:40:07.309] [INFO] providers/woob - Calling woob: command accounts...
[2024-02-19T12:40:09.778] [INFO] providers/woob - exited with code 0.
[2024-02-19T12:40:09.779] [WARN] providers/woob - stderr: 2024-02-19 12:40:08,372:DEBUG:woob.core.modules.loader:modules.py:250:load_module Loaded module "bforbank" from /home/user/data/woob-data/modules/3.6/woob_modules/bforbank
2024-02-19 12:40:08,377:DEBUG:woob.backend:modules.py:160:create_instance Created backend "bforbank" for module "bforbank"
2024-02-19 12:40:08,383:DEBUG:urllib3.util.retry:retry.py:351:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2024-02-19 12:40:08,383:DEBUG:urllib3.util.retry:retry.py:351:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2024-02-19 12:40:08,386:DEBUG:urllib3.util.retry:retry.py:351:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2024-02-19 12:40:08,387:DEBUG:urllib3.util.retry:retry.py:351:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2024-02-19 12:40:08,391:DEBUG:urllib3.connectionpool:connectionpool.py:1019:_new_conn Starting new HTTPS connection (1): client.bforbank.com:443
2024-02-19 12:40:08,614:DEBUG:urllib3.connectionpool:connectionpool.py:474:_make_request https://client.bforbank.com:443 "GET /connexion-client/service/login?urlBack=%2Fespace-client HTTP/1.1" 200 None
2024-02-19 12:40:08,620:DEBUG:woob.bforbank.browser:browsers.py:1004:internal_callback Handle https://client.bforbank.com/connexion-client/service/login?urlBack=%2Fespace-client with LoginPage
2024-02-19 12:40:08,648:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'IHDR' 16 13
2024-02-19 12:40:08,648:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'pHYs' 41 9
2024-02-19 12:40:08,649:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'cHRM' 62 32
2024-02-19 12:40:08,649:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'IDAT' 106 220
2024-02-19 12:40:08,650:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'IHDR' 16 13
2024-02-19 12:40:08,650:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'pHYs' 41 9
2024-02-19 12:40:08,651:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'cHRM' 62 32
2024-02-19 12:40:08,652:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'IDAT' 106 137
2024-02-19 12:40:08,653:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'IHDR' 16 13
2024-02-19 12:40:08,653:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'pHYs' 41 9
2024-02-19 12:40:08,653:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'cHRM' 62 32
2024-02-19 12:40:08,654:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'IDAT' 106 200
2024-02-19 12:40:08,654:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'IHDR' 16 13
2024-02-19 12:40:08,655:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'pHYs' 41 9
2024-02-19 12:40:08,655:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'cHRM' 62 32
2024-02-19 12:40:08,656:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'IDAT' 106 172
2024-02-19 12:40:08,656:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'IHDR' 16 13
2024-02-19 12:40:08,657:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'pHYs' 41 9
2024-02-19 12:40:08,657:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'cHRM' 62 32
2024-02-19 12:40:08,657:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'IDAT' 106 217
2024-02-19 12:40:08,658:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'IHDR' 16 13
2024-02-19 12:40:08,659:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'pHYs' 41 9
2024-02-19 12:40:08,659:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'cHRM' 62 32
2024-02-19 12:40:08,659:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'IDAT' 106 194
2024-02-19 12:40:08,660:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'IHDR' 16 13
2024-02-19 12:40:08,661:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'pHYs' 41 9
2024-02-19 12:40:08,661:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'cHRM' 62 32
2024-02-19 12:40:08,661:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'IDAT' 106 218
2024-02-19 12:40:08,662:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'IHDR' 16 13
2024-02-19 12:40:08,662:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'pHYs' 41 9
2024-02-19 12:40:08,663:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'cHRM' 62 32
2024-02-19 12:40:08,663:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'IDAT' 106 226
2024-02-19 12:40:08,664:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'IHDR' 16 13
2024-02-19 12:40:08,664:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'pHYs' 41 9
2024-02-19 12:40:08,665:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'cHRM' 62 32
2024-02-19 12:40:08,665:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'IDAT' 106 206
2024-02-19 12:40:08,666:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'IHDR' 16 13
2024-02-19 12:40:08,671:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'pHYs' 41 9
2024-02-19 12:40:08,671:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'cHRM' 62 32
2024-02-19 12:40:08,672:DEBUG:PIL.PngImagePlugin:PngImagePlugin.py:191:call STREAM b'IDAT' 106 222
2024-02-19 12:40:09,195:DEBUG:urllib3.connectionpool:connectionpool.py:474:_make_request https://client.bforbank.com:443 "POST /connexion-client/service/auth HTTP/1.1" 200 237
2024-02-19 12:40:09,207:DEBUG:woob.bforbank.browser:browsers.py:1018:internal_callback Unable to handle https://client.bforbank.com/connexion-client/service/auth
2024-02-19 12:40:09,528:DEBUG:urllib3.connectionpool:connectionpool.py:474:_make_request https://client.bforbank.com:443 "POST /connexion-client/service/resendCode/*** HTTP/1.1" 200 244
2024-02-19 12:40:09,531:DEBUG:woob.bforbank.browser:browsers.py:1004:internal_callback Handle https://client.bforbank.com/connexion-client/service/resendCode/*** with SendTwoFAPage
2024-02-19 12:40:09,533:DEBUG:woob.bforbank.browser:browsers.py:1256:dump_state Stored cookies into storage
[2024-02-19T12:40:09.781] [INFO] providers/woob - Saving session for access from bank bforbank with login ***
[2024-02-19T12:40:09.805] [INFO] providers/woob - Browser question is required; propagating question to the user.
[2024-02-19T12:40:09.810] [INFO] HTTP - POST /api/accesses - 200 (2600 ms)
[2024-02-19T12:40:35.480] [INFO] accounts-manager - Retrieve all accounts from access bforbank with login ***
[2024-02-19T12:40:35.484] [INFO] providers/woob - Calling woob: command accounts...
[2024-02-19T12:40:40.524] [INFO] providers/woob - exited with code 0.
[2024-02-19T12:40:40.525] [WARN] providers/woob - stderr: 2024-02-19 12:40:36,320:DEBUG:woob.core.modules.loader:modules.py:250:load_module Loaded module "bforbank" from /home/user/data/woob-data/modules/3.6/woob_modules/bforbank
2024-02-19 12:40:36,325:DEBUG:woob.backend:modules.py:160:create_instance Created backend "bforbank" for module "bforbank"
2024-02-19 12:40:36,330:DEBUG:urllib3.util.retry:retry.py:351:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2024-02-19 12:40:36,330:DEBUG:urllib3.util.retry:retry.py:351:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2024-02-19 12:40:36,333:DEBUG:urllib3.util.retry:retry.py:351:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2024-02-19 12:40:36,334:DEBUG:urllib3.util.retry:retry.py:351:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2024-02-19 12:40:36,336:DEBUG:woob.bforbank.browser:browsers.py:1195:_load_cookies Reloaded cookies from storage
2024-02-19 12:40:36,339:DEBUG:urllib3.connectionpool:connectionpool.py:1019:_new_conn Starting new HTTPS connection (1): client.bforbank.com:443
2024-02-19 12:40:36,511:DEBUG:urllib3.connectionpool:connectionpool.py:474:_make_request https://client.bforbank.com:443 "GET /connexion-client/service/resendCode/*** HTTP/1.1" 405 8507
2024-02-19 12:40:36,664:DEBUG:urllib3.connectionpool:connectionpool.py:474:_make_request https://client.bforbank.com:443 "POST /connexion-client/service/authForte HTTP/1.1" 200 71
2024-02-19 12:40:36,672:DEBUG:woob.bforbank.browser:browsers.py:1018:internal_callback Unable to handle https://client.bforbank.com/connexion-client/service/authForte
2024-02-19 12:40:38,319:DEBUG:urllib3.connectionpool:connectionpool.py:474:_make_request https://client.bforbank.com:443 "GET /espace-client/ HTTP/1.1" 200 None
2024-02-19 12:40:38,325:DEBUG:woob.bforbank.browser:browsers.py:1004:internal_callback Handle https://client.bforbank.com/espace-client/ with AccountsPage
2024-02-19 12:40:38,862:DEBUG:urllib3.connectionpool:connectionpool.py:474:_make_request https://client.bforbank.com:443 "GET /espace-client/profil/informations HTTP/1.1" 200 None
2024-02-19 12:40:38,868:DEBUG:woob.bforbank.browser:browsers.py:1004:internal_callback Handle https://client.bforbank.com/espace-client/profil/informations with ProfilePage
2024-02-19 12:40:39,442:DEBUG:urllib3.connectionpool:connectionpool.py:474:_make_request https://client.bforbank.com:443 "GET /espace-client/ HTTP/1.1" 200 None
2024-02-19 12:40:39,447:DEBUG:woob.bforbank.browser:browsers.py:1004:internal_callback Handle https://client.bforbank.com/espace-client/ with AccountsPage
2024-02-19 12:40:39,795:DEBUG:urllib3.connectionpool:connectionpool.py:474:_make_request https://client.bforbank.com:443 "GET /espace-client/rib HTTP/1.1" 200 None
2024-02-19 12:40:39,799:DEBUG:woob.bforbank.browser:browsers.py:1004:internal_callback Handle https://client.bforbank.com/espace-client/rib with RibPage
2024-02-19 12:40:40,318:DEBUG:urllib3.connectionpool:connectionpool.py:474:_make_request https://client.bforbank.com:443 "GET /espace-client/rib/GgHhsrWDtseZlnvGAkbfxWIfJDuPm4Z7iSRKKw9UdhY= HTTP/1.1" 200 None
2024-02-19 12:40:40,323:DEBUG:woob.bforbank.browser:browsers.py:1004:internal_callback Handle https://client.bforbank.com/espace-client/rib/GgHhsrWDtseZlnvGAkbfxWIfJDuPm4Z7iSRKKw9UdhY= with RibPage
2024-02-19 12:40:40,325:DEBUG:woob.bforbank.browser:browsers.py:1256:dump_state Stored cookies into storage
[2024-02-19T12:40:40.527] [INFO] providers/woob - Saving session for access from bank bforbank with login ***
[2024-02-19T12:40:40.545] [INFO] providers/woob - OK: woob exited normally with non-empty JSON content.
[2024-02-19T12:40:40.546] [INFO] accounts-manager - -> 1 bank account(s) found
[2024-02-19T12:40:40.551] [INFO] accounts-manager - New account found:  PEA
[2024-02-19T12:40:40.552] [INFO] accounts-manager - => Saving it as per request.
[2024-02-19T12:40:40.575] [INFO] providers/woob - Calling woob: command transactions...
[2024-02-19T12:40:47.730] [INFO] providers/woob - exited with code 1.
[2024-02-19T12:40:47.730] [WARN] providers/woob - stderr: 2024-02-19 12:40:41,411:DEBUG:woob.core.modules.loader:modules.py:250:load_module Loaded module "bforbank" from /home/user/data/woob-data/modules/3.6/woob_modules/bforbank
2024-02-19 12:40:41,415:DEBUG:woob.backend:modules.py:160:create_instance Created backend "bforbank" for module "bforbank"
2024-02-19 12:40:41,417:DEBUG:urllib3.util.retry:retry.py:351:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2024-02-19 12:40:41,418:DEBUG:urllib3.util.retry:retry.py:351:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2024-02-19 12:40:41,421:DEBUG:urllib3.util.retry:retry.py:351:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2024-02-19 12:40:41,422:DEBUG:urllib3.util.retry:retry.py:351:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2024-02-19 12:40:41,424:DEBUG:woob.bforbank.browser:browsers.py:1195:_load_cookies Reloaded cookies from storage
2024-02-19 12:40:41,429:DEBUG:urllib3.connectionpool:connectionpool.py:1019:_new_conn Starting new HTTPS connection (1): client.bforbank.com:443
2024-02-19 12:40:43,077:DEBUG:urllib3.connectionpool:connectionpool.py:474:_make_request https://client.bforbank.com:443 "GET /espace-client/rib/GgHhsrWDtseZlnvGAkbfxWIfJDuPm4Z7iSRKKw9UdhY= HTTP/1.1" 200 None
2024-02-19 12:40:43,086:DEBUG:woob.bforbank.browser:browsers.py:1004:internal_callback Handle https://client.bforbank.com/espace-client/rib/GgHhsrWDtseZlnvGAkbfxWIfJDuPm4Z7iSRKKw9UdhY= with RibPage
2024-02-19 12:40:43,594:DEBUG:urllib3.connectionpool:connectionpool.py:474:_make_request https://client.bforbank.com:443 "GET /espace-client/profil/informations HTTP/1.1" 200 None
2024-02-19 12:40:43,605:DEBUG:woob.bforbank.browser:browsers.py:1004:internal_callback Handle https://client.bforbank.com/espace-client/profil/informations with ProfilePage
2024-02-19 12:40:44,122:DEBUG:urllib3.connectionpool:connectionpool.py:474:_make_request https://client.bforbank.com:443 "GET /espace-client/ HTTP/1.1" 200 None
2024-02-19 12:40:44,127:DEBUG:woob.bforbank.browser:browsers.py:1004:internal_callback Handle https://client.bforbank.com/espace-client/ with AccountsPage
2024-02-19 12:40:44,477:DEBUG:urllib3.connectionpool:connectionpool.py:474:_make_request https://client.bforbank.com:443 "GET /espace-client/rib HTTP/1.1" 200 4908
2024-02-19 12:40:44,488:DEBUG:woob.bforbank.browser:browsers.py:1004:internal_callback Handle https://client.bforbank.com/espace-client/rib with RibPage
2024-02-19 12:40:44,902:DEBUG:urllib3.connectionpool:connectionpool.py:474:_make_request https://client.bforbank.com:443 "GET /espace-client/rib/GgHhsrWDtseZlnvGAkbfxWIfJDuPm4Z7iSRKKw9UdhY= HTTP/1.1" 200 4908
2024-02-19 12:40:44,906:DEBUG:woob.bforbank.browser:browsers.py:1004:internal_callback Handle https://client.bforbank.com/espace-client/rib/GgHhsrWDtseZlnvGAkbfxWIfJDuPm4Z7iSRKKw9UdhY= with RibPage
2024-02-19 12:40:45,570:DEBUG:urllib3.connectionpool:connectionpool.py:474:_make_request https://client.bforbank.com:443 "GET /espace-client/profil/informations HTTP/1.1" 200 None
2024-02-19 12:40:45,576:DEBUG:woob.bforbank.browser:browsers.py:1004:internal_callback Handle https://client.bforbank.com/espace-client/profil/informations with ProfilePage
2024-02-19 12:40:46,810:DEBUG:urllib3.connectionpool:connectionpool.py:474:_make_request https://client.bforbank.com:443 "GET /espace-client/titres/debranchementCaTitre/GgHhsrWDtseZlnvGAkbfxWIfJDuPm4Z7iSRKKw9UdhY= HTTP/1.1" 302 20
2024-02-19 12:40:46,814:DEBUG:urllib3.connectionpool:connectionpool.py:1019:_new_conn Starting new HTTPS connection (1): bourse.bforbank.com:443
2024-02-19 12:40:47,053:DEBUG:urllib3.connectionpool:connectionpool.py:474:_make_request https://bourse.bforbank.com:443 "GET /netfinca-titres/servlet/com.netfinca.frontcr.navigation.AccueilBridge?TOKEN_ID=d1a869d06283c26b352704117e1571bf94cb2107e07c160c9f1faffef51450ac HTTP/1.1" 200 899
2024-02-19 12:40:47,057:DEBUG:woob.bforbank.browser:browsers.py:1018:internal_callback Unable to handle https://bourse.bforbank.com/netfinca-titres/servlet/com.netfinca.frontcr.navigation.AccueilBridge?TOKEN_ID=d1a869d06283c26b352704117e1571bf94cb2107e07c160c9f1faffef51450ac
2024-02-19 12:40:47,133:DEBUG:urllib3.connectionpool:connectionpool.py:474:_make_request https://bourse.bforbank.com:443 "GET /netfinca-titres/servlet/com.netfinca.frontcr.synthesis.HomeSynthesis HTTP/1.1" 200 None
2024-02-19 12:40:47,143:DEBUG:woob.bforbank.browser:browsers.py:1004:internal_callback Handle https://bourse.bforbank.com/netfinca-titres/servlet/com.netfinca.frontcr.synthesis.HomeSynthesis with BoursePage
2024-02-19 12:40:47,144:DEBUG:woob.bforbank.browser:browser.py:492:get_bourse_account searching account matching <Account id='***' label='PEA'>
2024-02-19 12:40:47,321:DEBUG:urllib3.connectionpool:connectionpool.py:474:_make_request https://bourse.bforbank.com:443 "GET /netfinca-titres/servlet/com.netfinca.frontcr.account.WalletVal?nump=20100869806:794 HTTP/1.1" 200 None
2024-02-19 12:40:47,331:DEBUG:woob.bforbank.browser:browsers.py:1004:internal_callback Handle https://bourse.bforbank.com/netfinca-titres/servlet/com.netfinca.frontcr.account.WalletVal?nump=20100869806:794 with BoursePage
2024-02-19 12:40:47,338:DEBUG:woob.bforbank.browser:browser.py:494:get_bourse_account iterating account <Account id='20100869806bourse' label='COMPTE PEA Bourse'>
2024-02-19 12:40:47,366:DEBUG:urllib3.connectionpool:connectionpool.py:474:_make_request https://bourse.bforbank.com:443 "GET /netfinca-titres/servlet/com.netfinca.frontcr.account.AccountHistory?nump=20100869806%3A794 HTTP/1.1" 200 None
2024-02-19 12:40:47,377:DEBUG:woob.bforbank.browser:browsers.py:1004:internal_callback Handle https://bourse.bforbank.com/netfinca-titres/servlet/com.netfinca.frontcr.account.AccountHistory?nump=20100869806%3A794 with BoursePage
2024-02-19 12:40:47,398:DEBUG:urllib3.connectionpool:connectionpool.py:474:_make_request https://bourse.bforbank.com:443 "GET /netfinca-titres/servlet/com.netfinca.frontcr.navigation.Titre HTTP/1.1" 200 None
2024-02-19 12:40:47,405:DEBUG:woob.bforbank.browser:browsers.py:1004:internal_callback Handle https://bourse.bforbank.com/netfinca-titres/servlet/com.netfinca.frontcr.navigation.Titre with BoursePage
2024-02-19 12:40:47,442:DEBUG:urllib3.connectionpool:connectionpool.py:474:_make_request https://bourse.bforbank.com:443 "GET /netfinca-titres/servlet/com.netfinca.frontcr.login.Logout?urlBack=true HTTP/1.1" 200 361
2024-02-19 12:40:47,446:DEBUG:woob.bforbank.browser:browsers.py:1004:internal_callback Handle https://bourse.bforbank.com/netfinca-titres/servlet/com.netfinca.frontcr.login.Logout?urlBack=true with BourseDisconnectPage
2024-02-19 12:40:47,477:DEBUG:urllib3.connectionpool:connectionpool.py:474:_make_request https://client.bforbank.com:443 "GET /connexion-client/service/login?urlBack=%2Fespace-client HTTP/1.1" 200 None
2024-02-19 12:40:47,482:DEBUG:woob.bforbank.browser:browsers.py:1004:internal_callback Handle https://client.bforbank.com/connexion-client/service/login?urlBack=%2Fespace-client with LoginPage
2024-02-19 12:40:47,519:DEBUG:urllib3.connectionpool:connectionpool.py:474:_make_request https://client.bforbank.com:443 "POST /connexion-client/service/authForte HTTP/1.1" 200 70
2024-02-19 12:40:47,521:DEBUG:woob.bforbank.browser:browsers.py:1018:internal_callback Unable to handle https://client.bforbank.com/connexion-client/service/authForte
[2024-02-19T12:40:47.732] [INFO] providers/woob - Command returned an error code.
[2024-02-19T12:40:47.735] [INFO] providers/woob - Checking that woob is installed and can actually be called…
[2024-02-19T12:40:47.736] [INFO] providers/woob - Calling woob: command test...
[2024-02-19T12:40:48.600] [INFO] providers/woob - exited with code 0.
[2024-02-19T12:40:48.600] [INFO] providers/woob - OK: woob exited normally with non-empty JSON content.
[2024-02-19T12:40:48.601] [ERROR] providers/woob - Got error while running command "2": Unknown error: Unexpected error at login: "StrongAuthenticationSessionExpired".

Traceback (most recent call last):
  File "/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/providers/woob/py/main.py", line 704, 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 621, in get_transactions
    tr for tr in self.backend.iter_coming(account)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/data/woob-data/modules/3.6/woob_modules/bforbank/module.py", line 55, in iter_coming
    return self.browser.get_coming(account)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/woob/browser/browsers.py", line 1118, in inner
    browser.do_login()
  File "/usr/local/lib/python3.11/dist-packages/woob/browser/mfa.py", line 181, in do_double_authentication
    handle_method()
  File "/home/user/data/woob-data/modules/3.6/woob_modules/bforbank/browser.py", line 286, in handle_sms
    self.handle_errors(error, clear_twofa=True)
  File "/home/user/data/woob-data/modules/3.6/woob_modules/bforbank/browser.py", line 180, in handle_errors
    raise AssertionError('Unexpected error at login: "%s"' % error)
AssertionError: Unexpected error at login: "StrongAuthenticationSessionExpired"

[2024-02-19T12:40:48.602] [ERROR] providers/woob - 	(error code: GENERIC_EXCEPTION)
[2024-02-19T12:40:48.617] [ERROR] controllers/accesses - The access process creation failed, cleaning up...
[2024-02-19T12:40:48.618] [INFO] controllers/accesses - 	deleting access...
[2024-02-19T12:40:48.629] [ERROR] helpers - when creating a bank access: Unknown error: Unexpected error at login: "StrongAuthenticationSessionExpired".
Traceback (most recent call last):
  File "/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/providers/woob/py/main.py", line 704, 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 621, in get_transactions
    tr for tr in self.backend.iter_coming(account)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/data/woob-data/modules/3.6/woob_modules/bforbank/module.py", line 55, in iter_coming
    return self.browser.get_coming(account)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/woob/browser/browsers.py", line 1118, in inner
    browser.do_login()
  File "/usr/local/lib/python3.11/dist-packages/woob/browser/mfa.py", line 181, in do_double_authentication
    handle_method()
  File "/home/user/data/woob-data/modules/3.6/woob_modules/bforbank/browser.py", line 286, in handle_sms
    self.handle_errors(error, clear_twofa=True)
  File "/home/user/data/woob-data/modules/3.6/woob_modules/bforbank/browser.py", line 180, in handle_errors
    raise AssertionError('Unexpected error at login: "%s"' % error)
AssertionError: Unexpected error at login: "StrongAuthenticationSessionExpired"

[2024-02-19T12:40:48.630] [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 pollTransactions (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/lib/accounts-manager.js:214:34)
    at async AccountManager.syncTransactions (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/lib/accounts-manager.js:336:24)
    at async createAndRetrieveData (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/controllers/accesses.js:149:37)
    at async create (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/controllers/accesses.js:184:22)
[2024-02-19T12:40:48.634] [ERROR] HTTP - POST /api/accesses - 500 (13187 ms)
[2024-02-19T12:41:01.706] [INFO] HTTP - GET / - 304 (8 ms)
[2024-02-19T12:41:01.730] [INFO] HTTP - GET /assets/index.0a0d4d4a.css - 304 (4 ms)
[2024-02-19T12:41:01.739] [INFO] HTTP - GET /assets/index.32b90ad4.js - 304 (3 ms)
[2024-02-19T12:41:01.850] [INFO] controllers/accesses - Cleaning up incomplete access with id 27
[2024-02-19T12:41:02.473] [INFO] HTTP - GET /api/all/ - 200 (651 ms)
[2024-02-19T12:41:02.605] [INFO] HTTP - GET /assets/OpenSans-Semibold.b0390aa3.woff - 304 (12 ms)
[2024-02-19T12:41:02.608] [INFO] HTTP - GET /assets/OpenSans-Regular.2e158738.woff - 304 (9 ms)
[2024-02-19T12:41:02.618] [INFO] HTTP - GET /assets/bank-sprite.png - 304 (8 ms)
[2024-02-19T12:41:02.621] [INFO] HTTP - GET /assets/OpenSans-Bold.7d7a1a8e.woff - 304 (10 ms)
[2024-02-19T12:41:02.624] [INFO] HTTP - GET /assets/fontawesome-webfont.2adefcbc.woff2?v=4.7.0 - 304 (9 ms)
[2024-02-19T12:41:05.192] [INFO] providers/woob - Calling woob: command version...
[2024-02-19T12:41:06.060] [INFO] providers/woob - exited with code 0.
[2024-02-19T12:41:06.061] [INFO] providers/woob - OK: woob exited normally with non-empty JSON content.
[2024-02-19T12:41:06.064] [INFO] HTTP - GET /api/instance/woob - 304 (874 ms)