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

Error while setting up tgtg platform for sensor: (404, b'') - tgtg.exceptions.TgtgAPIError: (404, b'') #153

Closed
4 tasks done
quack3d opened this issue Feb 25, 2025 · 3 comments

Comments

@quack3d
Copy link

quack3d commented Feb 25, 2025

System Health details

...

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of currently previous issues..

Describe the issue

Component stopped working. I tried new cookies but same error. Universal error?

Reproduction steps

Start HA
Check logs

Debug logs

Logger: homeassistant.components.sensor
Kilde: helpers/entity_platform.py:366
integrasjon: Sensor (dokumentasjon, problemer)
Første forekomst: 15:28:19 (1 forekomster)
Sist logget: 15:28:19

Error while setting up tgtg platform for sensor: (404, b'')
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 366, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/tgtg/sensor.py", line 81, in setup_platform
    tgtgReply = tgtg_client.get_items()
  File "/usr/local/lib/python3.13/site-packages/tgtg/__init__.py", line 234, in get_items
    self.login()
    ~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/tgtg/__init__.py", line 144, in login
    self._refresh_token()
    ~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/tgtg/__init__.py", line 136, in _refresh_token
    raise TgtgAPIError(response.status_code, response.content)
tgtg.exceptions.TgtgAPIError: (404, b'')

Diagnostics dump

No response

@DubhFaol
Copy link

Same here

Logger: homeassistant.components.sensor
Quelle: helpers/entity_platform.py:366
Integration: Sensor (Dokumentation, Probleme)
Erstmals aufgetreten: 11:35:35 (1 Vorkommnisse)
Zuletzt protokolliert: 11:35:35

Error while setting up tgtg platform for sensor: (404, b'')
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 366, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/tgtg/sensor.py", line 81, in setup_platform
    tgtgReply = tgtg_client.get_items()
  File "/usr/local/lib/python3.13/site-packages/tgtg/__init__.py", line 234, in get_items
    self.login()
    ~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/tgtg/__init__.py", line 144, in login
    self._refresh_token()
    ~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/tgtg/__init__.py", line 136, in _refresh_token
    raise TgtgAPIError(response.status_code, response.content)
tgtg.exceptions.TgtgAPIError: (404, b'')

@tjorim
Copy link
Collaborator

tjorim commented Feb 26, 2025

Nothing we can do about it, we depend on ahivert/tgtg-python#335.

@tjorim tjorim closed this as not planned Won't fix, can't repro, duplicate, stale Feb 26, 2025
@Alfagek
Copy link

Alfagek commented Feb 28, 2025

@tjorim , Ahivert did made a update today of the python files. Bit still not working with the intergration. Only one thing I found a strange thing on my setup. All the logs are pointing to python 3.13 like the logs above. But if I go to /usr/local/lib i only see python 3.12 and not the 3.13. (Python —version is also saying 3.12.9)

Is there the problem? Or I’m looking in the wrong direction?

Edit 1-3-2025:
Version 5.6.2 fixt it

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

4 participants