{
  "id": "ros2/ros2-service-call-timeout-no-response",
  "signature": "rclpy: Service call timed out waiting for response from /my_service",
  "signature_zh": "rclpy: 服务调用超时，等待来自/my_service的响应",
  "regex": "Service call timed out waiting for response from /.*",
  "domain": "ros2",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "The service server is not responding within the timeout period, often because it is busy, blocked, or not properly spinning.",
  "root_cause_type": "generic",
  "root_cause_zh": "服务服务器在超时时间内没有响应，通常是因为它正忙、被阻塞或没有正确旋转。",
  "versions": [
    {
      "version": "ROS2 Humble (rclpy 3.3.0)",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "ROS2 Iron (rclpy 4.0.0)",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "ROS2 Rolling (rclpy 5.0.0)",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Increase the timeout duration in the client code",
      "why_fails": "The server may be completely unresponsive; a longer timeout just delays the failure.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "Restart the client node only",
      "why_fails": "The server node needs to be restarted or checked; client restart does not fix server issues.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Check that the server node is spinning: ensure rclpy.spin(node) is called in the server code. If using a multithreaded executor, verify it is running.",
      "success_rate": 0.85,
      "how": "Check that the server node is spinning: ensure rclpy.spin(node) is called in the server code. If using a multithreaded executor, verify it is running.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Add a retry mechanism with exponential backoff in the client: while not future.done(): time.sleep(0.1); if not rclpy.ok(): break",
      "success_rate": 0.8,
      "how": "Add a retry mechanism with exponential backoff in the client: while not future.done(): time.sleep(0.1); if not rclpy.ok(): break",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "检查服务器节点是否在旋转：确保服务器代码中调用了rclpy.spin(node)。如果使用多线程执行器，请验证它正在运行。",
    "在客户端中添加带有指数退避的重试机制：while not future.done(): time.sleep(0.1); if not rclpy.ok(): break"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.ros2.org/latest/api/rclpy/api/services.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2023-11-12",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}