[creditcooperatif] RegexpError on `list` command
This is a template for submitting an issue, fill the blanks and remove non-applicable stuff.
First, read the frequently asked questions.
With which module do you encounter problems?
Bank -> Credit Coopératif
Describe the problem you encounter
Listing accounts does not work.
Paste here the stacktrace or error message you observe
bank> list
Account Balance Coming
------------------------------------------+----------+----------
2023-12-09 12:48:48,592:DEBUG:woob.core.bcall:3.6:bcall.py:86:backend_process <Backend creditcooperatif>: Calling function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7fed45129880>>
2023-12-09 12:48:48,638:DEBUG:urllib3.connectionpool:3.6:connectionpool.py:546:_make_request https://www.credit-cooperatif.coop:443 "GET /se-connecter/sso?service=dei HTTP/1.1" 200 1652
2023-12-09 12:48:48,669:DEBUG:woob.backend.creditcooperatif.browser:3.6:browsers.py:1004:internal_callback Handle https://www.credit-cooperatif.coop/se-connecter/sso?service=dei with LoginPage
2023-12-09 12:48:48,693:DEBUG:urllib3.connectionpool:3.6:connectionpool.py:546:_make_request https://www.credit-cooperatif.coop:443 "GET /se-connecter/main.95a7c3d1be088d08.js HTTP/1.1" 200 None
2023-12-09 12:48:48,811:DEBUG:woob.backend.creditcooperatif.browser:3.6:browsers.py:1004:internal_callback Handle https://www.credit-cooperatif.coop/se-connecter/main.95a7c3d1be088d08.js with JsFilePage
2023-12-09 12:48:48,813:DEBUG:charset_normalizer:3.6:api.py:439:from_bytes Encoding detection: ascii is most likely the one.
2023-12-09 12:48:48,819:DEBUG:woob.core.bcall:3.6:bcall.py:92:backend_process <Backend creditcooperatif>: Called function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7fed45129880>> raised an error: RegexpError('Unable to find 1st e.CE="(\\d+)" in \'(self.webpackChunkaccessecurite=self.webpackChunkaccessecurite||[]).push([[179],{3181:(Ne,ie,o)=>{"use strict";o.d(ie,{L:()=>t});var t=(()=>{return(e=t||(t={}))[e.LEVEL_0=0]="LEVEL_0",e[e.LEVEL_1=1]="LEVEL_1",e[e.LEVEL_2=2]="LEVEL_2",e[e.LEVEL_3=3]="LEVEL_3",t;var e})()},7774:(Ne,ie,o)=>{"use strict";o.d(ie,{D:()=>t});var t=(()=>{return(e=t||(t={}))[e.CODE_101=101]="CODE_101",e[e.CODE_102=102]="CODE_102",e[e.CODE_103=103]="CODE_103",e[e.CODE_104=104]="CODE_104",e[e.CODE_105=105]="CODE_105",e[e.CODE_201=201]="CODE_201",t;var e})()},5312:(Ne,ie,o)=>{"use strict";o.d(ie,{s:()=>t});class t extends Error{constructor(a,m,u,d){super(a),this.code=m,this.location=u,this.cause=d??""}}},2188:(Ne,ie,o)=>{"use strict";o.d(ie,{E_:()=>Hi,BQ:()=>xi,xr:()=>fi,fZ:()=>gi,R1:()=>_r,W0:()=>It,sl:()=>In,nI:()=>Dn,Jn:()=>je,og:()=>Xn,rn:()=>Te,JX:()=>di});var t={};o.r(t),o.d(t,{DatalayerServiceType:()=>lt});var e=(()=>{return(He=e||(e={})).CANT_READ_VALUE="90",He.WRONG_TYPE="91",He.ALREADY_EXISTS="92",He.GUARD_ERROR="93",He.NOT_...\'')
Bug(creditcooperatif): Unable to find 1st e.CE="(\d+)" in '(self.webpackChunkaccessecurite=self.webpackChunkaccessecurite||[]).push([[179],{3181:(Ne,ie,o)=>{"use strict";o.d(ie,{L:()=>t});var t=(()=>{return(e=t||(t={}))[e.LEVEL_0=0]="LEVEL_0",e[e.LEVEL_1=1]="LEVEL_1",e[e.LEVEL_2=2]="LEVEL_2",e[e.LEVEL_3=3]="LEVEL_3",t;var e})()},7774:(Ne,ie,o)=>{"use strict";o.d(ie,{D:()=>t});var t=(()=>{return(e=t||(t={}))[e.CODE_101=101]="CODE_101",e[e.CODE_102=102]="CODE_102",e[e.CODE_103=103]="CODE_103",e[e.CODE_104=104]="CODE_104",e[e.CODE_105=105]="CODE_105",e[e.CODE_201=201]="CODE_201",t;var e})()},5312:(Ne,ie,o)=>{"use strict";o.d(ie,{s:()=>t});class t extends Error{constructor(a,m,u,d){super(a),this.code=m,this.location=u,this.cause=d??""}}},2188:(Ne,ie,o)=>{"use strict";o.d(ie,{E_:()=>Hi,BQ:()=>xi,xr:()=>fi,fZ:()=>gi,R1:()=>_r,W0:()=>It,sl:()=>In,nI:()=>Dn,Jn:()=>je,og:()=>Xn,rn:()=>Te,JX:()=>di});var t={};o.r(t),o.d(t,{DatalayerServiceType:()=>lt});var e=(()=>{return(He=e||(e={})).CANT_READ_VALUE="90",He.WRONG_TYPE="91",He.ALREADY_EXISTS="92",He.GUARD_ERROR="93",He.NOT_...'
(If --auto-update is passed on the command-line, new versions of the module will be checked automatically)
Traceback (most recent call last):
File "/var/home/charlesp/Documents/woob/venv/lib64/python3.12/site-packages/woob/core/bcall.py", line 88, in backend_process
result = function(backend, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/home/charlesp/Documents/woob/venv/lib64/python3.12/site-packages/woob/tools/application/base.py", line 348, in _do_complete
res = getattr(backend, function)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/home/charlesp/.local/share/woob/modules/3.6/woob_modules/caissedepargne/module.py", line 74, in iter_resources
return self.iter_accounts()
^^^^^^^^^^^^^^^^^^^^
File "/var/home/charlesp/.local/share/woob/modules/3.6/woob_modules/caissedepargne/module.py", line 81, in iter_accounts
return self.browser.iter_accounts()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/home/charlesp/Documents/woob/venv/lib64/python3.12/site-packages/woob/browser/switch.py", line 98, in wrapper
return val(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/var/home/charlesp/Documents/woob/venv/lib64/python3.12/site-packages/woob/browser/browsers.py", line 1118, in inner
browser.do_login()
File "/var/home/charlesp/Documents/woob/venv/lib64/python3.12/site-packages/woob/browser/mfa.py", line 201, in do_double_authentication
self.init_login()
File "/var/home/charlesp/.local/share/woob/modules/3.6/woob_modules/caissedepargne/browser.py", line 201, in init_login
self.do_api_pre_login()
File "/var/home/charlesp/.local/share/woob/modules/3.6/woob_modules/caissedepargne/browser.py", line 227, in do_api_pre_login
self.snid = self.page.get_snid()
^^^^^^^^^^^^^^^^^^^^
File "/var/home/charlesp/.local/share/woob/modules/3.6/woob_modules/caissedepargne/pages.py", line 105, in get_snid
return Regexp(pattern=r'e.CE="(\d+)"').filter(self.text)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/home/charlesp/Documents/woob/venv/lib64/python3.12/site-packages/woob/browser/filters/base.py", line 136, in wrapper
res = function(self, value)
^^^^^^^^^^^^^^^^^^^^^
File "/var/home/charlesp/Documents/woob/venv/lib64/python3.12/site-packages/woob/browser/filters/standard.py", line 646, in filter
return self.default_or_raise(RegexpError(msg))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/home/charlesp/Documents/woob/venv/lib64/python3.12/site-packages/woob/browser/filters/base.py", line 71, in default_or_raise
raise exception
woob.browser.filters.standard.RegexpError: Unable to find 1st e.CE="(\d+)" in '(self.webpackChunkaccessecurite=self.webpackChunkaccessecurite||[]).push([[179],{3181:(Ne,ie,o)=>{"use strict";o.d(ie,{L:()=>t});var t=(()=>{return(e=t||(t={}))[e.LEVEL_0=0]="LEVEL_0",e[e.LEVEL_1=1]="LEVEL_1",e[e.LEVEL_2=2]="LEVEL_2",e[e.LEVEL_3=3]="LEVEL_3",t;var e})()},7774:(Ne,ie,o)=>{"use strict";o.d(ie,{D:()=>t});var t=(()=>{return(e=t||(t={}))[e.CODE_101=101]="CODE_101",e[e.CODE_102=102]="CODE_102",e[e.CODE_103=103]="CODE_103",e[e.CODE_104=104]="CODE_104",e[e.CODE_105=105]="CODE_105",e[e.CODE_201=201]="CODE_201",t;var e})()},5312:(Ne,ie,o)=>{"use strict";o.d(ie,{s:()=>t});class t extends Error{constructor(a,m,u,d){super(a),this.code=m,this.location=u,this.cause=d??""}}},2188:(Ne,ie,o)=>{"use strict";o.d(ie,{E_:()=>Hi,BQ:()=>xi,xr:()=>fi,fZ:()=>gi,R1:()=>_r,W0:()=>It,sl:()=>In,nI:()=>Dn,Jn:()=>je,og:()=>Xn,rn:()=>Te,JX:()=>di});var t={};o.r(t),o.d(t,{DatalayerServiceType:()=>lt});var e=(()=>{return(He=e||(e={})).CANT_READ_VALUE="90",He.WRONG_TYPE="91",He.ALREADY_EXISTS="92",He.GUARD_ERROR="93",He.NOT_...'
------------------------------------------+----------+----------
What are the steps to reproduce the problem?
- Fresh Woob install
woob bank
- Configure Credit Cooperatif account
- Use
logging debug
- Use
list
command - See the stacktrace above
What woob version are you using?
Output of woob config --version
command:
Woob config v3.6 Copyright(C) 2010-2023 Christophe Benz, Romain Bignon
What module version are you using?
Output of woob config info MODULE_NAME
command:
.------------------------------------------------------------------------------.
| Module creditcooperatif |
+-----------------.------------------------------------------------------------'
| Version | 202308251212
| Maintainer | Kevin Pouget <weboob@kevin.pouget.me>
| License | LGPLv3+
| Description | Crédit Coopératif
| Capabilities | CapTransfer, CapProfile, CapDocument, CapCollection, CapBankTransferAddRecipient, CapBankTransfer, CapBank, CapCredentialsCheck, CapBankWealth
| Installed | yes
| Location | https://updates.woob.tech/3/main/creditcooperatif.tar.gz
| |
| Configuration | login: Identifiant client (default: )
| | password: Mot de passe (default: )
| | nuser: User ID (optional) (default: )
| | auth_type: Type de compte (default: )
'-----------------'
How did you install woob?
pip
Additional info you'd like to mention
auth_type = part
, might be of importance