Bonjour la communauté !
Récemment j’avais des soucis avec Kresus en ce qui concerne la récupération des informations d’un compte Caisse d’Epargne. J’ai pu voir sur le gitlab de Woob que d’autres ont le même problème que moi. J’ai voulu bricoler un peu Kresus pour voir si j’arrivais à avancer sur ce problème, mais j’ai finalement fait pire !
Avant Kresus se lançait normalement, mais le compte CE ne s’actualisait plus (problème de double authentification). Maintenant, lorsque je lance Kresus et que j’essaye d’y accéder je rencontre le pop-up « Assertion error: unexpected undefined ». Lorsque je ferme ce pop-up, j’ai juste l’écran de chargement de Kresus qui ne s’arrête jamais.
J’ai jeté un œil aux logs, mais je n’ai rien vu de choquant :
[2023-08-06T15:09:17.150] [INFO] apply-config - Running Kresus with the following parameters:
[2023-08-06T15:09:17.153] [INFO] apply-config - NODE_ENV = development
[2023-08-06T15:09:17.154] [INFO] apply-config - KRESUS_LOGIN = XXX
[2023-08-06T15:09:17.155] [INFO] apply-config - KRESUS_DIR = /home/pi/.kresus
[2023-08-06T15:09:17.156] [INFO] apply-config - KRESUS_USER_ID = null
[2023-08-06T15:09:17.157] [INFO] apply-config - PORT = 9876
[2023-08-06T15:09:17.158] [INFO] apply-config - HOST = 127.0.0.1
[2023-08-06T15:09:17.159] [INFO] apply-config - KRESUS_PYTHON_EXEC = python3
[2023-08-06T15:09:17.160] [INFO] apply-config - KRESUS_URL_PREFIX = /
[2023-08-06T15:09:17.161] [INFO] apply-config - KRESUS_SALT = (hidden)
[2023-08-06T15:09:17.162] [INFO] apply-config - KRESUS_FORCE_DEMO_MODE = false
[2023-08-06T15:09:17.163] [INFO] apply-config - KRESUS_WOOB_DIR = null
[2023-08-06T15:09:17.164] [INFO] apply-config - KRESUS_WOOB_SOURCES_LIST = null
[2023-08-06T15:09:17.165] [INFO] apply-config - KRESUS_EMAIL_TRANSPORT = null
[2023-08-06T15:09:17.166] [INFO] apply-config - KRESUS_EMAIL_SENDMAIL_BIN = null
[2023-08-06T15:09:17.167] [INFO] apply-config - KRESUS_EMAIL_FROM = null
[2023-08-06T15:09:17.168] [INFO] apply-config - KRESUS_EMAIL_HOST = null
[2023-08-06T15:09:17.169] [INFO] apply-config - KRESUS_EMAIL_PORT = null
[2023-08-06T15:09:17.170] [INFO] apply-config - KRESUS_EMAIL_USER = null
[2023-08-06T15:09:17.171] [INFO] apply-config - KRESUS_EMAIL_PASSWORD = (hidden)
[2023-08-06T15:09:17.172] [INFO] apply-config - KRESUS_EMAIL_FORCE_TLS = false
[2023-08-06T15:09:17.173] [INFO] apply-config - KRESUS_EMAIL_REJECT_UNAUTHORIZED_TLS = true
[2023-08-06T15:09:17.174] [INFO] apply-config - KRESUS_APPRISE_API_BASE_URL = null
[2023-08-06T15:09:17.175] [INFO] apply-config - KRESUS_AUTH = null
[2023-08-06T15:09:17.176] [INFO] apply-config - KRESUS_LOG_FILE = /home/pi/.kresus/kresus.log
[2023-08-06T15:09:17.176] [INFO] apply-config - KRESUS_DB_TYPE = postgres
[2023-08-06T15:09:17.177] [INFO] apply-config - KRESUS_DB_LOG = error
[2023-08-06T15:09:17.178] [INFO] apply-config - KRESUS_DB_SQLITE_PATH = null
[2023-08-06T15:09:17.179] [INFO] apply-config - KRESUS_DB_HOST = localhost
[2023-08-06T15:09:17.180] [INFO] apply-config - KRESUS_DB_PORT = 5432
[2023-08-06T15:09:17.181] [INFO] apply-config - KRESUS_DB_USERNAME = XXX
[2023-08-06T15:09:17.182] [INFO] apply-config - KRESUS_DB_PASSWORD = (hidden)
[2023-08-06T15:09:17.183] [INFO] apply-config - KRESUS_DB_NAME = XXX
[2023-08-06T15:09:32.821] [INFO] models/index - User has id 1
[2023-08-06T15:09:32.882] [INFO] init - Starting bank accounts polling et al...
[2023-08-06T15:09:32.899] [INFO] poller - > Next check of accounts on 07/08/2023 at 02:56:00
[2023-08-06T15:09:32.902] [INFO] poller - Checking accounts and operations for all accesses...
[2023-08-06T15:09:33.016] [INFO] accounts-manager - Retrieve all accounts from access bp with login XXX
[2023-08-06T15:09:33.027] [INFO] providers/woob - Calling woob: command accounts...
[2023-08-06T15:09:33.028] [INFO] providers/woob - Woob will be updated prior to command "accounts"
[2023-08-06T15:19:26.804] [INFO] providers/woob - exited with code 0.
[2023-08-06T15:19:26.807] [WARN] providers/woob - stderr: /home/pi/Documents/kresus/node_modules/kresus/build/server/providers/woob/py/main.py:132: DeprecationWarning: 'NoAccountsException' is deprecated. Use 'woob.capabilities.bank.NoAccountsException' instead.
from woob.exceptions import (
2023-08-06 15:18:58,794:DEBUG:urllib3.util.retry:retry.py:333:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
[DEBUG...]
2023-08-06 15:19:26,401:DEBUG:woob.bp.browser:browsers.py:1004:internal_callback Handle https://voscomptesenligne.labanquepostale.fr/voscomptes/canalXHTML/pret/encours/consulterPrets-encoursPrets.ea with AccountList
2023-08-06 15:19:26,503:DEBUG:woob.bp.browser:browsers.py:1256:dump_state Stored cookies into storage
[2023-08-06T15:19:26.808] [INFO] providers/woob - Saving session for access from bank bp with login XXX
[2023-08-06T15:19:26.895] [INFO] providers/woob - OK: woob exited normally with non-empty JSON content.
[2023-08-06T15:19:26.897] [INFO] accounts-manager - -> 2 bank account(s) found
[2023-08-06T15:19:26.919] [INFO] accounts-manager - Account 25 already known and in Kresus's database
[2023-08-06T15:19:26.920] [INFO] accounts-manager - Account 7 already known and in Kresus's database
[2023-08-06T15:19:26.958] [INFO] providers/woob - Calling woob: command operations...
[2023-08-06T15:19:40.115] [INFO] providers/woob - exited with code 0.
[2023-08-06T15:19:40.116] [WARN] providers/woob - stderr: /home/pi/Documents/kresus/node_modules/kresus/build/server/providers/woob/py/main.py:132: DeprecationWarning: 'NoAccountsException' is deprecated. Use 'woob.capabilities.bank.NoAccountsException' instead.
from woob.exceptions import (
2023-08-06 15:19:29,318:DEBUG:woob.core.modules.loader:modules.py:252:load_module Loaded module "bp" from /home/pi/.kresus/woob-data/modules/3.6/woob_modules/bp
[DEBUG...]
2023-08-06 15:19:39,790:DEBUG:root:main.py:611:get_operations Stopped fetch because op date (2023-02-19T00:00:00) is before from_date (2023-07-06T14:52:30.048000)
2023-08-06 15:19:39,792:DEBUG:woob.bp.browser:browsers.py:1256:dump_state Stored cookies into storage
[2023-08-06T15:19:40.118] [INFO] providers/woob - Saving session for access from bank bp with login XXX
[2023-08-06T15:19:40.173] [INFO] providers/woob - OK: woob exited normally with non-empty JSON content.
[2023-08-06T15:19:40.174] [INFO] accounts-manager - 33 operations retrieved from source.
[2023-08-06T15:19:40.175] [INFO] accounts-manager - Normalizing source information...
[2023-08-06T15:19:40.200] [INFO] accounts-manager - Comparing with database to ignore already known operations…
[2023-08-06T15:19:40.346] [INFO] accounts-manager - Updating accounts balances…
[2023-08-06T15:19:40.347] [INFO] accounts-manager - Updating 'last checked' for linked accounts...
[2023-08-06T15:19:40.410] [INFO] accounts-manager - Post process: done.
[2023-08-06T15:19:40.412] [INFO] poller - Won't poll, access from bank caissedepargne with login XXX last fetch raised: REQUIRES_INTERACTIVE.
[2023-08-06T15:19:40.413] [INFO] poller - All accounts have been polled.
[2023-08-06T15:19:40.414] [INFO] poller - Maybe sending reports...
[2023-08-06T15:19:40.415] [INFO] report-manager - No emailer found, skipping reports management.
[2023-08-06T15:19:40.416] [INFO] poller - Reports have been sent.
[2023-08-06T15:19:40.417] [INFO] init - Server is ready, let's start the show!
[2023-08-06T15:20:29.107] [INFO] providers/woob - Calling woob: command version...
[2023-08-06T15:20:31.386] [INFO] providers/woob - exited with code 0.
[2023-08-06T15:20:31.386] [WARN] providers/woob - stderr: /home/pi/Documents/kresus/node_modules/kresus/build/server/providers/woob/py/main.py:132: DeprecationWarning: 'NoAccountsException' is deprecated. Use 'woob.capabilities.bank.NoAccountsException' instead.
from woob.exceptions import (
[2023-08-06T15:20:31.387] [INFO] providers/woob - OK: woob exited normally with non-empty JSON content.
[2023-08-06T15:20:31.456] [INFO] HTTP - GET /api/all/ - 200 (2717 ms)
[2023-08-06T15:33:57.068] [INFO] HTTP - GET /api/all/ - 200 (299 ms)
[2023-08-06T15:39:56.755] [INFO] HTTP - GET /api/all/ - 200 (287 ms)
Il y a pas mal de messages de debug pour La Banque Postale, je ne sais pas si c’est normal mais je sais que je les avais déjà avant. A part ça tout me semble correct, pourtant impossible d’accéder à l’interface web à présent.