[BNP] [Hello Bank] : AssertionError: Not on the authorization redirection page
Describe the problem you encounter
I'm using kresus (docker container) and i got this error : AssertionError: Not on the authorization redirection page
Paste here the stacktrace or error message you observe
[2022-01-02T20:19:35.924] [ERROR] providers/woob - (error code: GENERIC_EXCEPTION)
[2022-01-02T20:19:35.975] [ERROR] helpers - when fetching operations: Unknown error: Not on the authorization redirection page.
Traceback (most recent call last):
File "/home/user/app/build/server/providers/woob/py/main.py", line 706, in fetch
results['values'] = self.get_operations(from_date)
File "/home/user/app/build/server/providers/woob/py/main.py", line 589, in get_operations
for account in list(self.backend.iter_accounts()):
File "/home/user/data/woob-data/modules/3.1/woob_modules/bnp/module.py", line 107, in iter_accounts
return self.browser.iter_accounts()
File "/woob/woob/browser/browsers.py", line 989, in inner
browser.do_login()
File "/home/user/data/woob-data/modules/3.1/woob_modules/bnp/pp/browser.py", line 212, in do_login
assert self.login_redirect.is_here(), "Not on the authorization redirection page"
AssertionError: Not on the authorization redirection page
What woob version are you using?
3.1
What module version are you using?
bnp
How did you install woob?
clone the repo in a specific volume, pull the last commit. The repo is using directly by the kresus app.
woob bank error stacktrace
------------------------------------------+----------+----------
Bug(hellobank): Not on the authorization redirection page
(If --auto-update is passed on the command-line, new versions of the module will be checked automatically)
Use "logging debug" option to print backtraces.
------------------------------------------+----------+----------
bank> logging debug
bank> list
Account Balance Coming
------------------------------------------+----------+----------
2022-01-08 18:36:23,952:DEBUG:woob.core.bcall:3.1:bcall.py:92:backend_process <Backend 'hellobank'>: Calling function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7fd6a6375d30>>
2022-01-08 18:36:23,989:DEBUG:urllib3.connectionpool:3.1:connectionpool.py:452:_make_request https://www.hellobank.fr:443 "GET /serviceinfosclient-wspl/rpc/InfosClient?modeAppel=0 HTTP/1.1" 200 63
2022-01-08 18:36:23,990:DEBUG:woob.backend.hellobank.browser:3.1:browsers.py:888:internal_callback Handle https://www.hellobank.fr/serviceinfosclient-wspl/rpc/InfosClient?modeAppel=0 with InfoClientPage
2022-01-08 18:36:24,294:DEBUG:urllib3.connectionpool:3.1:connectionpool.py:452:_make_request https://www.hellobank.fr:443 "GET /auth/login HTTP/1.1" 200 65
2022-01-08 18:36:24,295:DEBUG:woob.backend.hellobank.browser:3.1:browsers.py:888:internal_callback Handle https://www.hellobank.fr/auth/login with InitLoginPage
2022-01-08 18:36:24,295:DEBUG:woob.core.bcall:3.1:bcall.py:98:backend_process <Backend 'hellobank'>: Called function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7fd6a6375d30>> raised an error: AssertionError('Not on the authorization redirection page')
Bug(hellobank): Not on the authorization redirection page
(If --auto-update is passed on the command-line, new versions of the module will be checked automatically)
Traceback (most recent call last):
File "/home/olivier/.local/lib/python3.9/site-packages/woob/core/bcall.py", line 94, in backend_process
result = function(backend, *args, **kwargs)
File "/home/olivier/.local/lib/python3.9/site-packages/woob/tools/application/base.py", line 349, in _do_complete
res = getattr(backend, function)(*args, **kwargs)
File "/home/olivier/.local/share/woob/modules/3.1/woob_modules/hellobank/module.py", line 74, in iter_resources
return self.iter_accounts()
File "/home/olivier/.local/share/woob/modules/3.1/woob_modules/hellobank/module.py", line 80, in iter_accounts
return self.browser.iter_accounts()
File "/home/olivier/.local/lib/python3.9/site-packages/woob/browser/browsers.py", line 989, in inner
browser.do_login()
File "/home/olivier/.local/share/woob/modules/3.1/woob_modules/bnp/pp/browser.py", line 212, in do_login
assert self.login_redirect.is_here(), "Not on the authorization redirection page"
AssertionError: Not on the authorization redirection page
------------------------------------------+----------+----------
Edited by Olivier Galy