[bank][bnporc] Bug(bnporc): Exceeded 30 redirects.
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?
bnporc
Describe the problem you encounter
Got error Bug(bnporc): Exceeded 30 redirects.
when listing accounts
Paste here the stacktrace or error message you observe
$ woob bank -b bnporc
Welcome to bank v2.1
Copyright(C) 2010-2021 Romain Bignon, Christophe Benz
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Type "help" to display available commands.
Loaded backends: bnporc
bank> logging debug
bank> list
Account Balance Coming
------------------------------------------+----------+----------
2021-05-25 15:51:24,522:DEBUG:bcall:2.1:bcall.py:92:backend_process <Backend 'bnporc'>: Calling function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7f44c00c37f0>>
[bnporc] Numéro client (hidden input):
[bnporc] Code secret (hidden input):
2021-05-25 15:51:38,754:DEBUG:urllib3.util.retry:2.1:retry.py:210:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2021-05-25 15:51:38,755:DEBUG:urllib3.util.retry:2.1:retry.py:210:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2021-05-25 15:51:38,758:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:815:_new_conn Starting new HTTPS connection (1): mabanque.bnpparibas:443
2021-05-25 15:51:38,866:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /identification-wspl-pres/identification?acceptRedirection=true×tamp=1621950698757 HTTP/1.1" 200 733
2021-05-25 15:51:38,877:DEBUG:backend.bnporc.browser:2.1:browsers.py:880:internal_callback Handle https://mabanque.bnpparibas/identification-wspl-pres/identification?acceptRedirection=true×tamp=1621950698757 with LoginPage
2021-05-25 15:51:38,931:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /identification-wspl-pres/grille/c-26498957721870121819091093795739312774 HTTP/1.1" 200 6307
2021-05-25 15:51:38,952:DEBUG:backend.bnporc.browser:2.1:browsers.py:894:internal_callback Unable to handle https://mabanque.bnpparibas/identification-wspl-pres/grille/c-26498957721870121819091093795739312774
2021-05-25 15:51:38,964:DEBUG:PIL.PngImagePlugin:2.1:PngImagePlugin.py:139:call STREAM b'IHDR' 16 13
2021-05-25 15:51:38,964:DEBUG:PIL.PngImagePlugin:2.1:PngImagePlugin.py:139:call STREAM b'IDAT' 41 6250
2021-05-25 15:51:39,513:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "POST /SEEA-pa01/devServer/seeaserver HTTP/1.1" 302 9424
2021-05-25 15:51:39,599:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /aiguillage-wspl/redirect/login?u=%2FSEEA-pa01%2FdevServer%2Fseeaserver HTTP/1.1" 302 0
2021-05-25 15:51:39,640:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /fr/secure/100-connexions HTTP/1.1" 302 2086
2021-05-25 15:51:39,652:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:815:_new_conn Starting new HTTPS connection (1): connexion-mabanque.bnpparibas:443
2021-05-25 15:51:39,772:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://connexion-mabanque.bnpparibas:443 "GET /oidc/authorize?response_type=code&scope=openid%20bnpp_mabanque&client_id=0e0fe16f-4e44-4138-9c46-fdf077d56087&state=QMpvalGemZNXOa4VGdYtHHmt-64&redirect_uri=https%3A%2F%2Fmabanque.bnpparibas%3A443%2Ffr%2Fsecure%2Fredirect_uri&nonce=xOKvWhU1_TbsMB0QnbrbRE0xSiW_aA2blJuSX6GqQ5M&ui=classic%20part&ui_locales=fr HTTP/1.1" 302 0
2021-05-25 15:51:39,833:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://connexion-mabanque.bnpparibas:443 "GET /login?service=https%3A%2F%2Fs00vl9991961%3A9443%2Foauth2.0%2FcallbackAuthorize%3Fclient_name%3DCasOAuthClient%26client_id%3D0e0fe16f-4e44-4138-9c46-fdf077d56087%26redirect_uri%3Dhttps%253A%252F%252Fmabanque.bnpparibas%253A443%252Ffr%252Fsecure%252Fredirect_uri%26response_type%3Dcode HTTP/1.1" 200 None
2021-05-25 15:51:39,838:DEBUG:backend.bnporc.browser:2.1:browsers.py:894:internal_callback Unable to handle https://connexion-mabanque.bnpparibas/login?service=https%3A%2F%2Fs00vl9991961%3A9443%2Foauth2.0%2FcallbackAuthorize%3Fclient_name%3DCasOAuthClient%26client_id%3D0e0fe16f-4e44-4138-9c46-fdf077d56087%26redirect_uri%3Dhttps%253A%252F%252Fmabanque.bnpparibas%253A443%252Ffr%252Fsecure%252Fredirect_uri%26response_type%3Dcode
2021-05-25 15:51:39,940:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /rib-wspl/rpc/comptes HTTP/1.1" 302 0
2021-05-25 15:51:40,024:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /aiguillage-wspl/redirect/chtMdp HTTP/1.1" 302 0
2021-05-25 15:51:40,066:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /fr/secure/100-connexions HTTP/1.1" 302 1816
2021-05-25 15:51:40,156:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /aiguillage-wspl/redirect/login?u=/fr/secure/100-connexions&requiredDAC=3 HTTP/1.1" 302 0
2021-05-25 15:51:40,204:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /fr/secure/100-connexions HTTP/1.1" 302 287
2021-05-25 15:51:40,297:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /aiguillage-wspl/redirect/login?u=/fr/secure/100-connexions&requiredDAC=3 HTTP/1.1" 302 0
2021-05-25 15:51:40,338:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /fr/secure/100-connexions HTTP/1.1" 302 1816
2021-05-25 15:51:40,437:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /aiguillage-wspl/redirect/login?u=/fr/secure/100-connexions&requiredDAC=3 HTTP/1.1" 302 0
2021-05-25 15:51:40,480:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /fr/secure/100-connexions HTTP/1.1" 302 1816
2021-05-25 15:51:40,578:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /aiguillage-wspl/redirect/login?u=/fr/secure/100-connexions&requiredDAC=3 HTTP/1.1" 302 0
2021-05-25 15:51:40,618:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /fr/secure/100-connexions HTTP/1.1" 302 287
2021-05-25 15:51:40,704:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /aiguillage-wspl/redirect/login?u=/fr/secure/100-connexions&requiredDAC=3 HTTP/1.1" 302 0
2021-05-25 15:51:40,739:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /fr/secure/100-connexions HTTP/1.1" 302 287
2021-05-25 15:51:40,830:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /aiguillage-wspl/redirect/login?u=/fr/secure/100-connexions&requiredDAC=3 HTTP/1.1" 302 0
2021-05-25 15:51:40,865:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /fr/secure/100-connexions HTTP/1.1" 302 287
2021-05-25 15:51:40,961:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /aiguillage-wspl/redirect/login?u=/fr/secure/100-connexions&requiredDAC=3 HTTP/1.1" 302 0
2021-05-25 15:51:40,995:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /fr/secure/100-connexions HTTP/1.1" 302 1816
2021-05-25 15:51:41,105:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /aiguillage-wspl/redirect/login?u=/fr/secure/100-connexions&requiredDAC=3 HTTP/1.1" 302 0
2021-05-25 15:51:41,146:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /fr/secure/100-connexions HTTP/1.1" 302 287
2021-05-25 15:51:41,206:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /aiguillage-wspl/redirect/login?u=/fr/secure/100-connexions&requiredDAC=3 HTTP/1.1" 302 0
2021-05-25 15:51:41,240:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /fr/secure/100-connexions HTTP/1.1" 302 287
2021-05-25 15:51:41,327:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /aiguillage-wspl/redirect/login?u=/fr/secure/100-connexions&requiredDAC=3 HTTP/1.1" 302 0
2021-05-25 15:51:41,380:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /fr/secure/100-connexions HTTP/1.1" 302 1816
2021-05-25 15:51:41,485:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /aiguillage-wspl/redirect/login?u=/fr/secure/100-connexions&requiredDAC=3 HTTP/1.1" 302 0
2021-05-25 15:51:41,532:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /fr/secure/100-connexions HTTP/1.1" 302 287
2021-05-25 15:51:41,623:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /aiguillage-wspl/redirect/login?u=/fr/secure/100-connexions&requiredDAC=3 HTTP/1.1" 302 0
2021-05-25 15:51:41,657:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /fr/secure/100-connexions HTTP/1.1" 302 287
2021-05-25 15:51:41,755:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /aiguillage-wspl/redirect/login?u=/fr/secure/100-connexions&requiredDAC=3 HTTP/1.1" 302 0
2021-05-25 15:51:41,802:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /fr/secure/100-connexions HTTP/1.1" 302 287
2021-05-25 15:51:41,885:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /aiguillage-wspl/redirect/login?u=/fr/secure/100-connexions&requiredDAC=3 HTTP/1.1" 302 0
2021-05-25 15:51:41,922:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:393:_make_request https://mabanque.bnpparibas:443 "GET /fr/secure/100-connexions HTTP/1.1" 302 1816
2021-05-25 15:51:41,931:DEBUG:bcall:2.1:bcall.py:98:backend_process <Backend 'bnporc'>: Called function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7f44c00c37f0>> raised an error: TooManyRedirects('Exceeded 30 redirects.')
Bug(bnporc): Exceeded 30 redirects.
(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/local/lib/python3.7/dist-packages/woob-2.1-py3.7.egg/weboob/core/bcall.py", line 94, in backend_process
result = function(backend, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/woob-2.1-py3.7.egg/weboob/tools/application/base.py", line 349, in _do_complete
res = getattr(backend, function)(*args, **kwargs)
File "/home/julien/.local/share/woob/modules/2.1/bnporc/module.py", line 103, in iter_resources
return self.iter_accounts()
File "/home/julien/.local/share/woob/modules/2.1/bnporc/module.py", line 109, in iter_accounts
return self.browser.iter_accounts()
File "/usr/local/lib/python3.7/dist-packages/woob-2.1-py3.7.egg/weboob/browser/browsers.py", line 984, in inner
return func(browser, *args, **kwargs)
File "/home/julien/.local/share/woob/modules/2.1/bnporc/pp/browser.py", line 215, in iter_accounts
self.ibans.go()
File "/usr/local/lib/python3.7/dist-packages/woob-2.1-py3.7.egg/weboob/browser/url.py", line 98, in go
r = self.browser.location(self.build(**kwargs), params=params, data=data, json=json, method=method, headers=headers or {})
File "/usr/local/lib/python3.7/dist-packages/woob-2.1-py3.7.egg/weboob/browser/browsers.py", line 911, in location
response = self.open(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/woob-2.1-py3.7.egg/weboob/tools/decorators.py", line 38, in f_retry
return f(*args, **kwargs)
File "/home/julien/.local/share/woob/modules/2.1/bnporc/pp/browser.py", line 151, in open
return super(BNPParibasBrowser, self).open(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/woob-2.1-py3.7.egg/weboob/browser/browsers.py", line 898, in open
return super(PagesBrowser, self).open(callback=internal_callback, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/woob-2.1-py3.7.egg/weboob/browser/browsers.py", line 790, in open
return super(DomainBrowser, self).open(req, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/woob-2.1-py3.7.egg/weboob/browser/browsers.py", line 539, in open
is_async=is_async)
File "/usr/local/lib/python3.7/dist-packages/woob-2.1-py3.7.egg/weboob/browser/sessions.py", line 165, in send
return func(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/woob-2.1-py3.7.egg/weboob/browser/sessions.py", line 157, in func
resp = sup(*args, **kwargs)
File "/home/julien/.local/lib/python3.7/site-packages/requests/sessions.py", line 665, in send
history = [resp for resp in gen]
File "/home/julien/.local/lib/python3.7/site-packages/requests/sessions.py", line 665, in <listcomp>
history = [resp for resp in gen]
File "/home/julien/.local/lib/python3.7/site-packages/requests/sessions.py", line 166, in resolve_redirects
raise TooManyRedirects('Exceeded {} redirects.'.format(self.max_redirects), response=resp)
requests.exceptions.TooManyRedirects: Exceeded 30 redirects.
------------------------------------------+----------+----------
bank>
What are the steps to reproduce the problem?
- Launch the woob bank app
- Enter command
list
- Enter credentials
- Get error
Bug(bnporc): Exceeded 30 redirects.
What woob version are you using?
Output of woob config --version
command:
$ woob config --version
Woob config v2.1 Copyright(C) 2010-2021 Christophe Benz, Romain Bignon
What module version are you using?
$ woob config info bnporc
.------------------------------------------------------------------------------.
| Module bnporc |
+-----------------.------------------------------------------------------------'
| Version | 202104041405
| Maintainer | Romain Bignon <romain@weboob.org>
| License | LGPLv3+
| Description | BNP Paribas
| Capabilities | CapBank, CapProfile, CapDocument, CapCollection, CapTransfer, CapBankTransferAddRecipient, CapMessages, CapContact, CapBankWealth, CapBankTransfer
| Installed | yes
| Location | https://updates.woob.tech/2.1/main/bnporc.tar.gz
| |
| Configuration | login: Numéro client (default: )
| | password: Code secret (default: )
| | rotating_password: Automatically renew password every 100 connections (default: False)
| | digital_key: User with digital key have to add recipient with digital key (default: False)
| | website: Type de compte (default: pp)
How did you install woob?
sudo setup.py install
Additional info you'd like to mention
This backend was initially working but it's not anymore since yesterday morning.
Doing some research I found this issue https://git.weboob.org/weboob/weboob/issues/440 which seems to be similar however the issue has been solved without any action needed after few hours.
I'm facing this issue for more than 24h so I'm posting an issue here.
Does anybody has the same problem using bnporc
backend today ?
Does anybody has a clue on what's happening here and how to workaround if possible ?