Bad request

Hi.
I have problem with my HA.
I am using Raspberry PI.
System installed : Raspbian GNU/Linux 8.0 (jessie)
After update to version 0.23.1
I have no access to web interface.
I have respond:
Bad Request
The browser (or proxy) sent a request that this server could not understand.

looks like all works except web server.
on log file:
_ homeassistant.config: Incomplete core config. Auto detected elevation: 300_

I don’t know, what does it means.

What I have to do?

Do you have “frontend:” in your configuration file?

You should also add “elevation: 300” at the same level as latitude and longitude.

Yes. I have “frontend”.
As manual on the “home-assistant.io
property “elevation:300” is for “sun” module.

I have added “elevation:300” to “sun” module and to “homeassistant” module.
No more notification about elevation now.

But i still have “Bad request” on my web inteface.

Are you using Chrome browser??? I was and had the same problem. Tried IE and all was well. Went back to Chrome and… wait for it… It worked!!! Havent had any problems since :wink:

I am using Chrome and FireFox, try Opera, IE.
Same result - Bad request
At home I will try delete configuration file, and run empty HA.

What URL are you using to get to HA?

I am using Dyn DNS from my provider.
https://…ddns.ukrtel.net
Also in local network.
https://192.168.1.33:8123

http:
  api_password: xxxxxxx
  ssl_certificate: /etc/letsencrypt/live/xxxx.ddns.ukrtel.net/fullchain.pem
  ssl_key: /etc/letsencrypt/live/xxxx.ddns.ukrtel.net/privkey.pem
  cors_allowed_origins:
    - google.com
    - home-assistant.io

I start HA by command line and:

INFO:homeassistant.loader:Loaded sun from homeassistant.components.sun
INFO:homeassistant.loader:Loaded http from homeassistant.components.http
INFO:homeassistant.loader:Loaded alarm_control_panel from homeassistant.components.alarm_control_panel
INFO:homeassistant.loader:Loaded discovery from homeassistant.components.discovery
   
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): pypi.python.org

also

ERROR:homeassistant.bootstrap:Not initializing api because not all dependencies loaded: http ERROR:homeassistant.bootstrap:Not initializing frontend because not all dependencies loaded: api

“http” loaded or not loaded?

Very fragile “http” module this time.
I started server from empty configuration.yaml file.
Server worked.
When i added ssl certification:

Error in HTTPServer.tick
Traceback (most recent call last):
  File "/home/pi/.homeassistant/deps/cherrypy/wsgiserver/wsgiserver3.py", line 1682, in start
    self.tick()
  File "/home/pi/.homeassistant/deps/cherrypy/wsgiserver/wsgiserver3.py", line 1748, in tick
    s, ssl_env = self.ssl_adapter.wrap(s)
  File "/home/pi/.homeassistant/deps/cherrypy/wsgiserver/ssl_builtin.py", line 67, in wrap
    server_side=True)
  File "/usr/lib/python3.4/ssl.py", line 364, in wrap_socket
    _context=self)
  File "/usr/lib/python3.4/ssl.py", line 577, in __init__
    self.do_handshake()
  File "/usr/lib/python3.4/ssl.py", line 804, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:600)
Error in HTTPServer.tick
Traceback (most recent call last):
  File "/home/pi/.homeassistant/deps/cherrypy/wsgiserver/wsgiserver3.py", line 1682, in start
    self.tick()
  File "/home/pi/.homeassistant/deps/cherrypy/wsgiserver/wsgiserver3.py", line 1748, in tick
    s, ssl_env = self.ssl_adapter.wrap(s)
  File "/home/pi/.homeassistant/deps/cherrypy/wsgiserver/ssl_builtin.py", line 67, in wrap
    server_side=True)
  File "/usr/lib/python3.4/ssl.py", line 364, in wrap_socket
    _context=self)
  File "/usr/lib/python3.4/ssl.py", line 577, in __init__
    self.do_handshake()
  File "/usr/lib/python3.4/ssl.py", line 804, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:600)
Error in HTTPServer.tick

I have done nothing. But looks like now it works with ssl certificates ???

TO BE CONTINUED

Does not work. Also without ssl.
Maybe not enough raspberry for run HA.

I’m certain all the rPi’s can run HA. I’ve even tried it on a first gen rPi without any problems. Wasn’t fast but usable.

  1. Do you have 443 on your router forwarded to 8123 on the Pi?
  2. What are the permissions on the PEM files and the path to them?

Network setting is All correct.
It was working before update.
And it not working in local network (no port forwarding required)

looks like i know what happens. But I don’t know how to fix it.

When i have added to configurations this rows:

digizigbee:
  port: /dev/ttyUSB0

HA server return Bad request
“digizigbee” - this is the module wrote by myself.
It works fine. no any errors. I don’t know how “digizigbee” related to Bad request
Here is source of “digizigbee”
https://drive.google.com/folderview?id=0B6pRwnTPCBPSMjcxS3Z1NUMzMkk&usp=sharing

If somebody knows what happen let me know

On HA version 0.23.1 next changes has been done:
HTTP - SSL: Check for OP_NO_COMPRESSION support before trying to use it (@AlucardZero)

Maybe this is a reason why server is not working?

On HA version 0.22 All works good

I had the same problem. Extreme but i just formatted and reinstalled the All-in-ine installer and copied my. yamls back in. Working normally again.

I’m getting this same error. Doesn’t look like you figured it out?

Does not work on new version of HA. Works only on Old version of HA