Closed seanmccabe closed 1 year ago
The issue with these errors (5XX one) is that we can't manage them ourselves. According to https://trakt.docs.apiary.io/#introduction/status-codes, when it is 500 error, it is a "Server Error" and you should "open a support ticket" somewhere 🤷♂️.
Thus it is maybe our fault but I can't figure out why without any information.
It seems that the trakt API is a bit flaky...
I've posted here so hopefully get something done.
This is my config:
language: en
timezone: Pacific/Auckland
sensors:
upcoming:
show:
days_to_fetch: 7 # How many days in the future you want to fetch
max_medias: 3 # How many medias you want to fetch
new_show:
days_to_fetch: 7
max_medias: 3
premiere:
days_to_fetch: 7
max_medias: 3
movie:
days_to_fetch: 7
max_medias: 3
next_to_watch:
all:
max_medias: 30
#exclude:
# - veep
# - the-original
# - friends
only_aired:
max_medias: 7
#exclude:
# - veep
# - the-original
# - friends
only_upcoming:
max_medias: 7
How long should I be expecting the Trakt integration to take in terms of starting up, because again it is taking quite some time.
Normally not that much max 10 minutes I would say. Try to remove next_to_watch
sensors to see if something happen please.
Normally not that much max 10 minutes I would say. Try to remove
next_to_watch
sensors to see if something happen please.
Will update in about 10 minutes. So far, its been taking hours and nothing, and then there is the occasional 500 error in the log.
Now its just blank
I hit reload, says its reloaded, and nothing
Ok seems like it is the next_to_watch piece that maybe broken?! Got the sensors etc now
Indeed, I should handle the error differently to ignore the sensors that can't be loaded.
Indeed, I should handle the error differently to ignore the sensors that can't be loaded.
Yer that would be good. Be good to get an output log as well of which endpoints are getting 500 so they can be reported to Trakt
I do have the exact same issue here. Any way I can help troubleshooting the issue?
In 0.8.0 I implement a retry mechanism, I hope it will be enough. I close the PR for now, if the issue persist, feel free to open the issue again.
I installed this 2 days, got everything into the config and activated it, after about half hour got hit with the 500 errors.
Updated today and done a restart of HA, and I am getting nothing, appears the integration just will not load and there is nothing in the logs. I've left it for 2 hours and it appears to get nowhere.
I've just turned on debugging and now got the following log entries:
Any thoughts for resolving?