-
-
Notifications
You must be signed in to change notification settings - Fork 40
Adding new service fails #23
Comments
If you made a new user in Domoticz try to restart Domoticz. Or check your credientials in config.py and in settings in Action on Google |
Tried restarting, didn't help. Isn't the problem the redirect itself? I assume that the login is sending a location header with a slash in front.. |
Importhamn: On the left navigation menu under BUILD, click on Actions. Click on Add Your First Action and choose your app's language(s). Enter the URL for fulfillment, |
All of this is done.. I also think that the /smarthome URL is needed only áfter the authentication is done. And the authentication isn't successful yet. I'm guessing that urllib.parse isn't returning the correct value. |
Found the issue. Google is opening /oauth with parameter redirect url encode (eg. https%3A%2F%2Foauth-redirect.googleusercontent.com%2Fr%2Fthuis-50e54) So you should not encode the url again at https://github.com/DewGew/Domoticz-Google-Assistant/blob/master/auth.py#L34 |
Thanks for reporting this. Can make a pull request for this issue? |
Hello, |
Fixes double quoting of parameters. Fix #23
Thanks, it's working fine now. |
When I add a new service in Google Home, the DGA login screen is showed. After entering the username and password, it shows:
Page not found: 'https%3A%2F%2Foauth-redirect.googleusercontent.com%2Fr%2Fthuis-50e54'
It looks like the redirect isn't going well.. Here is the console log:
1.2.3.4 is my reverse proxy
< clientid >, < code > and < state > have been replaced
The text was updated successfully, but these errors were encountered: