{"record":{"id":"194f86c4e36a4dc9","repo":"wasmerio/wasmer","slug":"please-change-the-owner-before-deploying-or-check","errorCode":null,"errorMessage":"Please, change the owner before deploying or check your current user with `{} whoami`.","messagePattern":"Please, change the owner before deploying or check your current user with `(.+?) whoami`\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/cli/src/commands/app/deploy.rs","lineNumber":532,"sourceCode":"            app_config,\n            owner,\n            original_config,\n            config_path: None,\n        })\n    }\n\n    async fn ensure_owner_access(\n        &self,\n        client: &WasmerClient,\n        owner: String,\n    ) -> anyhow::Result<String> {\n        if wasmer_backend_api::query::viewer_can_deploy_to_namespace(client, &owner).await? {\n            return Ok(owner);\n        }\n\n        eprintln!(\"It seems you don't have access to {}\", owner.bold());\n        if self.non_interactive {\n            anyhow::bail!(\n                \"Please, change the owner before deploying or check your current user with `{} whoami`.\",\n                std::env::args().next().unwrap_or(\"wasmer\".into())\n            );\n        }\n\n        let user = wasmer_backend_api::query::current_user_with_namespaces(client, None).await?;\n        let owner = crate::utils::prompts::prompt_for_namespace(\n            \"Who should own this app?\",\n            None,\n            Some(&user),\n        )?;\n\n        Ok(owner)\n    }\n}\n\n#[async_trait::async_trait]\nimpl AsyncCliCommand for CmdAppDeploy {","sourceCodeStart":514,"sourceCodeEnd":550,"githubUrl":"https://github.com/wasmerio/wasmer/blob/8c4b9ee9d33fb2068863fbb3d328683e7e6ff7f5/lib/cli/src/commands/app/deploy.rs#L514-L550","documentation":"Error \"Please, change the owner before deploying or check your current user with `{} whoami`.\" thrown in wasmerio/wasmer.","triggerScenarios":"Thrown at lib/cli/src/commands/app/deploy.rs:532 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"}