[bank][caissedepargne]unable to login - unable to find element
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?
Woob bank -> Caisse d'epargne
Describe the problem you encounter
"list" or anything not working since the 10th of may
Paste here the stacktrace or error message you observe
2022-05-17 11:41:15,994:DEBUG:bcall:3.0:bcall.py:92:backend_process <Backend 'caissedepargne'>: Calling function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7f81747c8198>>
2022-05-17 11:41:15,994:DEBUG:bcall:3.0:bcall.py:101:backend_process <Backend 'caissedepargne'>: Called function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7f81747c8198>> returned: <generator object Application._do_complete_iter at 0x7f816726db88>
2022-05-17 11:41:16,036:DEBUG:urllib3.connectionpool:3.0:connectionpool.py:465:_make_request https://www.caisse-epargne.fr:443 "GET /se-connecter/sso?service=dei HTTP/1.1" 200 820
2022-05-17 11:41:16,055:DEBUG:backend.caissedepargne.browser:3.0:browsers.py:880:internal_callback Handle https://www.caisse-epargne.fr/se-connecter/sso?service=dei with NewLoginPage
Bug(caissedepargne): Unable to find element //script[contains(@src, "main-")]
=== [ 0%] Getting https://updates.weboob.org/3.0/main/
2022-05-17 11:41:16,152:DEBUG:urllib3.connectionpool:3.0:connectionpool.py:465:_make_request https://updates.weboob.org:443 "GET /3.0/main/modules.list HTTP/1.1" 200 63167
2022-05-17 11:41:16,180:DEBUG:charset_normalizer:3.0:api.py:225:from_bytes Code page ascii does not fit given bytes sequence at ALL. 'ascii' codec can't decode byte 0xc3 in position 635: ordinal not in range(128)
2022-05-17 11:41:16,180:DEBUG:charset_normalizer:3.0:api.py:261:from_bytes Code page utf_8 is a multi byte encoding table and it appear that at least one character was encoded using n-bytes.
2022-05-17 11:41:16,180:INFO:charset_normalizer:3.0:api.py:379:from_bytes utf_8 passed initial chaos probing. Mean measured chaos is 0.000000 %
2022-05-17 11:41:16,180:INFO:charset_normalizer:3.0:api.py:411:from_bytes We detected language [('English', 1.0), ('Finnish', 1.0), ('Indonesian', 1.0), ('Simple English', 1.0), ('Dutch', 0.9733), ('French', 0.92), ('German', 0.88)] using utf_8
2022-05-17 11:41:16,181:INFO:charset_normalizer:3.0:api.py:431:from_bytes utf_8 is most likely the one. Stopping the process.
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/woob/browser/filters/html.py", line 108, in filter
return u'%s' % el[0].attrib[self.attr]
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/woob/core/bcall.py", line 106, in backend_process
for subresult in result:
File "/usr/local/lib/python3.7/site-packages/woob/tools/application/base.py", line 328, in _do_complete_iter
for i, sub in enumerate(res):
File "/root/.local/share/woob/modules/3.0/caissedepargne/module.py", line 86, in iter_accounts
for account in self.browser.get_accounts_list():
File "/usr/local/lib/python3.7/site-packages/woob/browser/switch.py", line 100, in wrapper
return val(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/woob/browser/retry.py", line 77, in wrapper
ret = cb()
File "/usr/local/lib/python3.7/site-packages/woob/browser/retry.py", line 73, in <lambda>
cb = lambda: func(browser, *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/woob/browser/browsers.py", line 981, in inner
browser.do_login()
File "/root/.local/share/woob/modules/3.0/caissedepargne/compat/woob_browser.py", line 436, in do_double_authentication
self.init_login()
File "/root/.local/share/woob/modules/3.0/caissedepargne/browser.py", line 284, in init_login
return self.do_new_login()
File "/root/.local/share/woob/modules/3.0/caissedepargne/browser.py", line 968, in do_new_login
main_js_file = self.page.get_main_js_file_url()
File "/root/.local/share/woob/modules/3.0/caissedepargne/pages.py", line 89, in get_main_js_file_url
return Attr(
File "/usr/local/lib/python3.7/site-packages/woob/browser/filters/base.py", line 184, in __call__
return self.filter(self.select(self.selector, item))
File "/usr/local/lib/python3.7/site-packages/woob/browser/filters/base.py", line 133, in print_debug
res = function(self, value)
File "/usr/local/lib/python3.7/site-packages/woob/browser/filters/html.py", line 110, in filter
return self.default_or_raise(XPathNotFound('Unable to find element %s' % self.selector))
File "/usr/local/lib/python3.7/site-packages/woob/browser/filters/base.py", line 71, in default_or_raise
raise exception
woob.browser.filters.html.XPathNotFound: Unable to find element //script[contains(@src, "main-")]
What are the steps to reproduce the problem?
just tryto "list" a caisse d'epargne accont
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:
woob config info caissedepargne
.------------------------------------------------------------------------------.
| Module caissedepargne |
+-----------------.------------------------------------------------------------'
| Version | 202205121601
| Maintainer | Romain Bignon <romain@weboob.org>
| License | LGPLv3+
| Description | Caisse d'Épargne
| Capabilities | CapBankTransferAddRecipient, CapProfile, CapTransfer, CapContact, CapBankTransfer, CapBank, CapDocument, CapCollection, CapBankWealth
| Installed | yes
| Location | https://updates.weboob.org/3.0/main/caissedepargne.tar.gz
| |
| Configuration | login: Identifiant client (default: )
| | password: Mot de passe (default: )
| | nuser: User ID (optional) (default: )
| | auth_type: Type de compte (default: )
| | otp_emv: None
| | otp_sms: None
| | resume: None
| | request_information: None
'-----------------'