router-for-me/CLIProxyAPI · error
plugin_config_encode_failed
plugin_config_encode_failed
Error message
%s: %w
What it means
Error "%s: %w" thrown in router-for-me/CLIProxyAPI.
Source
Thrown at internal/api/handlers/management/plugins.go:633
}
}
func yamlNodeToJSONValue(node *yaml.Node) (any, error) {
if node == nil {
return nil, nil
}
switch node.Kind {
case yaml.MappingNode:
out := make(map[string]any, len(node.Content)/2)
for index := 0; index+1 < len(node.Content); index += 2 {
key := node.Content[index]
value := node.Content[index+1]
if key == nil {
continue
}
child, errChild := yamlNodeToJSONValue(value)
if errChild != nil {
return nil, fmt.Errorf("%s: %w", key.Value, errChild)
}
out[key.Value] = child
}
return out, nil
case yaml.SequenceNode:
out := make([]any, 0, len(node.Content))
for _, childNode := range node.Content {
child, errChild := yamlNodeToJSONValue(childNode)
if errChild != nil {
return nil, errChild
}
out = append(out, child)
}
return out, nil
case yaml.ScalarNode:
if node.Tag == "!!str" || node.Tag == "" {
return node.Value, nil
}View on GitHub (pinned to 78f0c4079e)
Solutions
- Inspect the prefixed operation name and wrapped error to identify which plugin operation failed.
- Retry the plugin operation after fixing the underlying cause reported in the wrapped error.
When it happens
Trigger: Thrown at internal/api/handlers/management/plugins.go:633 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of router-for-me/CLIProxyAPI@78f0c4079e (2026-08-15).
Data as JSON: /api/errors/6c48a8c1f042190a.
Report an issue: GitHub.