I get the "unable to reach odoo server" error using secure connection. My server is behind an Apache reverse proxy doing SSL with a valid and signed certificate. The certificate chain is working, I checked my certificate fully with online checkers. But the app keeps saying that the cert is wrong, and then it says that it was unable to reach the server. Looking on the server log, this is what is happening:
The app is trying to list the database in http mode, not in json:
2014-09-22 16:14:01,815 14616 ERROR tierrafirme werkzeug: Error on request:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 177, in run_wsgi
execute(self.server.app)
File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 165, in execute
application_iter = app(environ, start_response)
File "/srv/odoo/8.0/instances/tierrafirme/odoo/openerp/service/wsgi_server.py", line 214, in application
return werkzeug.contrib.fixers.ProxyFix(application_unproxied)(environ, start_response)
File "/usr/lib/python2.7/dist-packages/werkzeug/contrib/fixers.py", line 144, in call
return self.app(environ, start_response)
File "/srv/odoo/8.0/instances/tierrafirme/odoo/openerp/service/wsgi_server.py", line 202, in application_unproxied
result = handler(environ, start_response)
File "/srv/odoo/8.0/instances/tierrafirme/odoo/openerp/http.py", line 1214, in call
return self.dispatch(environ, start_response)
File "/srv/odoo/8.0/instances/tierrafirme/odoo/openerp/http.py", line 1188, in call
return self.app(environ, start_wrapped)
File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 579, in call
return self.app(environ, start_response)
File "/srv/odoo/8.0/instances/tierrafirme/odoo/openerp/http.py", line 1355, in dispatch
result = ir_http._dispatch()
File "/srv/odoo/8.0/instances/tierrafirme/odoo/addons/crm/ir_http.py", line 13, in _dispatch
response = super(ir_http, self)._dispatch()
File "/srv/odoo/8.0/instances/tierrafirme/odoo/addons/website/models/ir_http.py", line 125, in _dispatch
return super(ir_http, self)._dispatch()
File "/srv/odoo/8.0/instances/tierrafirme/odoo/openerp/addons/base/ir/ir_http.py", line 130, in _dispatch
return self._handle_exception(e)
File "/srv/odoo/8.0/instances/tierrafirme/odoo/addons/website/models/ir_http.py", line 201, in _handle_exception
return super(ir_http, self)._handle_exception(exception)
File "/srv/odoo/8.0/instances/tierrafirme/odoo/openerp/addons/base/ir/ir_http.py", line 100, in _handle_exception
return request._handle_exception(exception)
File "/srv/odoo/8.0/instances/tierrafirme/odoo/openerp/http.py", line 595, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "/srv/odoo/8.0/instances/tierrafirme/odoo/openerp/addons/base/ir/ir_http.py", line 126, in _dispatch
result = request.dispatch()
File "/srv/odoo/8.0/instances/tierrafirme/odoo/openerp/http.py", line 613, in dispatch
r = self._call_function(**self.params)
File "/srv/odoo/8.0/instances/tierrafirme/odoo/openerp/http.py", line 264, in _call_function
% (self.endpoint.original, self.httprequest.path, self.endpoint.routing['type'], self._request_type))
Exception: , /web/webclient/version_info: Function declared as capable of handling request of type 'json' but called with a request of type 'http'