custom-components / sensor.trakt

📺 Trakt Integration for Upcoming Media Card

Home Page:https://trakt.tv/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OAUTH ERROR - The requested redirect uri is malformed or doesn't match client redirect URI.

CM000n opened this issue · comments

Version of Home Assistant

0.111.2

Version of the custom_component

2.0.0

Configuration

Describe the bug

I installed the plugin via HACS. Every time I try to add it as an integration via the GUI, it wants to redirect me to Trakt Oauth authentication.
Trakt will always call http://172.20.0.9:8123/auth/external/callback as redirect_uri, no matter what I have specified as redirect_uri within Trakt for my app.
Since the 172.20.0.9 does not exist within my network, this of course leads to an error message and I cannot authenticate myself.
I don't know if this is a problem of the tract HA integration or tract itself.

Debug log

3456435345
65767657nt

The latest version of HA introduced a new config option called 'Internal URL' under General. Make sure to enter your local HA address there.

Hello @engrbm87 , thank you very much for this hint!
In fact, authentication now works for me after adding an 'Internal URL' to my HA config.

Now I am merely struggling with this problem: #40
But therefore this ticket can be closed.