{"record":{"id":"ac8357524f64f519","repo":"ruvnet/RuView","slug":"command-execution-error-e","errorCode":null,"errorMessage":"Command execution error: {e}","messagePattern":"Command execution error: (.+?)","errorType":"exception","errorClass":"RouterConnectionError","httpStatus":null,"severity":"error","filePath":"archive/v1/src/hardware/router_interface.py","lineNumber":135,"sourceCode":"        \n        # Retry mechanism for temporary failures\n        for attempt in range(self.max_retries):\n            try:\n                result = await self.ssh_client.run(command, timeout=self.command_timeout)\n                \n                if result.returncode != 0:\n                    raise RouterConnectionError(f\"Command failed: {result.stderr}\")\n                \n                return result.stdout\n                \n            except ConnectionError as e:\n                if attempt < self.max_retries - 1:\n                    self.logger.warning(f\"Command attempt {attempt + 1} failed, retrying: {e}\")\n                    await asyncio.sleep(self.retry_delay)\n                else:\n                    raise RouterConnectionError(f\"Command execution failed after {self.max_retries} retries: {e}\")\n            except Exception as e:\n                raise RouterConnectionError(f\"Command execution error: {e}\")\n    \n    async def get_csi_data(self) -> CSIData:\n        \"\"\"Retrieve CSI data from router.\n        \n        Returns:\n            CSI data structure\n            \n        Raises:\n            RouterConnectionError: If data retrieval fails\n        \"\"\"\n        try:\n            response = await self.execute_command(\"iwlist scan | grep CSI\")\n            return self._parse_csi_response(response)\n        except Exception as e:\n            raise RouterConnectionError(f\"Failed to retrieve CSI data: {e}\")\n    \n    async def get_router_status(self) -> Dict[str, Any]:\n        \"\"\"Get router system status.","sourceCodeStart":117,"sourceCodeEnd":153,"githubUrl":"https://github.com/ruvnet/RuView/blob/4685618388a5e49fad5b3005806f3bdd6a7c25c3/archive/v1/src/hardware/router_interface.py#L117-L153","documentation":"Error \"Command execution error: {e}\" thrown in ruvnet/RuView.","triggerScenarios":"Thrown at archive/v1/src/hardware/router_interface.py:135 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4685618388a5e49fad5b3005806f3bdd6a7c25c3","analyzedAt":"2026-08-16T06:09:40.886Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}