Description
Describe the bug
Minimal bootstrap fails with Sparkasse.
The FinTS dialog with Sparkasse aborts when fetching the tan medium (client.get_tan_media
) with error 9010 - Die angegebene Bankreferenz/Dialog-ID ist nicht gültig.
*Bank I tested this with
Name of the bank: Berliner Sparkasse
FinTS URL: https://banking-be3.s-fints-pt-be.de/fints30
Expected behavior
Minimal bootstrap succeeds.
I've successfully used this for a couple of years and I've passed a valid product ID. Last successful use was on April 27, 2024. First failure was on May 20, 2024.
Code required to reproduce
The code from quickstart.rst
up to minimal bootstrap (minimal_interactive_cli_bootstrap
).
Log output / error message
ERROR:fints.client:Dialog response: 9050 - Die Nachricht enthält Fehler.
ERROR:fints.client:Dialog response: 9800 - Dialog abgebrochen
ERROR:fints.client:Dialog response: 9010 - Die angegebene Bankreferenz/Dialog-ID ist nicht gültig.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File ".../raphaelm/python-fints/fints/utils.py", line 301, in minimal_interactive_cli_bootstrap
m = client.get_tan_media()
^^^^^^^^^^^^^^^^^^^^^^
File ".../raphaelm/python-fints/fints/client.py", line 1425, in get_tan_media
response = method(dialog)(seg)
^^^^^^^^^^^^^^^^^^^
File ".../raphaelm/python-fints/fints/dialog.py", line 156, in send
self.client.process_response_message(self, response, internal_send=internal_send)
File ".../raphaelm/python-fints/fints/client.py", line 230, in process_response_message
self._process_response(dialog, None, response)
File ".../raphaelm/python-fints/fints/client.py", line 1341, in _process_response
raise FinTSClientError("Error during dialog initialization, could not fetch BPD. Please check that you "
fints.exceptions.FinTSClientError: Error during dialog initialization, could not fetch BPD. Please check that you passed the correct bank identifier to the HBCI URL of the correct bank.
Additional context
Python 3.11 macOS
python-fints 4.1.0
Traceback (most recent call last):
File ".../raphaelm/python-fints/minimal.py", line 15, in <module>
minimal_interactive_cli_bootstrap(f)
File ".../raphaelm/python-fints/fints/utils.py", line 319, in minimal_interactive_cli_bootstrap
if client.is_tan_media_required() and not client.selected_tan_medium:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../raphaelm/python-fints/fints/client.py", line 1180, in is_tan_media_required
tan_mechanism = self.get_tan_mechanisms()[self.get_current_tan_mechanism()]
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: '999'
My last successful use of this library was with a version before 4, likely 3.1.0.