-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DKB does not accept connections anymore #121
Comments
Hi
|
Having the same issue with DKB:
BLZ: 12030000 Tried all settings from OpenHBCI but no success. |
I'm connecting to DKB for a few months now, without problems. Is this resolved? |
I have been using it before successfully (p until 2 months ago) but now I'm receiving the same error. So it is not resolved. |
What's the end date of the time span for which you are showing transactions? For DKB, I need to set |
Any News about this error? Got the same problem.. |
Unfortunately not. I'm also not quite sure on how to tackle this problem |
Hi,
DKB offers quite some TAN options. Have you tried playing with them? I've only activated Push-TAN and it works. |
@frederictobiasc do you have an example Code for using the TAN to log in? In the Troubleshot Test Code i only got the same error as before. I also tried the following Code from the Website
with the error result
In general, using https://banking-dkb.s-fints-pt-dkb.de/fints30 for BLZ 12030000 is still correct? Asking cause in the long response i also saw this:
|
Hi @bst2k, I only used the test script I linked above, so I cannot provide any other code. If I were you, I would carefully check for typos. Here are my client_args (redacted).
If this doesn't work, I would start and contact DKB if I were you, because then there must obviously something wrong. I had a conversation with a technical support representative of DKB myself and he stated that they happily assist in case of problems. I hope that helps! |
There can't be any typos due i copy login and password from KeePass and the online login works. Also the Bank Data must be correct, I found the confirmation in the FAQ:
So it reads like there is no adjustments for the account needed. To be sure I wrote an message to the DKB Support. When i log into my online banking I get an push from my "DKB-Banking" app where i need to confirm the log in, probably the connection is blocked cause I got no push message to confirm. Did somebody know an workaround for this? |
I also don't get a Pushtan for login. This is only necessary when doing things like requesting data. |
Thanks for your help @frederictobiasc My only activated TAN is TAN2go. If I run this Code:
I get an successfully result from DKB.
If I change the get_information to get_sepa_accounts I got the same error like in the other Threads:
Same error occurs when running the "Troubleshooting" Code. |
I just tested it, and it works wonderfully for me. IMO, this justifies opening a ticket at DKB FinTS support. I'm curious to hear what they tell. |
Is there any chance you have multiple devices registered for the Tan2go mechanism? |
Ticket is open, when the support replies I share the answer here. No I did not found this Thread, thanks for sharing. I definitely got only one device connected, believe there couldn't be more then one. Could you tell me where I set up the pushTan Device Name? I didn't see this in the documentation. |
I don't know where to set it up. I just guessed that there may be a problem if more than one push tan device is registered at the bank. For me, it just works. But I just noticed, that I also have "chipTan" activated. Maybe this changes the behaviour? Probably fiddling with the options wouldn't hurt. |
chipTan was activated at the start, I deactivated it yesterday while testing, so this sadly changed nothing. In my "TAN2go-Verwaltung" there is only one connected device show up, my Device that I am using daily. Ticket is still open :-( |
Hi @bst2k, |
@frederictobiasc thanks for your Tip. My login was really still like "12345_p" but is now changed to a customized one. I waited for around one hour and tried it again. Unfortunately I still have the same error and still no DKB response. |
@bst2k thanks for verifying that. I did another thing, just wanted to make sure, this is unrelated to the account name: I added the account in Gnucash (you can also use KMyMoney, both use Aqbanking as backend for FinTS). After successfully adding the account there, I was able to use it as well with |
@frederictobiasc I took a look at GnuCash and .... got the same error of "BPD nicht mehr aktuell, aktuelle Version enthalten. (S)", so I think there must be any DKB Account Settings to be adjusted.
|
@bst2k glad that worked out for you too.GnuCash required me to enter a TAN too. Please note that "BPD nicht mehr aktuell" != "could not fetch BPD", so that's an improvement ;)
|
Hi there, I am facing the same issue as the OP with DKB, tried the same script on trouble page. I printed out the fetched TAN mechanism in line 312: Lines 309 to 311 in 9e80e6b
and got this info: [('921', fints.formals.TwoStepParameters6(security_function='921', tan_process='2', tech_id='TAN2go', zka_id=None, zka_version=None, name='TAN2go', max_length_input=6, allowed_format=fints.formals.AllowedFormat.NUMERIC, text_return_value='TAN-Nummer', max_length_return_value=3, multiple_tans_allowed=True, tan_time_dialog_association=fints.formals.TANTimeDialogAssociation.ALLOWED, cancel_allowed=False, sms_charge_account_required=fints.formals.SMSChargeAccountRequired.MUST_NOT, principal_account_required=fints.formals.PrincipalAccountRequired.MUST_NOT, challenge_class_required=False, challenge_structured=False, initialization_mode=fints.formals.InitializationMode.CLEARTEXT_PIN_NO_TAN, description_required=fints.formals.DescriptionRequired.MUST, response_hhd_uc_required=False, supported_media_number=2))]
I could identify that there is only one current mechanism '921' which is Tan2Go, having Then I get the debug printout corresponding to
Obviously, there is the wrong The corresponding reply:
Here, the reply has errors (9050, 9800,9955) which are simply ignored by the lib! Next, the debug message indicates sending another message right after this one:
to which comes the reply:
These errors are now detected by the lib but I think the final errors are just a consequence of the previous ones which were disregarded:
Can anyone acknowledge that my observations are right? |
No, at least your second observation is wrong. If tan_process=2 is wanted, it is correct that the client replies with tan_process=4. If you want to read up on that, here's the relevant spec: You'll want to first read chapter B.4.2 "Abläufe bei Prozessveriante 2" starting on page 29. For the first observation, without having looked into it in detail, it indeed looks like a bug that the 9050 response code does not result in a Python exception.
No idea. It's interesting that |
I see a few people have tried gnucash/aqbanking, has anyone tried hibiscus/hbci4java? In hibiscus, it's possible to pull a trace of the raw HBCI communication, so if hibiscus works, one (probably not me) could start a message-by-message comparison with our output to try to figure out the difference. |
@raphaelm , thanks for acknowledging at least that there is something wrong because of failed parsing the errors from the reply.
I did not even reach that function and had already an exception ;) |
I could now break down the issue to the following call stack: Line 321 in 9e80e6b
Line 1360 in 9e80e6b
Lines 34 to 37 in 9e80e6b
Lines 47 to 85 in 9e80e6b
Lines 115 to 158 in 9e80e6b
In the dialog.send() function:
That is why the lib just disregards the errors and goes further causing further subsequent errors. I have seen in line 140:
which indicates that the problem was recognized and I assume that a solution has to be implemented. How could a solution to parse the errors occurred in this phase look like? |
Sinece approx. 2 Month dkb tan2go doesn't work. The app just opens for less than a second before it closes again. Do not receive any TAN's from this app. |
Hi, just wanted to give a quick update since I dug into this issue and was able to find the root of the problem: Apparently, when you try to sign in via FinTS for the first time, it requires a TAN from Tan2Go (TAN mechanism 921). However, it requires the passing of the identifier of the TAN device, which is always passed as Using my IDE, I went into the implementation of the library and literally made a single change, adding the identifier of my TAN2Go device in the
After this simple change, the troubleshooting script from the website worked perfectly. In my opinion, this should be handled in the init phase. Maybe the constructor should just be expanded with an optional parameter to allow for setting the TAN medium. This is not the most smooth solution, but it would help to circumvent this bug at least a little. I've created a pull request for this under #146 which can hotfix the issue until we implement a better solution. |
Just for the record, even without the proposed change to the constructor one can set the f = FinTS3PinTanClient(...)
f.selected_tan_medium = "pushtan" Thanks for the hint of how to figure out which tan medium is appropriate from the app, btw |
Just if somebody stumbles upon this: f = FinTS3PinTanClient(...) The device name is listed under 'TAN2go-Verbindungen" in the Sidebar-Menu of the DKB Tan2Go App. |
Hi!
I recently recognized that my previous working application suddenly throws an error while fetching transactions from my DKB account. I used the example code from https://python-fints.readthedocs.io/en/latest/trouble.html to verify if the error I receive is a result of incorrect session handling inside my application or if there are general problems with DKB sessions. If I use the example code I'm getting the following output:
I also found out, that the dialog-id sometimes is 0 during the communication:
Does anyone else happen to experience the same error or has information about how to fix this?
Bye
Jan
The text was updated successfully, but these errors were encountered: