Bonjour la communauté,
J’utilise Kresus v0.21.2~ynh2 sur Yunohost v11.2.27 dans une VM 64Bits sous Proxmox.
Mais depuis quelque temps Kresus ne se synchronise plus avec la BNP avec comme erreur :
Unknown error: 404 Client Error: Not Found.
Erreur inconnue de Kresus : essayez de mettre à jour Weboob, et si cela ne règle pas votre problème, merci de signaler l’erreur aux auteurs de Kresus. Veuillez vous référer à la console développeurs pour plus d’informations.
Voici les logs de l’application :
[2024-08-20T22:16:42.077] [INFO] HTTP - DELETE /***sus/api/logs - 200 (1 ms)
[2024-08-20T22:16:47.735] [INFO] accounts-manager - Retrieve all accounts from access bnp with login 123789456
[2024-08-20T22:16:47.737] [INFO] providers/woob - Calling woob: command accounts...
[2024-08-20T22:16:51.799] [INFO] providers/woob - exited with code 0.
[2024-08-20T22:16:51.799] [WARN] providers/woob - stderr: 2024-08-20 22:16:51,434:WARNING:woob.bnp.browser:browser.py:367:iter_accounts Could not retrieve "Comptes Titres" accounts
[2024-08-20T22:16:51.800] [INFO] providers/woob - Saving session for access from bank bnp with login 123789456
[2024-08-20T22:16:51.811] [INFO] providers/woob - OK: woob exited normally with non-empty JSON content.
[2024-08-20T22:16:51.811] [INFO] accounts-manager - -> 4 bank account(s) found
[2024-08-20T22:16:51.812] [INFO] accounts-manager - Account 5 already known and in Kresus's database
[2024-08-20T22:16:51.814] [INFO] accounts-manager - Account 3 already known and in Kresus's database
[2024-08-20T22:16:51.815] [INFO] accounts-manager - Account 1 already known and in Kresus's database
[2024-08-20T22:16:51.818] [INFO] accounts-manager - Account 4 already known and in Kresus's database
[2024-08-20T22:16:51.819] [INFO] providers/woob - Calling woob: command transactions...
[2024-08-20T22:16:58.033] [INFO] providers/woob - exited with code 1.
[2024-08-20T22:16:58.033] [WARN] providers/woob - stderr: 2024-08-20 22:16:54,906:WARNING:woob.bnp.browser:browser.py:367:iter_accounts Could not retrieve "Comptes Titres" accounts
[2024-08-20T22:16:58.033] [INFO] providers/woob - Command returned an error code.
[2024-08-20T22:16:58.033] [INFO] providers/woob - Checking that woob is installed and can actually be called…
[2024-08-20T22:16:58.033] [INFO] providers/woob - Calling woob: command test...
[2024-08-20T22:16:58.225] [INFO] providers/woob - exited with code 0.
[2024-08-20T22:16:58.225] [INFO] providers/woob - OK: woob exited normally with non-empty JSON content.
[2024-08-20T22:16:58.225] [ERROR] providers/woob - Got error while running command "2": Unknown error: 404 Client Error: Not Found.
Traceback (most recent call last):
File "/var/www/***sus/build/server/providers/woob/py/main.py", line 704, in fetch
results['values'] = self.get_transactions(from_date)
File "/var/www/***sus/build/server/providers/woob/py/main.py", line 593, in get_transactions
for hist_tr in self.backend.iter_history(account):
File "/home/yunohost.app/***sus/woob-data/modules/3.6/woob_modules/bnp/module.py", line 105, in iter_history
return self.browser.iter_history(account)
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/browser/browsers.py", line 1121, in inner
return func(browser, *args, **kwargs)
File "/home/yunohost.app/***sus/woob-data/modules/3.6/woob_modules/bnp/pp/browser.py", line 452, in iter_history
self.market_list.go(json={})
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/browser/url.py", line 139, in go
r = self.browser.location(self.build(**kwargs), params=params, data=data, json=json, method=method,
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/browser/browsers.py", line 1035, in location
response = self.open(*args, **kwargs)
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/tools/decorators.py", line 37, in f_retry
return f(*args, **kwargs)
File "/home/yunohost.app/***sus/woob-data/modules/3.6/woob_modules/bnp/pp/browser.py", line 178, in open
return super(BNPParibasBrowser, self).open(*args, **kwargs)
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/browser/browsers.py", line 1022, in open
return super(PagesBrowser, self).open(callback=internal_callback, *args, **kwargs)
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/browser/browsers.py", line 879, in open
return super().open(url, *args, **kwargs)
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/browser/browsers.py", line 530, in open
response = self.session.send(preq,
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/browser/sessions.py", line 161, in send
return func(*args, **kwargs)
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/browser/sessions.py", line 154, in func
return callback(self, resp)
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/browser/browsers.py", line 525, in inner_callback
self.raise_for_status(response)
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/browser/browsers.py", line 589, in raise_for_status
raise HTTPNotFound(http_error_msg, response=response)
woob.browser.exceptions.HTTPNotFound: 404 Client Error: Not Found
[2024-08-20T22:16:58.225] [ERROR] providers/woob - (error code: GENERIC_EXCEPTION)
[2024-08-20T22:16:58.237] [ERROR] helpers - when fetching accounts: Unknown error: 404 Client Error: Not Found.
Traceback (most recent call last):
File "/var/www/***sus/build/server/providers/woob/py/main.py", line 704, in fetch
results['values'] = self.get_transactions(from_date)
File "/var/www/***sus/build/server/providers/woob/py/main.py", line 593, in get_transactions
for hist_tr in self.backend.iter_history(account):
File "/home/yunohost.app/***sus/woob-data/modules/3.6/woob_modules/bnp/module.py", line 105, in iter_history
return self.browser.iter_history(account)
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/browser/browsers.py", line 1121, in inner
return func(browser, *args, **kwargs)
File "/home/yunohost.app/***sus/woob-data/modules/3.6/woob_modules/bnp/pp/browser.py", line 452, in iter_history
self.market_list.go(json={})
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/browser/url.py", line 139, in go
r = self.browser.location(self.build(**kwargs), params=params, data=data, json=json, method=method,
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/browser/browsers.py", line 1035, in location
response = self.open(*args, **kwargs)
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/tools/decorators.py", line 37, in f_retry
return f(*args, **kwargs)
File "/home/yunohost.app/***sus/woob-data/modules/3.6/woob_modules/bnp/pp/browser.py", line 178, in open
return super(BNPParibasBrowser, self).open(*args, **kwargs)
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/browser/browsers.py", line 1022, in open
return super(PagesBrowser, self).open(callback=internal_callback, *args, **kwargs)
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/browser/browsers.py", line 879, in open
return super().open(url, *args, **kwargs)
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/browser/browsers.py", line 530, in open
response = self.session.send(preq,
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/browser/sessions.py", line 161, in send
return func(*args, **kwargs)
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/browser/sessions.py", line 154, in func
return callback(self, resp)
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/browser/browsers.py", line 525, in inner_callback
self.raise_for_status(response)
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/browser/browsers.py", line 589, in raise_for_status
raise HTTPNotFound(http_error_msg, response=response)
woob.browser.exceptions.HTTPNotFound: 404 Client Error: Not Found
[2024-08-20T22:16:58.237] [INFO] helpers - Error
at new KError (/var/www/***sus/build/server/helpers.js:62:22)
at callWoob (/var/www/***sus/build/server/providers/woob/index.js:234:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async _fetchHelper (/var/www/***sus/build/server/providers/woob/index.js:291:16)
at async Object.fetchTransactions (/var/www/***sus/build/server/providers/woob/index.js:315:12)
at async /var/www/***sus/build/server/lib/accounts-manager.js:258:20
at async retryCallProvider (/var/www/***sus/build/server/lib/accounts-manager.js:95:20)
at async pollTransactions (/var/www/***sus/build/server/lib/accounts-manager.js:257:34)
at async AccountManager.syncTransactions (/var/www/***sus/build/server/lib/accounts-manager.js:393:24)
at async fetchAccounts (/var/www/***sus/build/server/controllers/accesses.js:250:37)
[2024-08-20T22:16:58.237] [ERROR] HTTP - POST /***sus/api/accesses/2/fetch/accounts - 500 (10505 ms)
Merci à vous pour la résolution du bug.