python-n26 icon indicating copy to clipboard operation
python-n26 copied to clipboard

Standing orders endpoint is not working

Open dcguim opened this issue 2 years ago • 2 comments

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

dcguim avatar Mar 28 '22 21:03 dcguim

@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

femueller avatar Mar 30 '22 11:03 femueller

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

markusressel avatar Mar 30 '22 18:03 markusressel