axabanque fails with 401
With which module do you encounter problems?
Bank and axabanque backend
Describe the problem you encounter
After adding my account and running list
, I get a 401 error.
Paste here the stacktrace or error message you observe
bank> list
Account Balance Coming
------------------------------------------+----------+----------
2023-01-28 14:35:23,593:DEBUG:woob.core.bcall:3.1:bcall.py:91:backend_process <Backend 'axabanque'>: Calling function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7f43d7805820>>
2023-01-28 14:35:23,596:DEBUG:woob.core.bcall:3.1:bcall.py:100:backend_process <Backend 'axabanque'>: Called function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7f43d7805820>> returned: <generator object Application._do_complete_iter at 0x7f43cf72e900>
2023-01-28 14:35:23,600:DEBUG:urllib3.connectionpool:3.1:connectionpool.py:273:_get_conn Resetting dropped connection: api-banque.axa.fr
2023-01-28 14:35:24,180:DEBUG:urllib3.connectionpool:3.1:connectionpool.py:456:_make_request https://api-banque.axa.fr:443 "GET /distri-account-api/api/v1/persons/me/accounts?types=CHECKING%2CSAVING HTTP/1.1" 401 0
Bug(axabanque): 401 Client Error: Unauthorized
=== [ 0%] Getting https://updates.woob.tech/3.1/main/
2023-01-28 14:35:24,392:DEBUG:urllib3.connectionpool:3.1:connectionpool.py:456:_make_request https://updates.woob.tech:443 "GET /3.1/main/modules.list HTTP/1.1" 200 65766
2023-01-28 14:35:24,489:DEBUG:charset_normalizer:3.1:api.py:436:from_bytes Encoding detection: utf_8 is most likely the one.
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/woob-3.1-py3.9.egg/woob/core/bcall.py", line 105, in backend_process
for subresult in result:
File "/usr/local/lib/python3.9/dist-packages/woob-3.1-py3.9.egg/woob/tools/application/base.py", line 330, in _do_complete_iter
for i, sub in enumerate(res):
File "/root/.local/share/woob/modules/3.1/woob_modules/axabanque/browser.py", line 264, in iter_accounts
self.accounts.go(params={'types': 'CHECKING,SAVING'})
File "/usr/local/lib/python3.9/dist-packages/woob-3.1-py3.9.egg/woob/browser/url.py", line 104, in go
r = self.browser.location(self.build(**kwargs), params=params, data=data, json=json, method=method, headers=headers or {})
File "/usr/local/lib/python3.9/dist-packages/woob-3.1-py3.9.egg/woob/browser/browsers.py", line 840, in location
response = self.open(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/woob-3.1-py3.9.egg/woob/browser/browsers.py", line 827, in open
return super(PagesBrowser, self).open(callback=internal_callback, *args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/woob-3.1-py3.9.egg/woob/browser/browsers.py", line 691, in open
return super(DomainBrowser, self).open(req, *args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/woob-3.1-py3.9.egg/woob/browser/browsers.py", line 396, in open
response = self.session.send(preq,
File "/usr/local/lib/python3.9/dist-packages/woob-3.1-py3.9.egg/woob/browser/sessions.py", line 165, in send
return func(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/woob-3.1-py3.9.egg/woob/browser/sessions.py", line 158, in func
return callback(self, resp)
File "/usr/local/lib/python3.9/dist-packages/woob-3.1-py3.9.egg/woob/browser/browsers.py", line 391, in inner_callback
self.raise_for_status(response)
File "/usr/local/lib/python3.9/dist-packages/woob-3.1-py3.9.egg/woob/browser/browsers.py", line 451, in raise_for_status
raise ClientError(http_error_msg, response=response)
woob.browser.exceptions.ClientError: 401 Client Error: Unauthorized
------------------------------------------+----------+----------
What woob version are you using?
Output of woob config --version
command:
Woob config v3.1 Copyright(C) 2010-2023 Christophe Benz, Romain Bignon
What module version are you using?
Output of woob config info MODULE_NAME
command:
.------------------------------------------------------------------------------.
| Module axabanque |
+-----------------.------------------------------------------------------------'
| Version | 202301271123
| Maintainer | Romain Bignon <romain@weboob.org>
| License | LGPLv3+
| Description | AXA Banque
| Capabilities | CapBankWealth, CapTransfer, CapBankTransfer, CapCollection, CapBank, CapDocument, CapCredentialsCheck, CapProfile
| Installed | yes
| Location | https://updates.woob.tech/3.1/main/axabanque.tar.gz
| |
| Configuration | login: Identifiant (default: )
| | password: Code (default: )
| | code: None
| | request_information: None
'-----------------'
How did you install woob?
git clone, done today (2023-01-28)
Additional info you'd like to mention
Looks like it was working at least 3 few days ago, but I was running an old clone of woob's git (from several months ago). Today I git pull
and axabanque no longer works for me.
Edited by Benoit 'BoD' Lubek