I have a Flask App with XMLRPC for API which is deployed on the server. The app basically provides the users with data according to their account, which is in Odoo 9 application.
but the app can't support multiple requests, the error occurs whenever the flask app connects to Odoo server.
The error am getting is described below.
Traceback (most recent call last): File "/var/www/html/inicio_API/ENVINI/lib/python2.7/site-packages/flask/app.py", line 1997, in __call__ return self.wsgi_app(environ, start_response) File "/var/www/html/inicio_API/ENVINI/lib/python2.7/site-packages/flask/app.py", line 1985, in wsgi_app response = self.handle_exception(e) File "/var/www/html/inicio_API/ENVINI/lib/python2.7/site-packages/flask_cors/extension.py", line 161, in wrapped_function return cors_after_request(app.make_response(f(*args, **kwargs))) File "/var/www/html/inicio_API/ENVINI/lib/python2.7/site-packages/flask/app.py", line 1540, in handle_exception reraise(exc_type, exc_value, tb) File "/var/www/html/inicio_API/ENVINI/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app response = self.full_dispatch_request() File "/var/www/html/inicio_API/ENVINI/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request rv = self.handle_user_exception(e) File "/var/www/html/inicio_API/ENVINI/lib/python2.7/site-packages/flask_cors/extension.py", line 161, in wrapped_function return cors_after_request(app.make_response(f(*args, **kwargs))) File "/var/www/html/inicio_API/ENVINI/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception reraise(exc_type, exc_value, tb) File "/var/www/html/inicio_API/ENVINI/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request rv = self.dispatch_request() File "/var/www/html/inicio_API/ENVINI/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/var/www/html/inicio_API/inicio_v2/inicio_api_main.py", line 2068, in device_setting data = inicio_data.device_setting(device_id,not_id,device_os,device) File "/var/www/html/inicio_API/inicio_v2/inicio_data.py", line 425, in device_setting {'fields': ['id']} File "/usr/lib/python2.7/xmlrpclib.py", line 1233, in __call__ return self.__send(self.__name, args) File "/usr/lib/python2.7/xmlrpclib.py", line 1587, in __request verbose=self.__verbose File "/usr/lib/python2.7/xmlrpclib.py", line 1273, in request return self.single_request(host, handler, request_body, verbose) File "/usr/lib/python2.7/xmlrpclib.py", line 1298, in single_request self.send_request(h, handler, request_body) File "/usr/lib/python2.7/xmlrpclib.py", line 1400, in send_request connection.putrequest("POST", handler, skip_accept_encoding=True) File "/usr/lib/python2.7/httplib.py", line 906, in putrequest raise CannotSendRequest()
CannotSendRequest
Also i get the error of
File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
verbose=self.__verbose
File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib/python2.7/xmlrpclib.py", line 1294, in single_request
response = h.getresponse(buffering=True)
File "/usr/lib/python2.7/httplib.py", line 1033, in getresponse
raise ResponseNotReady()
httplib.ResponseNotReady
I cant figure out what is wrong with the app ?