snoo
snoo copied to clipboard
New app version released breaks the API ?
Hello folks,
I used this awesome API with my first kid, but it seems that the new version of the app has broken the API:
Traceback (most recent call last):
File "/opt/homebrew/bin/snoo", line 8, in <module>
sys.exit(run())
^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/snoo/__init__.py", line 34, in run
print(client.status())
^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/snoo/client.py", line 297, in status
session = self.get_current_session()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/snoo/client.py", line 266, in get_current_session
data = self.request(self.CURRENT_ENDPOINT)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/snoo/client.py", line 187, in request
headers["Authorization"] = f"Bearer {self.get_token()}"
^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/snoo/client.py", line 217, in get_token
data = self.request(
^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/snoo/client.py", line 198, in request
raise APIError(endpoint, response.status_code, response.text)
snoo.client.APIError: ('/us/login', 404, '<!DOCTYPE html>\n<html lang="en">\n<head>\n<meta charset="utf-8">\n<title>Error</title>\n</head>\n<body>\n<pre>Cannot POST /api/login</pre>\n</body>\n</html>\n')
Any chance on your side ?
Cheers