BigPizzaV3/CodexPlusPlus · error
市场主题 {} 的{}无效
Error message
市场主题 {} 的{}无效 What it means
Validation guard in validate_market_theme: one of the theme's text fields (name <=100, version <=40, author <=100, license <=100 bytes) is empty after trimming or exceeds its byte limit. The message identifies which field (名称/版本/作者/许可证) is at fault.
Source
Thrown at crates/codex-plus-core/src/dream_skin_market.rs:214
bail!("主题市场清单包含重复 ID:{}", theme.id);
}
theme.preview_url = market_asset_url(DEFAULT_MARKET_RAW_BASE_URL, &theme.preview)?;
}
Ok(())
}
fn validate_market_theme(theme: &DreamSkinMarketTheme) -> anyhow::Result<()> {
if !valid_theme_id(&theme.id) {
bail!("主题市场包含无效 ID:{}", theme.id);
}
for (label, value, limit) in [
("名称", theme.name.as_str(), 100usize),
("版本", theme.version.as_str(), 40usize),
("作者", theme.author.as_str(), 100usize),
("许可证", theme.license.as_str(), 100usize),
] {
if value.trim().is_empty() || value.len() > limit {
bail!("市场主题 {} 的{}无效", theme.id, label);
}
}
if theme.description.len() > 500 || theme.tags.len() > 12 {
bail!("市场主题 {} 的描述或标签数量超过限制", theme.id);
}
if theme
.tags
.iter()
.any(|tag| tag.trim().is_empty() || tag.len() > 32)
{
bail!("市场主题 {} 包含无效标签", theme.id);
}
let source = reqwest::Url::parse(&theme.source_url)
.with_context(|| format!("市场主题 {} 的来源地址无效", theme.id))?;
if !matches!(source.scheme(), "http" | "https") {
bail!("市场主题 {} 的来源地址协议无效", theme.id);
}
for path in [&theme.theme, &theme.image, &theme.preview] {View on GitHub (pinned to f2074595a2)
Solutions
- Correct the named field in the market theme entry (non-empty and within its size limit)
- Report the malformed manifest entry to the market maintainer
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/codex-plus-core/src/dream_skin_market.rs:214 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BigPizzaV3/CodexPlusPlus@f2074595a2 (2026-08-23).
Data as JSON: /api/errors/e12276e6deb72822.
Report an issue: GitHub.