Function declared as capable of handling request of type 'json' but called with a request of type 'http'

Bug #1276375 reported by Ondra Knezour
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openerp-mobile
Invalid
Medium
Dharmang Soni (OpenERP)

Bug Description

Looks like the app is not working with current trunk with website module enabled. I got unable to connect to server error when trying to configure new server/account and in the error log on server side is following:

2014-02-05 00:14:40,091 30539 INFO None werkzeug: 192.168.47.251 - - [05/Feb/2014 00:14:40] "POST /web/webclient/version_info HTTP/1.1" 500 -
2014-02-05 00:14:40,098 30539 ERROR None werkzeug: Error on request:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 177, in run_wsgi
    execute(self.server.app)
  File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 165, in execute
    application_iter = app(environ, start_response)
  File "/usr/share/pyshared/openerp/service/server.py", line 259, in app
    return self.app(e,s)
  File "/usr/share/pyshared/openerp/service/wsgi_server.py", line 362, in application
    return application_unproxied(environ, start_response)
  File "/usr/share/pyshared/openerp/service/wsgi_server.py", line 348, in application_unproxied
    result = handler(environ, start_response)
  File "/usr/share/pyshared/openerp/http.py", line 930, in __call__
    return self.dispatch(environ, start_response)
  File "/usr/share/pyshared/openerp/http.py", line 888, in __call__
    return self.app(environ, start_wrapped)
  File "/usr/local/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 579, in __call__
    return self.app(environ, start_response)
  File "/usr/share/pyshared/openerp/http.py", line 1072, in dispatch
    result = _dispatch_nodb()
  File "/usr/share/pyshared/openerp/http.py", line 1052, in _dispatch_nodb
    result = request.dispatch()
  File "/usr/share/pyshared/openerp/http.py", line 447, in dispatch
    r = self._call_function(**self.params)
  File "/usr/share/pyshared/openerp/http.py", line 202, in _call_function
    % (self.func, self.httprequest.path, self.func_request_type, self._request_type))
Exception: <openerp.http.EndPoint object at 0xc0cfdcc>, /web/webclient/version_info: Function declared as capable of handling request of type 'json' but called with a request of type 'http'

Changed in openerp-mobile:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Dharmang Soni (OpenERP) (dpr-openerp)
Revision history for this message
Dharmang Soni (OpenERP) (dpr-openerp) wrote :

Hello Ondra Knezour,

I have tested application with latest trunk and its working fine at my side. Please upgrade your trunk with latest revisions will solved your issue.

Thanks,
Dharmang Soni (dpr)

Changed in openerp-mobile:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.