[bank][swile] 401 Client Error: Unauthorized
With which module do you encounter problems?
swile
Describe the problem you encounter
According to https://whimsical.com/swile-payments-integration-Dffb5KPJNhL3j5B6GWTKi8 I understand that the swile module should open a web page to ask for authorization, but it is not the case.
Doing: woob bank -b swile list
gives:
Account Balance Coming
---------------------------------------------------------+----------+----------
Error(swile): 401 Client Error: Unauthorized
---------------------------------------------------------+----------+----------
With debugging:
2022-06-01 18:13:45,956:DEBUG:woob.config:3.0:yamlconfig.py:75:load Loading configuration file: /homecrypt/clabaut/.config/woob/bank.storage.
2022-06-01 18:13:45,956:DEBUG:woob.config:3.0:yamlconfig.py:79:load Configuration file loaded: /homecrypt/clabaut/.config/woob/bank.storage.
2022-06-01 18:13:45,966:DEBUG:modules:3.0:modules.py:166:load_module Loaded module "swile" from /home/clabaut/.local/share/woob/modules/3.0/swile
2022-06-01 18:13:45,989:DEBUG:backend:3.0:modules.py:97:create_instance Created backend "swile" for module "swile"
2022-06-01 18:13:45,989:DEBUG:woob.config:3.0:iniconfig.py:53:load Loading application configuration file: /homecrypt/clabaut/.config/woob/bank.
2022-06-01 18:13:45,989:DEBUG:woob.config:3.0:iniconfig.py:73:load Application configuration file loaded: /homecrypt/clabaut/.config/woob/bank.
Account Balance Coming
---------------------------------------------------------+----------+----------
2022-06-01 18:13:45,995:DEBUG:bcall:3.0:bcall.py:92:backend_process <Backend 'swile'>: Calling function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7fab49d3e4a0>>
2022-06-01 18:13:45,996:DEBUG:urllib3.util.retry:3.0:retry.py:351:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2022-06-01 18:13:45,996:DEBUG:urllib3.util.retry:3.0:retry.py:351:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2022-06-01 18:13:45,996:DEBUG:urllib3.connectionpool:3.0:connectionpool.py:1001:_new_conn Starting new HTTPS connection (1): directory.swile.co:443
2022-06-01 18:13:46,083:DEBUG:urllib3.connectionpool:3.0:connectionpool.py:456:_make_request https://directory.swile.co:443 "POST /oauth/token HTTP/1.1" 401 None
2022-06-01 18:13:46,083:DEBUG:bcall:3.0:bcall.py:98:backend_process <Backend 'swile'>: Called function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7fab49d3e4a0>> raised an error: ClientError('401 Client Error: Unauthorized')
Error(swile): 401 Client Error: Unauthorized
---------------------------------------------------------+----------+----------
2022-06-01 18:13:46,096:DEBUG:backend.swile.browser:3.0:woob_browser_browsers.py:107:dump_state Stored cookies into storage
2022-06-01 18:13:46,096:DEBUG:woob.config:3.0:yamlconfig.py:96:save Configuration file saved: /homecrypt/clabaut/.config/woob/bank.storage.
The relevant part of bank.storage
contains something like:
swile:
browser_state:
access_token: null
cookies: XXXXXXXXXX==
refresh_token: null
token_type: null
What woob version are you using?
Output of woob config --version
command:
Woob config v3.0 Copyright(C) 2010-2022 Christophe Benz, Romain Bignon
What module version are you using?
Output of woob config info MODULE_NAME
command:
.------------------------------------------------------------------------------.
| Module swile |
+-----------------.------------------------------------------------------------'
| Version | 202202182007
| Maintainer | Roger Philibert <roger.philibert@gmail.com>
| License | LGPLv3+
| Description | Swile
| Capabilities | CapBank, CapCollection
| Installed | yes
| Location | https://updates.weboob.org/3.0/main/swile.tar.gz
| |
| Configuration | login: E-mail (default: )
| | password: Mot de passe (default: )
| | captcha_response: Captcha Response
'-----------------'
How did you install woob?
Pacman on Arch linux
Edited by Mathieu Clabaut Systerel