# ros2 service call /my_service my_msgs/srv/MyService "{}" --timeout 5: Service call timed out after 5 seconds

- **ID:** `ros2/ros2cli-service-call-timeout`
- **Domain:** ros2
- **Category:** network_error
- **Verification:** ai_generated
- **Fix Rate:** 90%

## Root Cause

The service server is not running, or the network latency exceeds the timeout value due to high load or QoS settings.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| ros2-humble | active | — | — |
| ros2-iron | active | — | — |
| ros2-rolling | active | — | — |

## Workarounds

1. **Check if the service server node is running: ros2 node list | grep my_service_server. If not, launch the server node.** (95% success)
   ```
   Check if the service server node is running: ros2 node list | grep my_service_server. If not, launch the server node.
   ```
2. **Use 'ros2 service type /my_service' to verify the service type matches; if mismatch, correct the service type in the call.** (90% success)
   ```
   Use 'ros2 service type /my_service' to verify the service type matches; if mismatch, correct the service type in the call.
   ```

## Dead Ends

- **** — If the server is not running, it will never respond; timeout just delays failure detection. (80% fail)
- **** — Service list may show stale entries; the server may have crashed after discovery. (50% fail)
