sipeed/picoclaw · error
failed to load security config: %w
Error message
failed to load security config: %w
What it means
Error "failed to load security config: %w" thrown in sipeed/picoclaw.
Source
Thrown at pkg/config/config.go:1507
"config migrate success",
map[string]any{"from": versionInfo.Version, "to": CurrentVersion},
)
case CurrentVersion:
// Current version
cfg, err = loadConfig(data)
if err != nil {
logger.ErrorCF(
"config",
formatDiagnosticLogMessage("Failed to load config", err),
map[string]any{"path": path},
)
return nil, err
}
// Load security configuration
secPath := securityPath(path)
err = loadSecurityConfig(cfg, secPath)
if err != nil && !errors.Is(err, os.ErrNotExist) {
return nil, fmt.Errorf("failed to load security config: %w", err)
}
default:
return nil, fmt.Errorf("unsupported config version: %d", versionInfo.Version)
}
applyLegacyBindingsMigration(data, cfg)
gatewayHostBeforeEnv := cfg.Gateway.Host
if err = env.Parse(cfg); err != nil {
return nil, err
}
applySkillsRegistryEnvCompat(cfg)
if err = InitChannelList(cfg.Channels); err != nil {
return nil, err
}View on GitHub (pinned to 49183d7e8d)
When it happens
Trigger: Thrown at pkg/config/config.go:1507 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of sipeed/picoclaw@49183d7e8d (2026-08-15).
Data as JSON: /api/errors/ecf7626dc76508da.
Report an issue: GitHub.