Problème de synchro LaBanquePostale

Bonjour
Depuis hier soir, j’ai une « erreur inconnue » pour la synchro:

image

La banque semble avoir changé son clavier de connexion, peut-être que cela a perdu Woob (sa mise à jour par l’interface n’a rien changé)

[2023-06-15T23:45:05.184] [ERROR] providers/woob - 	(error code: GENERIC_EXCEPTION)
[2023-06-15T23:45:05.193] [ERROR] helpers - when fetching operations: Unknown error: list index out of range.
Traceback (most recent call last):
  File "/opt/kresus/node_modules/kresus/build/server/providers/woob/py/main.py", line 706, in fetch
    results['values'] = self.get_operations(from_date)
  File "/opt/kresus/node_modules/kresus/build/server/providers/woob/py/main.py", line 589, in get_operations
    for account in list(self.backend.iter_accounts()):
  File "/opt/kresus/app/woob-data/modules/3.5/woob_modules/bp/module.py", line 76, in iter_accounts
    return self.browser.get_accounts_list()
  File "/opt/kresus/venv-woob/lib/python3.9/site-packages/woob/browser/browsers.py", line 1042, in inner
    browser.do_login()
  File "/opt/kresus/app/woob-data/modules/3.5/woob_modules/bp/browser.py", line 505, in do_login
    self.login_without_2fa()
  File "/opt/kresus/app/woob-data/modules/3.5/woob_modules/bp/browser.py", line 475, in login_without_2fa
    self.page.login(self.username, self.password)
  File "/opt/kresus/app/woob-data/modules/3.5/woob_modules/bp/pages/login.py", line 101, in login
    vk = Keyboard(self)
  File "/opt/kresus/app/woob-data/modules/3.5/woob_modules/bp/pages/login.py", line 61, in __init__
    img_url = page.doc.xpath('//img[@id="imageCVS"]')[0].attrib['src']
IndexError: list index out of range

[2023-06-15T23:45:05.194] [INFO] helpers - Error
    at new KError (/opt/kresus/node_modules/kresus/build/server/helpers.js:59:22)
    at callWoob (/opt/kresus/node_modules/kresus/build/server/providers/woob/index.js:192:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async _fetchHelper (/opt/kresus/node_modules/kresus/build/server/providers/woob/index.js:249:16)
    at async Object.fetchOperations (/opt/kresus/node_modules/kresus/build/server/providers/woob/index.js:274:12)
    at async pollTransactions (/opt/kresus/node_modules/kresus/build/server/lib/accounts-manager.js:216:34)
    at async AccountManager.syncTransactions (/opt/kresus/node_modules/kresus/build/server/lib/accounts-manager.js:339:24)
    at async fetchOperations (/opt/kresus/node_modules/kresus/build/server/controllers/accesses.js:209:37)
[2023-06-15T23:45:05.195] [ERROR] HTTP - POST /api/accesses/4/fetch/operations - 500 (760 ms)
[2023-06-15T23:49:36.336] [INFO] providers/woob - Calling woob: command operations...
[2023-06-15T23:49:36.838] [INFO] providers/woob - exited with code 1.
[2023-06-15T23:49:36.838] [WARN] providers/woob - stderr: /opt/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-06-15T23:49:36.838] [INFO] providers/woob - Command returned an error code.
[2023-06-15T23:49:36.838] [INFO] providers/woob - Checking that woob is installed and can actually be called…
[2023-06-15T23:49:36.838] [INFO] providers/woob - Calling woob: command test...
[2023-06-15T23:49:37.081] [INFO] providers/woob - exited with code 0.
[2023-06-15T23:49:37.081] [WARN] providers/woob - stderr: /opt/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-06-15T23:49:37.081] [INFO] providers/woob - OK: woob exited normally with non-empty JSON content.
[2023-06-15T23:49:37.081] [ERROR] providers/woob - Got error while running command "operations": Unknown error: list index out of range.
Traceback (most recent call last):
  File "/opt/kresus/node_modules/kresus/build/server/providers/woob/py/main.py", line 706, in fetch
    results['values'] = self.get_operations(from_date)
  File "/opt/kresus/node_modules/kresus/build/server/providers/woob/py/main.py", line 589, in get_operations
    for account in list(self.backend.iter_accounts()):
  File "/opt/kresus/app/woob-data/modules/3.5/woob_modules/bp/module.py", line 76, in iter_accounts
    return self.browser.get_accounts_list()
  File "/opt/kresus/venv-woob/lib/python3.9/site-packages/woob/browser/browsers.py", line 1042, in inner
    browser.do_login()
  File "/opt/kresus/app/woob-data/modules/3.5/woob_modules/bp/browser.py", line 505, in do_login
    self.login_without_2fa()
  File "/opt/kresus/app/woob-data/modules/3.5/woob_modules/bp/browser.py", line 475, in login_without_2fa
    self.page.login(self.username, self.password)
  File "/opt/kresus/app/woob-data/modules/3.5/woob_modules/bp/pages/login.py", line 101, in login
    vk = Keyboard(self)
  File "/opt/kresus/app/woob-data/modules/3.5/woob_modules/bp/pages/login.py", line 61, in __init__
    img_url = page.doc.xpath('//img[@id="imageCVS"]')[0].attrib['src']
IndexError: list index out of range

[2023-06-15T23:49:37.082] [ERROR] providers/woob - 	(error code: GENERIC_EXCEPTION)
[2023-06-15T23:49:37.090] [ERROR] helpers - when fetching operations: Unknown error: list index out of range.
Traceback (most recent call last):
  File "/opt/kresus/node_modules/kresus/build/server/providers/woob/py/main.py", line 706, in fetch
    results['values'] = self.get_operations(from_date)
  File "/opt/kresus/node_modules/kresus/build/server/providers/woob/py/main.py", line 589, in get_operations
    for account in list(self.backend.iter_accounts()):
  File "/opt/kresus/app/woob-data/modules/3.5/woob_modules/bp/module.py", line 76, in iter_accounts
    return self.browser.get_accounts_list()
  File "/opt/kresus/venv-woob/lib/python3.9/site-packages/woob/browser/browsers.py", line 1042, in inner
    browser.do_login()
  File "/opt/kresus/app/woob-data/modules/3.5/woob_modules/bp/browser.py", line 505, in do_login
    self.login_without_2fa()
  File "/opt/kresus/app/woob-data/modules/3.5/woob_modules/bp/browser.py", line 475, in login_without_2fa
    self.page.login(self.username, self.password)
  File "/opt/kresus/app/woob-data/modules/3.5/woob_modules/bp/pages/login.py", line 101, in login
    vk = Keyboard(self)
  File "/opt/kresus/app/woob-data/modules/3.5/woob_modules/bp/pages/login.py", line 61, in __init__
    img_url = page.doc.xpath('//img[@id="imageCVS"]')[0].attrib['src']
IndexError: list index out of range

[2023-06-15T23:49:37.091] [INFO] helpers - Error
    at new KError (/opt/kresus/node_modules/kresus/build/server/helpers.js:59:22)
    at callWoob (/opt/kresus/node_modules/kresus/build/server/providers/woob/index.js:192:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async _fetchHelper (/opt/kresus/node_modules/kresus/build/server/providers/woob/index.js:249:16)
    at async Object.fetchOperations (/opt/kresus/node_modules/kresus/build/server/providers/woob/index.js:274:12)
    at async pollTransactions (/opt/kresus/node_modules/kresus/build/server/lib/accounts-manager.js:216:34)
    at async AccountManager.syncTransactions (/opt/kresus/node_modules/kresus/build/server/lib/accounts-manager.js:339:24)
    at async fetchOperations (/opt/kresus/node_modules/kresus/build/server/controllers/accesses.js:209:37)
[2023-06-15T23:49:37.092] [ERROR] HTTP - POST /api/accesses/4/fetch/operations - 500 (778 ms)
[2023-06-16T00:00:04.878] [INFO] providers/woob - Calling woob: command version...
[2023-06-16T00:00:05.134] [INFO] providers/woob - exited with code 0.
[2023-06-16T00:00:05.134] [WARN] providers/woob - stderr: /opt/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-06-16T00:00:05.134] [INFO] providers/woob - OK: woob exited normally with non-empty JSON content.
[2023-06-16T00:00:05.135] [INFO] HTTP - GET /api/instance/woob - 200 (258 ms)

J’ai la même erreur. Kresus 0.19.3 installé sur Yunohost (0.19.3~ynh2).

Salut ! Cela ressemble à une erreur côté Woob, le sous-système qui va récupérer les transactions bancaires. Je vais signaler le problème sur leur canal Matrix, en attendant n’hésitez-pas à mettre à jour les modules dans Kresus, et à réessayer patiemment d’ici quelques jours !
Bonne journée,
Benjamin

Je suis allé voir s’il y avait eu une mise à jour du module, elle n’était pas réçente, donc pas de mise à jour depuis le changement du site de la banque.

Merci !

On me souffle qu’une mise à jour vient d’être poussée côté Woob, est-ce que ça aide de votre côté ?

1 « J'aime »

Bingo !
Merci beaucoup (j’ai fait l’update par l’interface de Krésus, y a t-il un risque de casser le lien entre les deux en faisant la mise à jour par l’utilisateur kresus sur la machine ?)

Cool !

Non, aucun risque a priori :+1: