pyros-dev / rostful

A lightweight package for providing and consuming ROS services, actions, and topics as RESTful web services
69 stars 41 forks source link

Server crashes when trying to [GET] occupency grip from /map topic #182

Open AvinashSinghNido opened 3 years ago

AvinashSinghNido commented 3 years ago

Hello, My system :

I am trying to setup rostful with a lot of topics and services but the server seems to die when trying to get /map of type OccupancyGrid.

The error when server crashes - [INFO] [1614066456.186250, 530.663000]: /rostful Pyros.ros : Adding subscriber interface /map <class 'nav_msgs.msg._OccupancyGrid.OccupancyGrid'> Exception on /ros/map [GET] Traceback (most recent call last): File "/home/avinash/.virtualenvs/rest_api/local/lib/python2.7/site-packages/flask/app.py", line 1950, in full_dispatch_request rv = self.dispatch_request() File "/home/avinash/.virtualenvs/rest_api/local/lib/python2.7/site-packages/flask/app.py", line 1936, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/home/avinash/.virtualenvs/rest_api/local/lib/python2.7/site-packages/flask_restful/__init__.py", line 468, in wrapper resp = resource(*args, **kwargs) File "/home/avinash/.virtualenvs/rest_api/local/lib/python2.7/site-packages/flask/views.py", line 89, in view return self.dispatch_request(*args, **kwargs) File "/home/avinash/.virtualenvs/rest_api/local/lib/python2.7/site-packages/flask_restful/__init__.py", line 583, in dispatch_request resp = meth(*args, **kwargs) File "/home/avinash/.virtualenvs/rest_api/local/lib/python2.7/site-packages/rostful/api_0_1/flask_views.py", line 174, in get msg = self.node_client.topic_extract(path) File "/home/avinash/.virtualenvs/rest_api/local/lib/python2.7/site-packages/pyros/client/client.py", line 140, in topic_extract six.reraise(PyrosServiceTimeout("Pyros Service call timed out."), None, sys.exc_info()[2]) File "/home/avinash/.virtualenvs/rest_api/local/lib/python2.7/site-packages/pyros/client/client.py", line 138, in topic_extract res = self.topic_svc.call(args=(topic_name, None,)) File "/home/avinash/.virtualenvs/rest_api/local/lib/python2.7/site-packages/pyzmp/service.py", line 148, in call raise ServiceCallTimeout("Did not receive response through ZMQ socket.") PyrosServiceTimeout: An Exception PyrosServiceTimeout('Pyros Service call timed out.',) was thrown in Pyros process 28409 ERROR:rostful:Exception on /ros/map [GET] Traceback (most recent call last): File "/home/avinash/.virtualenvs/rest_api/local/lib/python2.7/site-packages/flask/app.py", line 1950, in full_dispatch_request rv = self.dispatch_request() File "/home/avinash/.virtualenvs/rest_api/local/lib/python2.7/site-packages/flask/app.py", line 1936, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/home/avinash/.virtualenvs/rest_api/local/lib/python2.7/site-packages/flask_restful/__init__.py", line 468, in wrapper resp = resource(*args, **kwargs) File "/home/avinash/.virtualenvs/rest_api/local/lib/python2.7/site-packages/flask/views.py", line 89, in view return self.dispatch_request(*args, **kwargs) File "/home/avinash/.virtualenvs/rest_api/local/lib/python2.7/site-packages/flask_restful/__init__.py", line 583, in dispatch_request resp = meth(*args, **kwargs) File "/home/avinash/.virtualenvs/rest_api/local/lib/python2.7/site-packages/rostful/api_0_1/flask_views.py", line 174, in get msg = self.node_client.topic_extract(path) File "/home/avinash/.virtualenvs/rest_api/local/lib/python2.7/site-packages/pyros/client/client.py", line 140, in topic_extract six.reraise(PyrosServiceTimeout("Pyros Service call timed out."), None, sys.exc_info()[2]) File "/home/avinash/.virtualenvs/rest_api/local/lib/python2.7/site-packages/pyros/client/client.py", line 138, in topic_extract res = self.topic_svc.call(args=(topic_name, None,)) File "/home/avinash/.virtualenvs/rest_api/local/lib/python2.7/site-packages/pyzmp/service.py", line 148, in call raise ServiceCallTimeout("Did not receive response through ZMQ socket.") PyrosServiceTimeout: An Exception PyrosServiceTimeout('Pyros Service call timed out.',) was thrown in Pyros process 28409 ERROR:tornado.access:500 GET /ros/map (::1) 5092.51ms Please someone help me with this error. Thanks.