MoritzR / fints2ledger

A tool for downloading transactions from FinTS banking APIs and sorting them into a ledger journal
MIT License
27 stars 8 forks source link

FinTSDialogInitError #20

Open WolfgangFahl opened 2 years ago

WolfgangFahl commented 2 years ago

Thank you for creating this software I tried to use it with

endpoint: https://hbci.gad.de

and added blz, account and password accordingly using credentials that work with banking4, moneymoney, hibiscus and VRNetWorld.

With this fints2ledger i get:

fints.exceptions.FinTSDialogInitError: Couldn't establish dialog with bank, Authentication data wrong?

So i assume the authentication works differently than I assume. Which methods for authentication are available and how are these configured?

MoritzR commented 2 years ago

For fints2ledger there is just one authentication method available.

Can you run the following snipped (with your details filled in and no </>) and check if you get an error or a list of accounts?

from fints.client import FinTS3PinTanClient

client = FinTS3PinTanClient(
            "<your banks blz>",
            "<your account number>",
            "<your online password>",
            "https://hbci.gad.de/"
        )

print(client.get_sepa_accounts())

(You may need to pip3 install fints if the import cannot be found.)

Basically fints2ledger uses the pyfints library under the hood. If you can get a connection with pyfints then it's possible to make it work here too. pyfints has some good documentation, which should help investigating where the issue comes from.