[creditcooperatif] invalid literal for int() with base 36: ' '
Hello
With which module do you encounter problems?
creditcooperatif
Describe the problem you encounter
When fetching data from my account, after the 2FA a error always occurs saying : invalid literal for int() with base 36: ' '.
Paste here the stacktrace or error message you observe
I didn't find how to get the stacktrace using woob directly via commandline so here is the stacktrace of an app using the module woob and generating the exact same error with the same procedure :
[2024-04-10T08:08:55.946] [ERROR] providers/woob - (error code: GENERIC_EXCEPTION)
[2024-04-10T08:08:55.954] [ERROR] helpers - when fetching transactions: Unknown error: invalid literal for int() with base 36: ' '.
Traceback (most recent call last):
File "/var/www/***sus/build/server/providers/woob/py/main.py", line 704, in fetch
results['values'] = self.get_transactions(from_date)
File "/var/www/***sus/build/server/providers/woob/py/main.py", line 587, in get_transactions
for account in list(self.backend.iter_accounts()):
File "/home/yunohost.app/***sus/woob-data/modules/3.6/woob_modules/caissedepargne/module.py", line 81, in iter_accounts
return self.browser.iter_accounts()
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/browser/switch.py", line 98, in wrapper
return val(*args, **kwargs)
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/browser/browsers.py", line 1121, in inner
return func(browser, *args, **kwargs)
File "/home/yunohost.app/***sus/woob-data/modules/3.6/woob_modules/caissedepargne/browser.py", line 1105, in iter_accounts
for account in self.page.iter_accounts():
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/browser/elements.py", line 281, in __iter__
for obj in item:
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/browser/elements.py", line 470, in __iter__
self.handle_attr(attr, getattr(self, 'obj_%s' % attr))
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/browser/elements.py", line 489, in handle_attr
value = self.use_selector(func, key=key)
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/browser/elements.py", line 177, in use_selector
value = func()
File "/home/yunohost.app/***sus/woob-data/modules/3.6/woob_modules/caissedepargne/pages.py", line 590, in obj_iban
return rib2iban(CleanText(Dict('identity/producerContractId'))(self))
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/tools/capabilities/bank/iban.py", line 71, in rib2iban
return rebuild_iban('FR00' + rib)
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/tools/capabilities/bank/iban.py", line 68, in rebuild_iban
return iban[:2] + ('%02d' % find_iban_checksum(iban)) + iban[4:]
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/tools/capabilities/bank/iban.py", line 59, in find_iban_checksum
digits = str(iban2numeric(iban))
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/tools/capabilities/bank/iban.py", line 54, in iban2numeric
digits = int(''.join(str(int(ch, 36)) for ch in iban))
File "/var/www/***sus/venv/lib/python3.9/site-packages/woob/tools/capabilities/bank/iban.py", line 54, in <genexpr>
digits = int(''.join(str(int(ch, 36)) for ch in iban))
ValueError: invalid literal for int() with base 36: ' '
What are the steps to reproduce the problem?
- Install the last version of woob.
- Install module creditcooperatif (the package python-jose is missing by default).
- List operation with
list
operation - Connect to your account with login password and validate 2FA with mobile app
- The error occurs right after 2FA validation
What woob version are you using?
Output of woob config --version
command:
Woob config v3.6 Copyright(C) 2010-2024 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 | CapProfile, CapBank, CapBankWealth, CapCredentialsCheck, CapTransfer, CapBankTransfer, CapDocument, CapBankTransferAddRecipient, CapCollection
| 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?
With pip.