{"record":{"id":"b4e8ea260f92f8bd","repo":"wasmerio/wasmer","slug":"invalid-app-identifier-s-expected-an-app-id","errorCode":null,"errorMessage":"invalid app identifier '{s}': expected an app id, but id is of type {kind}","messagePattern":"invalid app identifier '(.+?)': expected an app id, but id is of type (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/cli/src/commands/app/util.rs","lineNumber":100,"sourceCode":"    fn from_str(s: &str) -> Result<Self, Self::Err> {\n        if let Some((namespace, name)) = s.split_once('/') {\n            if namespace.is_empty() {\n                bail!(\"invalid app identifier '{s}': namespace can not be empty\");\n            }\n            if name.is_empty() {\n                bail!(\"invalid app identifier '{s}': name can not be empty\");\n            }\n\n            Ok(Self::NamespacedName(\n                namespace.to_string(),\n                name.to_string(),\n            ))\n        } else if let Ok(id) = GlobalId::parse_prefixed(s) {\n            match id.kind() {\n                NodeKind::DeployApp => Ok(Self::AppId(s.to_string())),\n                NodeKind::DeployAppVersion => Ok(Self::AppVersionId(s.to_string())),\n                _ => {\n                    bail!(\n                        \"invalid app identifier '{s}': expected an app id, but id is of type {kind}\",\n                        kind = id.kind(),\n                    );\n                }\n            }\n        } else {\n            Ok(Self::Name(s.to_string()))\n        }\n    }\n}\n\n/// Options for identifying an app.\n///\n/// Provides convenience methods for resolving an app identifier or loading it\n/// from a local app.yaml.\n///\n/// NOTE: this is a separate struct to prevent the need for copy-pasting the\n/// field docs","sourceCodeStart":82,"sourceCodeEnd":118,"githubUrl":"https://github.com/wasmerio/wasmer/blob/8c4b9ee9d33fb2068863fbb3d328683e7e6ff7f5/lib/cli/src/commands/app/util.rs#L82-L118","documentation":"Error \"invalid app identifier '{s}': expected an app id, but id is of type {kind}\" thrown in wasmerio/wasmer.","triggerScenarios":"Thrown at lib/cli/src/commands/app/util.rs:100 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":"8c4b9ee9d33fb2068863fbb3d328683e7e6ff7f5","analyzedAt":"2026-09-01T23:06:31.009Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T06:17:21.866Z"}