{"record":{"id":"6d9a881c708269b7","repo":"tinyhumansai/openhuman","slug":"missing-value-for-host","errorCode":null,"errorMessage":"missing value for --host","messagePattern":"missing value for --host","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/core/cli.rs","lineNumber":384,"sourceCode":"    let mut i = 0usize;\n\n    // Manual argument parsing loop for specific flags.\n    while i < args.len() {\n        match args[i].as_str() {\n            \"--port\" => {\n                let raw = args\n                    .get(i + 1)\n                    .ok_or_else(|| anyhow::anyhow!(\"missing value for --port\"))?;\n                port = Some(\n                    raw.parse::<u16>()\n                        .map_err(|e| anyhow::anyhow!(\"invalid --port: {e}\"))?,\n                );\n                i += 2;\n            }\n            \"--host\" => {\n                host = Some(\n                    args.get(i + 1)\n                        .ok_or_else(|| anyhow::anyhow!(\"missing value for --host\"))?\n                        .clone(),\n                );\n                i += 2;\n            }\n            \"--jsonrpc-only\" => {\n                socketio_enabled = false;\n                i += 1;\n            }\n            \"--headless-api\" => {\n                socketio_enabled = false;\n                headless_api = true;\n                i += 1;\n            }\n            \"-v\" | \"--verbose\" => {\n                verbose = true;\n                i += 1;\n            }\n            \"-h\" | \"--help\" => {","sourceCodeStart":366,"sourceCodeEnd":402,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/cli.rs#L366-L402","documentation":"Sentinel anyhow error from the manual CLI argument parser for `openhuman serve` (or equivalent): the --host flag was the last token in args, so args.get(i + 1) returned None. It is purely a usage error — nothing was started. The parser consumes flag-plus-value pairs with i += 2, so a trailing flag with no value hits this branch.","triggerScenarios":"Thrown at src/core/cli.rs:384 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Append a host value, e.g. `openhuman run --host 127.0.0.1`","Omit --host to use the default (127.0.0.1 or OPENHUMAN_CORE_HOST)"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}