Skip to content
This repository has been archived by the owner on Oct 29, 2023. It is now read-only.

Standing orders endpoint is not working #113

Open
dcguim opened this issue Mar 28, 2022 · 2 comments
Open

Standing orders endpoint is not working #113

dcguim opened this issue Mar 28, 2022 · 2 comments
Labels

Comments

@dcguim
Copy link

dcguim commented Mar 28, 2022

I believe the standing orders endpoint is not working, follow the result ofapi_client.get_standing_orders():

Traceback (most recent call last):
  File "main.py", line 7, in <module>
    print(api_client.get_standing_orders())
  File ".../python-n26/n26/api.py", line 184, in get_standing_orders
    return self._do_request(GET, BASE_URL_DE + '/api/transactions/so')
  File ".../python-n26/n26/api.py", line 310, in _do_request
    response.raise_for_status()
  File ".../venv/lib/python3.8/site-packages/requests/models.py", line 960, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://api.tech26.de/api/transactions/so

Despite the 0.2 swagger api documentation claiming this endpoint exist, vide:
https://app.swaggerhub.com/apis/Rots/N26/0.2#/transactions/get_transactions_so

@femueller
Copy link
Owner

femueller commented Mar 30, 2022

@dcguim Haven't checked that specific endpoint recently, but it could be that N26 deprecated it.

While testing, I am running into the same issue.

 ~ $ n26 standing-orders
Initiating authentication flow, please check your phone to approve login.
Authentication successful :)
Traceback (most recent call last):
  File "/home/felix/.pyenv/versions/3.8.0/bin/n26", line 10, in <module>
    sys.exit(cli())
  File "/home/felix/.pyenv/versions/3.8.0/lib/python3.8/site-packages/click/core.py", line 1137, in __call__
    return self.main(*args, **kwargs)
  File "/home/felix/.pyenv/versions/3.8.0/lib/python3.8/site-packages/click/core.py", line 1062, in main
    rv = self.invoke(ctx)
  File "/home/felix/.pyenv/versions/3.8.0/lib/python3.8/site-packages/click/core.py", line 1668, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/felix/.pyenv/versions/3.8.0/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/felix/.pyenv/versions/3.8.0/lib/python3.8/site-packages/click/core.py", line 763, in invoke
    return __callback(*args, **kwargs)
  File "/home/felix/.pyenv/versions/3.8.0/lib/python3.8/site-packages/n26/cli.py", line 51, in wrapper
    return func(*args, **kwargs)
  File "/home/felix/.pyenv/versions/3.8.0/lib/python3.8/site-packages/n26/cli.py", line 453, in standing_orders
    standing_orders_data = API_CLIENT.get_standing_orders()
  File "/home/felix/.pyenv/versions/3.8.0/lib/python3.8/site-packages/n26/api.py", line 184, in get_standing_orders
    return self._do_request(GET, BASE_URL_DE + '/api/transactions/so')
  File "/home/felix/.pyenv/versions/3.8.0/lib/python3.8/site-packages/n26/api.py", line 310, in _do_request
    response.raise_for_status()
  File "/home/felix/.pyenv/versions/3.8.0/lib/python3.8/site-packages/requests/models.py", line 943, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://api.tech26.de/api/transactions/so

@markusressel
Copy link
Collaborator

We probably have to get the new API working, which has been discussed a lot in #110.

@femueller femueller added the bug label Apr 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants