Is anyone using Amazon Echo/Alexa and has a https setup with ProxyPass? I can not get Alexa running with my setup. Before i had direct https send to hass but i wanted https on rest off my server too so i did it with proxyPass. hass is working fine with that, but Alexa is not longer working. On developer.amazon.com under test i get only a default error message.
I am not sure what infos you need from me so please ask and i will answer.
Here is my vhost config from apache2
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin [email protected]
ServerName hass.myDomain.tv
CustomLog ${APACHE_LOG_DIR}/proxy_hass_access.log combined
ErrorLog ${APACHE_LOG_DIR}/proxy_hass_error.log
LogLevel warn
ProxyRequests off
SSLEngine on
SSLProxyEngine On
SSLCertificateFile /etc/letsencrypt/live/www.time4.tv/cert2.pem
SSLCertificateKeyFile /etc/letsencrypt/live/www.time4.tv/privkey2.pem
SSLCertificateChainFile /etc/letsencrypt/live/www.time4.tv/chain2.pem
SSLCACertificatePath /etc/ssl/certs/
ProxyRequests off
ProxyPreserveHost on
<Location />
Order Deny,Allow
Allow from all
#AuthType Basic
#AuthName "You shall not pass"
#AuthBasicProvider file
#AuthUserFile /etc/apache2/.htpasswd
#Require valid-user
ProxyPass https://192.168.1.2:8123/ retry=0
ProxyPassReverse https://192.168.1.2:8123/
ProxyPass ws://192.168.1.2:8123/ retry=0
ProxyPassReverse ws://192.168.1.2:8123/
</Location>
</VirtualHost>
</IfModule>
And here the hass error i get when trying to get an Alexa answer.
17-02-28 13:53:27 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/aiohttp/web_server.py", line 62, in handle_request
resp = yield from self._handler(request)
File "/usr/local/lib/python3.5/site-packages/aiohttp/web.py", line 270, in _handle
resp = yield from handler(request)
File "/usr/src/app/homeassistant/components/http/ban.py", line 57, in ban_middleware_handler
return (yield from handler(request))
File "/usr/local/lib/python3.5/asyncio/coroutines.py", line 213, in coro
res = yield from res
File "/usr/src/app/homeassistant/components/http/__init__.py", line 417, in handle
result = yield from result
File "/usr/src/app/homeassistant/components/alexa.py", line 136, in post
data = yield from request.json()
File "/usr/local/lib/python3.5/site-packages/aiohttp/web_reqrep.py", line 405, in json
return loads(body)
File "/usr/local/lib/python3.5/json/__init__.py", line 319, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.5/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.5/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)