{"action":"created","issue":{"url":"https://api.github.com/repos/strands-project/strands_executive/issues/157","labels_url":"https://api.github.com/repos/strands-project/strands_executive/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/strands-project/strands_executive/issues/157/comments","events_url":"https://api.github.com/repos/strands-project/strands_executive/issues/157/events","html_url":"https://github.com/strands-project/strands_executive/issues/157","id":66619197,"number":157,"title":"demand task: 'NoneType' object has no attribute 'close'","user":{"login":"bfalacerda","id":4320588,"avatar_url":"https://avatars.githubusercontent.com/u/4320588?v=3","gravatar_id":"","url":"https://api.github.com/users/bfalacerda","html_url":"https://github.com/bfalacerda","followers_url":"https://api.github.com/users/bfalacerda/followers","following_url":"https://api.github.com/users/bfalacerda/following{/other_user}","gists_url":"https://api.github.com/users/bfalacerda/gists{/gist_id}","starred_url":"https://api.github.com/users/bfalacerda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bfalacerda/subscriptions","organizations_url":"https://api.github.com/users/bfalacerda/orgs","repos_url":"https://api.github.com/users/bfalacerda/repos","events_url":"https://api.github.com/users/bfalacerda/events{/privacy}","received_events_url":"https://api.github.com/users/bfalacerda/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-04-06T14:42:47Z","updated_at":"2015-04-08T07:49:03Z","closed_at":null,"body":"I see this happening once in a while in the routine window:\r\n\r\n```\r\n[INFO] [WallTime: 1428330625.937214] Idle for too long, going to charging point\r\n[INFO] [WallTime: 1428330665.942632] Idle for too long, going to charging point\r\n[ERROR] [WallTime: 1428330666.034750] bad callback: <bound method RobotRoutine._check_idle of <routine_behaviours.robot_routine.RobotRoutine object at 0x7f57c34187d0>>\r\nTraceback (most recent call last):\r\n  File \"/opt/ros/indigo/lib/python2.7/dist-packages/rospy/topics.py\", line 702, in _invoke_callback\r\n    cb(msg)\r\n  File \"/opt/ros/indigo/lib/python2.7/dist-packages/routine_behaviours/robot_routine.py\", line 195, in _check_idle\r\n    self.on_idle()\r\n  File \"/opt/ros/indigo/lib/python2.7/dist-packages/routine_behaviours/robot_routine.py\", line 338, in on_idle\r\n    self.demand_charge(self.idle_charge_duration)\r\n  File \"/opt/ros/indigo/lib/python2.7/dist-packages/routine_behaviours/robot_routine.py\", line 294, in demand_charge\r\n    self.demand_task(charge_task)\r\n  File \"/opt/ros/indigo/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py\", line 435, in __call__\r\n    return self.call(*args, **kwds)\r\n  File \"/opt/ros/indigo/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py\", line 515, in call\r\n    responses = transport.receive_once()\r\n  File \"/opt/ros/indigo/lib/python2.7/dist-packages/rospy/impl/tcpros_base.py\", line 696, in receive_once\r\n    p.read_messages(b, msg_queue, sock)\r\n  File \"/opt/ros/indigo/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py\", line 353, in read_messages\r\n    self._read_ok_byte(b, sock)\r\n  File \"/opt/ros/indigo/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py\", line 336, in _read_ok_byte\r\n    raise ServiceException(\"service [%s] responded with an error: %s\"%(self.resolved_name, str))\r\nServiceException: service [/task_executor/demand_task] responded with an error: error processing request: 'NoneType' object has no attribute 'close'\r\n\r\n[INFO] [WallTime: 1428330705.952216] Idle for too long, going to charging point\r\n[INFO] [WallTime: 1428330745.958532] Idle for too long, going to charging point\r\n```"},"comment":{"url":"https://api.github.com/repos/strands-project/strands_executive/issues/comments/90833758","html_url":"https://github.com/strands-project/strands_executive/issues/157#issuecomment-90833758","issue_url":"https://api.github.com/repos/strands-project/strands_executive/issues/157","id":90833758,"user":{"login":"hawesie","id":927289,"avatar_url":"https://avatars.githubusercontent.com/u/927289?v=3","gravatar_id":"","url":"https://api.github.com/users/hawesie","html_url":"https://github.com/hawesie","followers_url":"https://api.github.com/users/hawesie/followers","following_url":"https://api.github.com/users/hawesie/following{/other_user}","gists_url":"https://api.github.com/users/hawesie/gists{/gist_id}","starred_url":"https://api.github.com/users/hawesie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hawesie/subscriptions","organizations_url":"https://api.github.com/users/hawesie/orgs","repos_url":"https://api.github.com/users/hawesie/repos","events_url":"https://api.github.com/users/hawesie/events{/privacy}","received_events_url":"https://api.github.com/users/hawesie/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T07:49:03Z","updated_at":"2015-04-08T07:49:03Z","body":"I'll try and fix this today."}}