dylandoamaral / trakt-integration

A Trakt integration for Home Assistant compatible with upcoming media card
MIT License
32 stars 13 forks source link

401 status code #66

Closed giloser closed 1 year ago

giloser commented 1 year ago

Hi,

as requested I create a new issue with the current log of the error I got.

I tried again to start from the beginning and remove everything but I still got the exact same error. What should I try o r check to fix this?

thanks a lot

Logger: custom_components.trakt_tv Source: custom_components/trakt_tv/apis/trakt.py:80 Integration: Trakt (documentation, issues) First occurred: 15:04:58 (1 occurrences) Last logged: 15:04:58

Unexpected error fetching trakt data: Can't request recommendations/shows?limit=3&ignore_collected=false with get because it returns a 401 status code with content . If you find this error, please raise an issue at https://github.com/dylandoamaral/trakt-integration/issues. Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 225, in _async_refresh self.data = await self._async_update_data() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 181, in _async_update_data return await self.update_method() File "/config/custom_components/trakt_tv/apis/trakt.py", line 294, in retrieve_data data = await gather( File "/config/custom_components/trakt_tv/apis/trakt.py", line 268, in fetch_recommendations data = await gather( File "/config/custom_components/trakt_tv/apis/trakt.py", line 261, in fetch_recommendation return await self.request( File "/config/custom_components/trakt_tv/apis/trakt.py", line 72, in request return await self.request(method, url, **kwargs) File "/config/custom_components/trakt_tv/apis/trakt.py", line 80, in request raise TraktException(f"{error}\n{guidance}") custom_components.trakt_tv.exception.TraktException: Can't request recommendations/shows?limit=3&ignore_collected=false with get because it returns a 401 status code with content . If you find this error, please raise an issue at https://github.com/dylandoamaral/trakt-integration/issues.

dylandoamaral commented 1 year ago

Did you already succeed to install this integration before ?

giloser commented 1 year ago

no it's my first try

dylandoamaral commented 1 year ago

Did you try https://github.com/dylandoamaral/trakt-integration#workaround ?

giloser commented 1 year ago

yes the integration says it worked and everything

dylandoamaral commented 1 year ago

Do you still have the issue

giloser commented 1 year ago

hi thanks for the followup!

no right now I have a 500 so saying the trakt server has an issue...

I propose we close I'll try your dev environment and come back to you to tell what I found.