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

LuxMedError: In order to use this app, please update it to the newest version available in the store (code 301) #1

Open
kubawolanin opened this issue Jan 9, 2022 · 1 comment

Comments

@kubawolanin
Copy link

Hi @przemal
Thanks for your work on this.

Unfortunately this lib no longer works.
Steps to reproduce:

  1. pip install -e git+https://github.com/przemal/luxmed#egg=luxmed
  2. Paste the example code from README.md
  3. Run the script:
$ python main.py
Traceback (most recent call last):
  File "c:\users\kubaw\.platformio\penv\src\luxmed\luxmed\transport.py", line 54, in _request
    response.raise_for_status()
  File "C:\Users\kubaw\.platformio\penv\lib\site-packages\requests\models.py", line 953, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 409 Client Error: Conflict for url: https://portalpacjenta.luxmed.pl/PatientPortalMobileAPI/api/token

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

Traceback (most recent call last):
  File "C:\projects\ha-luxmed\main.py", line 6, in <module>
    print(luxmed.user())
  File "c:\users\kubaw\.platformio\penv\src\luxmed\luxmed\luxmed.py", line 71, in user
    return self._transport.get(USER_URL)
  File "c:\users\kubaw\.platformio\penv\src\luxmed\luxmed\transport.py", line 97, in get
    return self.request('GET', url, **kwargs)
  File "c:\users\kubaw\.platformio\penv\src\luxmed\luxmed\transport.py", line 90, in request
    self.authenticate()
  File "c:\users\kubaw\.platformio\penv\src\luxmed\luxmed\transport.py", line 71, in authenticate
    token = self._request('POST', TOKEN_URL, data={
  File "c:\users\kubaw\.platformio\penv\src\luxmed\luxmed\transport.py", line 56, in _request
    raise LuxMedError.from_response(response) from error
luxmed.errors.LuxMedError: In order to use this app, please update it to the newest version available in the store (code 301)
(penv)
@dzienisz
Copy link

dzienisz commented Jul 4, 2023

can you check again as this was merged 46eabb5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants