That’s my reverse proxy part. The url for authorize is correct called, so I assume thats correct. But its then redirected to an url without the proxy part.
That is a bug, I guess you have problem to login from external network as well. To make sure Google Assistant OAuth2 flow works, you need first make sure you can login from external network.
Faced the same issue twice and @awarecan + a few posts on stackoverflow about nginx/ha helped me fixed it.
A few things to debug :
Check your /etc/hosts file is clean and that the first 2 lines are 127.0.0.1 localhost.localdomain localhost and “your.private/public.static.ip” fqdn alias1 alias2…)
Update your nginx conf files to change hostname (ie: localhost) to IP (127.0.0.1), do this where you have the issue, you don’t need to update everything.
Nginx produces 2 aggregated logfiles (access & error), we’re only interested in following the most recent errors so we’ll use the command tail -f [location_of_nginx_error.log_file] (ie: tail -f /var/log/nginx/error.log).
This will tell you who and what are the cause of your issue : maybe you just need to adjust your acls to allow some IPs blocks, otherwise I’m sure you’ll find help to decode the cryptic error codes, that’s where the github issue tracker & community really shine.
The good advice from @awarecan - which also worked without an urlbase (https://my.external.url/frontend_latest/authorize.htm ) - is what brought me back here : YMMV with how much time a sync takes but even after applying this fix, the sync took really longer than usual. Now with the latest upgrade to 0.81.5, the exact same issue came right back.
I don’t live in the US and only heard about the last I/O, the speed at which they rolled-out “multi-language support” or “continued-conversation” made me think at how much it took for VR to take-up. I was so annoyed when I heard that Alexa wouldn’t initially be sold outside the US, now I see why : low latency is essential for a good experience and google_assistant’s actually made their guidelines very clear: “less than 200ms is ideal, between 2-5s is OK. If your latency is hovering around 5 seconds, please talk to us.”
Between GA’s interface update and HA’s batch of improvements, I played with the fail_timeout setting in the upstream directives in hoping to get a more responsive instance.
The suggestions (for other use-cases) were to set it to 0s : “200ms is ideal”, right? .
I could see my callback being made and being dropped, as soon as I increased the value, problem solved.
I hope I won’t spend more time on this issue, rest assured that if I find a sweet-spot I’ll updated my post.
assuming nginx & ha running on same instance
[./nginx.cfg]
…
##
# Logging Settings
##
stream {
upstream my {
server 127.0.0.1:8123 fail_timeout=90;
} }