wasmerio/wasmer · error

invalid app identifier '{s}': namespace can not be empty

Error message

invalid app identifier '{s}': namespace can not be empty

What it means

Error "invalid app identifier '{s}': namespace can not be empty" thrown in wasmerio/wasmer.

Source

Thrown at lib/cli/src/commands/app/util.rs:85

impl std::fmt::Display for AppIdent {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            AppIdent::AppId(id) => write!(f, "{id}"),
            AppIdent::AppVersionId(id) => write!(f, "{id}"),
            AppIdent::NamespacedName(namespace, name) => write!(f, "{namespace}/{name}"),
            AppIdent::Name(name) => write!(f, "{name}"),
        }
    }
}

impl std::str::FromStr for AppIdent {
    type Err = anyhow::Error;

    fn from_str(s: &str) -> Result<Self, Self::Err> {
        if let Some((namespace, name)) = s.split_once('/') {
            if namespace.is_empty() {
                bail!("invalid app identifier '{s}': namespace can not be empty");
            }
            if name.is_empty() {
                bail!("invalid app identifier '{s}': name can not be empty");
            }

            Ok(Self::NamespacedName(
                namespace.to_string(),
                name.to_string(),
            ))
        } else if let Ok(id) = GlobalId::parse_prefixed(s) {
            match id.kind() {
                NodeKind::DeployApp => Ok(Self::AppId(s.to_string())),
                NodeKind::DeployAppVersion => Ok(Self::AppVersionId(s.to_string())),
                _ => {
                    bail!(
                        "invalid app identifier '{s}': expected an app id, but id is of type {kind}",
                        kind = id.kind(),
                    );

View on GitHub (pinned to 8c4b9ee9d3)

When it happens

Trigger: Thrown at lib/cli/src/commands/app/util.rs:85 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of wasmerio/wasmer@8c4b9ee9d3 (2026-09-01). Data as JSON: /api/errors/3043cbc650a1ac9a. Report an issue: GitHub.