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

Unable to complete auth process even with @blizzrdof77 and @robloh workaround #124

Open
kirub opened this issue Nov 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@kirub
Copy link

kirub commented Nov 29, 2024

Tried both the normal (Prepare Trakt) way and the workaround and got further with the workaround. I got to the trackt authorize page then the home assistant link page but that redirected me to the https://my.home-assistant.io/create-link/?redirect=oauth page with (sometimes) an "invalid parameters" popup.
The integration stay stuck for a while on the "Loading next step for Trackt".

trackt authorize page
image

Home assistant link page: https://my.home-assistant.io/redirect/oauth/?code=.........
image

Loading next step for Trackt
image

Also noticed that I get the same issue directly going to:
https://my.home-assistant.io/redirect/oauth
image

Logs from home assistant:

Logger: homeassistant.config_entries
Source: config_entries.py:635
First occurred: 22:30:43 (2 occurrences)
Last logged: 22:34:06

Error setting up entry Trakt for trakt_tv
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 635, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/trakt_tv/init.py", line 64, in async_setup_entry
await coordinator.async_config_entry_first_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 309, in async_config_entry_first_refresh
await self._async_refresh(
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 382, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 279, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/trakt_tv/apis/trakt.py", line 519, in retrieve_data
sources_data = await gather(*coroutine_sources_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/trakt_tv/apis/trakt.py", line 316, in fetch_next_to_watch
data = await self.fetch_upcoming(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/trakt_tv/apis/trakt.py", line 268, in fetch_upcoming
raw_medias = await self.fetch_watched(excluded_shows, not only_upcoming)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/trakt_tv/apis/trakt.py", line 149, in fetch_watched
hidden_items = await self.request(
^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/trakt_tv/apis/trakt.py", line 97, in request
await self.retry_request(300, response, method, url, retry, **kwargs)
File "/config/custom_components/trakt_tv/apis/trakt.py", line 60, in retry_request
await sleep(wait_time)
File "/usr/local/lib/python3.12/asyncio/tasks.py", line 665, in sleep
return await future
^^^^^^^^^^^^
asyncio.exceptions.CancelledError

@dylandoamaral dylandoamaral added the bug Something isn't working label Nov 30, 2024
@tunisiano187
Copy link

tunisiano187 commented Dec 22, 2024

Same problem
it took 30 minutes, but now it's OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants