Skip to content
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

Legacy login retired #58

Closed
angelo-peronio opened this issue Sep 10, 2024 · 1 comment
Closed

Legacy login retired #58

angelo-peronio opened this issue Sep 10, 2024 · 1 comment

Comments

@angelo-peronio
Copy link
Contributor

The old DKB frontend has been retired, so attempting to login with legacy_login is not possible anymore.

In particular, one gets:

legacy.Wrapper.login()

legacy.Wrapper._new_instance()

legacy.Wrapper._new_instance() ended

Starting new HTTPS connection (1): www.ib.dkb.de:443
https://www.ib.dkb.de:443 "GET /banking HTTP/11" 200 None
Traceback (most recent call last):
  File "C:\venvs\accounting\Lib\site-packages\dkb_robo\legacy.py", line 824, in login
    self.dkb_br["j_username"] = str(self.dkb_user)
    ~~~~~~~~~~~^^^^^^^^^^^^^^
  File "C:\venvs\accounting\Lib\site-packages\mechanicalsoup\stateful_browser.py", line 122, in __setitem__
    self.form[name] = value
    ~~~~~~~~~^^^^^^
  File "C:\venvs\accounting\Lib\site-packages\mechanicalsoup\form.py", line 242, in __setitem__
    return self.set(name, value)
           ^^^^^^^^^^^^^^^^^^^^^
  File "C:\venvs\accounting\Lib\site-packages\mechanicalsoup\form.py", line 283, in set
    raise LinkNotFoundError("No valid element named " + name)
mechanicalsoup.utils.LinkNotFoundError: No valid element named j_username

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\venvs\accounting\Scripts\fetch.exe\__main__.py", line 7, in <module>
  File "C:\Users\angel\Documents\doc-Angelo\euri\accounting\src\accounting\dkb\fetch.py", line 171, in main
    with DKBRobo(
  File "C:\venvs\accounting\Lib\site-packages\dkb_robo\dkb_robo.py", line 54, in __enter__
    (self.account_dic, self.last_login) = self.wrapper.login()
                                          ^^^^^^^^^^^^^^^^^^^^
  File "C:\venvs\accounting\Lib\site-packages\dkb_robo\legacy.py", line 860, in login
    raise DKBRoboError('Login failed: LinkNotFoundError') from err
dkb_robo.legacy.DKBRoboError: Login failed: LinkNotFoundError

Should the support for the old frontend be dropped?

@grindsa
Copy link
Owner

grindsa commented Sep 18, 2024

Legacy frontend got disabled in dkb-rob v0.27 and will be fully removed in one of the upcomfing releases.

@grindsa grindsa closed this as completed Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants