[go: up one dir, main page]

[bank][creditcooperatif] 'Could not find the definition of "snippetId"s in main JS'

With which module do you encounter problems?

creditcooperatif

Describe the problem you encounter

Cannot fetch account

Paste here the stacktrace or error message you observe

2025-05-15 10:34:56,262:DEBUG:woob.core.bcall:3.7:bcall.py:86:backend_process <Backend creditcooperatif>: Calling function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7f3387e9d5d0>>
2025-05-15 10:34:56,278:DEBUG:urllib3.connectionpool:3.7:connectionpool.py:544:_make_request https://www.credit-cooperatif.coop:443 "GET /se-connecter/sso?service=dei HTTP/1.1" 302 255
2025-05-15 10:34:56,279:DEBUG:urllib3.connectionpool:3.7:connectionpool.py:289:_get_conn Resetting dropped connection: www.icgauth.credit-cooperatif.coop
2025-05-15 10:34:56,537:DEBUG:urllib3.connectionpool:3.7:connectionpool.py:544:_make_request https://www.icgauth.credit-cooperatif.coop:443 "GET /se-connecter/sso?service=dei HTTP/1.1" 200 1885
2025-05-15 10:34:56,539:DEBUG:woob.backend.creditcooperatif.browser:3.7:browsers.py:1040:internal_callback Handle https://www.icgauth.credit-cooperatif.coop/se-connecter/sso?service=dei with LoginPage
2025-05-15 10:34:56,593:DEBUG:urllib3.connectionpool:3.7:connectionpool.py:544:_make_request https://www.icgauth.credit-cooperatif.coop:443 "GET /se-connecter/main.465f1cb4451b8c4e.js HTTP/1.1" 200 None
2025-05-15 10:34:56,891:DEBUG:woob.backend.creditcooperatif.browser:3.7:browsers.py:1040:internal_callback Handle https://www.icgauth.credit-cooperatif.coop/se-connecter/main.465f1cb4451b8c4e.js with JsFilePage
2025-05-15 10:34:57,963:DEBUG:woob.core.bcall:3.7:bcall.py:92:backend_process <Backend creditcooperatif>: Called function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7f3387e9d5d0>> raised an error: AssertionError('Could not find the definition of "snippetId"s in main JS, check if it has been updated')
Bug(creditcooperatif): Could not find the definition of "snippetId"s in main JS, check if it has been updated
(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/www/kresus/venv/lib/python3.11/site-packages/woob/core/bcall.py", line 88, in backend_process
    result = function(backend, *args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/www/kresus/venv/lib/python3.11/site-packages/woob/tools/application/base.py", line 348, in _do_complete
    res = getattr(backend, function)(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/www/kresus/.local/share/woob/modules/3.7/woob_modules/caissedepargne/module.py", line 71, in iter_resources
    return self.iter_accounts()
           ^^^^^^^^^^^^^^^^^^^^
  File "/var/www/kresus/.local/share/woob/modules/3.7/woob_modules/caissedepargne/module.py", line 78, in iter_accounts
    return self.browser.iter_accounts()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/www/kresus/venv/lib/python3.11/site-packages/woob/browser/switch.py", line 98, in wrapper
    return val(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^
  File "/var/www/kresus/venv/lib/python3.11/site-packages/woob/browser/browsers.py", line 1154, in inner
    browser.do_login()
  File "/var/www/kresus/venv/lib/python3.11/site-packages/woob/browser/mfa.py", line 201, in do_double_authentication
    self.init_login()
  File "/var/www/kresus/.local/share/woob/modules/3.7/woob_modules/caissedepargne/browser.py", line 231, in init_login
    self.do_api_pre_login()
  File "/var/www/kresus/.local/share/woob/modules/3.7/woob_modules/caissedepargne/browser.py", line 257, in do_api_pre_login
    self.snid = self.page.get_snid(self.enseigne.upper())
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/www/kresus/.local/share/woob/modules/3.7/woob_modules/caissedepargne/pages.py", line 165, in get_snid
    self.get_class_b()
  File "/var/www/kresus/.local/share/woob/modules/3.7/woob_modules/caissedepargne/pages.py", line 113, in get_class_b
    assert result, 'Could not find the definition of "snippetId"s in main JS, check if it has been updated'
AssertionError: Could not find the definition of "snippetId"s in main JS, check if it has been updated

What are the steps to reproduce the problem?

Clean install on Yunohost, just using woob bank then ls command.

What woob version are you using?

Output of woob config --version command:

Woob config v3.7 Copyright(C) 2010-2025 Christophe Benz, Romain Bignon

What module version are you using?

Output of woob config info MODULE_NAME command:

.------------------------------------------------------------------------------.
| Module creditcooperatif                                                      |
+-----------------.------------------------------------------------------------'
| Version         | 202502281228
| Maintainer      | Kevin Pouget <weboob@kevin.pouget.me>
| License         | LGPLv3+
| Description     | Crédit Coopératif
| Capabilities    | CapBank, CapCredentialsCheck, CapBankTransferAddRecipient, CapTransfer, CapDocument, CapBankWealth, CapCollection, CapBankTransfer, CapProfile
| 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?

Example: yunohost

Additional info you'd like to mention

Edited by Christophe Henry