[boobank][creditcooperatif] New website login interface cause errors
With which module do you encounter problems?
Crédit Coopératif
Describe the problem you encounter
Unable to login
Paste here the stacktrace or error message you observe
boobank> list
Account Balance Coming
------------------------------------------+----------+----------
2020-06-09 16:09:50,687:DEBUG:bcall:2.0:bcall.py:92:backend_process <Backend 'creditcooperatif'>: Calling function iter_resources
2020-06-09 16:09:50,687:DEBUG:bcall:2.0:bcall.py:101:backend_process <Backend 'creditcooperatif'>: Called function iter_resources returned: <generator object CaisseEpargneModule.iter_accounts at 0x7faac7a32ac0>
2020-06-09 16:09:50,691:DEBUG:urllib3.connectionpool:2.0:connectionpool.py:271:_get_conn Resetting dropped connection: www.credit-cooperatif.coop
2020-06-09 16:09:51,233:DEBUG:urllib3.connectionpool:2.0:connectionpool.py:433:_make_request https://www.credit-cooperatif.coop:443 "GET /authentification/manage?step=identification&identifiant=4201194739 HTTP/1.1" 200 380
2020-06-09 16:09:51,234:DEBUG:backend.creditcooperatif.browser:2.0:browsers.py:720:internal_callback Handle https://www.credit-cooperatif.coop/authentification/manage?step=identification&identifiant=4201194739 with LoginPage
2020-06-09 16:09:51,276:DEBUG:urllib3.connectionpool:2.0:connectionpool.py:433:_make_request https://www.credit-cooperatif.coop:443 "POST /se-connecter/sso?cdetab=42559&login_hint=4201194739&type_srv=part&service=bad&continue=https%3A%2F%2Fwww.net255.credit-cooperatif.coop%2Floginbel.aspx&cancel_uri=https%3A%2F%2Fwww.credit-cooperatif.coop%2FInstitutionnel%23pauth&csid=6bd2c846-e252-4b5c-8906-9bc72bf149b5&continue_parameters=%7B%22ctx%22%3A%22typsrv%3DWE%26sc%3D2%26base_url%3Dhttps%3A%5C%2F%5C%2Fwww.net255.credit-cooperatif.coop%5C%2F%22%2C%22ctx_routage%22%3A%22%22%2C%22cuid%22%3A%22%22%2C%22snid%22%3A224838%2C%22redirectUrl%22%3A%22%22%7D HTTP/1.1" 200 1013
2020-06-09 16:09:51,278:DEBUG:backend.creditcooperatif.browser:2.0:browsers.py:720:internal_callback Handle https://www.credit-cooperatif.coop/se-connecter/sso?cdetab=42559&login_hint=4201194739&type_srv=part&service=bad&continue=https%3A%2F%2Fwww.net255.credit-cooperatif.coop%2Floginbel.aspx&cancel_uri=https%3A%2F%2Fwww.credit-cooperatif.coop%2FInstitutionnel%23pauth&csid=6bd2c846-e252-4b5c-8906-9bc72bf149b5&continue_parameters=%7B%22ctx%22%3A%22typsrv%3DWE%26sc%3D2%26base_url%3Dhttps%3A%5C%2F%5C%2Fwww.net255.credit-cooperatif.coop%5C%2F%22%2C%22ctx_routage%22%3A%22%22%2C%22cuid%22%3A%22%22%2C%22snid%22%3A224838%2C%22redirectUrl%22%3A%22%22%7D with NewLoginPage
2020-06-09 16:09:51,319:DEBUG:urllib3.connectionpool:2.0:connectionpool.py:433:_make_request https://www.credit-cooperatif.coop:443 "GET /se-connecter/main-es2015.4ba5884a7a53417d5ea1.js HTTP/1.1" 200 None
2020-06-09 16:09:51,604:DEBUG:backend.creditcooperatif.browser:2.0:browsers.py:720:internal_callback Handle https://www.credit-cooperatif.coop/se-connecter/main-es2015.4ba5884a7a53417d5ea1.js with JsFilePage
Bug(creditcooperatif): 'snid'
(If --auto-update is passed on the command-line, new versions of the module will be checked automatically)
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/weboob/core/bcall.py", line 106, in backend_process
for subresult in result:
File "/home/neodarz/.local/share/weboob/modules/2.0/caissedepargne/module.py", line 73, in iter_accounts
for account in self.browser.get_accounts_list():
File "/usr/lib/python3.8/site-packages/weboob/browser/switch.py", line 91, in wrapper
return val(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/weboob/browser/browsers.py", line 821, in inner
browser.do_login()
File "/home/neodarz/.local/share/weboob/modules/2.0/caissedepargne/browser.py", line 409, in do_login
self.do_new_login(data)
File "/home/neodarz/.local/share/weboob/modules/2.0/caissedepargne/browser.py", line 699, in do_new_login
'bpcesta': '{"csid":"%s","typ_app":"rest","enseigne":"ce","typ_sp":"out-band","typ_act":"auth","snid":"%s","cdetab":"%s","typ_srv":"part"}' % (csid, url_params['snid'][0], url_params['cdetab'][0]),
KeyError: 'snid'
------------------------------------------+----------+----------
boobank>
What are the steps to reproduce the problem?
Just try to connect
What weboob version are you using?
Output of weboob-config --version
command:
weboob-config v2.0 Copyright(C) 2010-2020 Christophe Benz, Romain Bignon
What module version are you using?
Output of weboob-config info MODULE_NAME
command:
.------------------------------------------------------------------------------.
| Module creditcooperatif |
+-----------------.------------------------------------------------------------'
| Version | 202006032233
| Maintainer | Kevin Pouget <weboob@kevin.pouget.me>
| License | LGPLv3+
| Description | Crédit Coopératif
| Capabilities | CapBank, CapProfile, CapBankTransferAddRecipient, CapBankTransfer, CapCollection
| Installed | yes
| Location | https://updates.weboob.org/2.0/main/creditcooperatif.tar.gz
| |
| Configuration | auth_type: Type de compte (default: particular)
| | login: Code utilisateur (default: )
| | password: Code personnel (default: )
| | nuser: Numéro d'utilisateur (optionnel) (default: )
'-----------------'
How did you install weboob?
On Archlinux with the following package: community/weboob
Additional info you'd like to mention
It's seems this is juste because the new login system of Crédit Coopératif is in production. :)