getsops/sops · error
Error unmarshaling input YAML: %s
Error message
Error unmarshaling input YAML: %s
What it means
Error "Error unmarshaling input YAML: %s" thrown in getsops/sops.
Source
Thrown at stores/yaml/store.go:340
// sops.Tree runtime object
func (store *Store) LoadPlainFile(in []byte) (sops.TreeBranches, error) {
var branches sops.TreeBranches
if len(in) > 0 {
// This is needed to make the yaml-decoder check for uniqueness of keys
// Can probably be removed when https://github.com/go-yaml/yaml/issues/814 is merged.
if err := yaml.NewDecoder(bytes.NewReader(in)).Decode(make(map[string]interface{})); err != nil {
return nil, err
}
}
d := yaml.NewDecoder(bytes.NewReader(in))
for {
var data yaml.Node
err := d.Decode(&data)
if err == io.EOF {
break
}
if err != nil {
return nil, fmt.Errorf("Error unmarshaling input YAML: %s", err)
}
branch, err := store.yamlDocumentNodeToTreeBranch(data)
if err != nil {
return nil, fmt.Errorf("Error unmarshaling input YAML: %s", err)
}
branches = append(branches, branch)
}
return branches, nil
}
func (store *Store) getIndentation() (int, error) {
if store.config.Indent > 0 {
return store.config.Indent, nil
} else if store.config.Indent < 0 {
return 0, errors.New("YAML Negative indentation not accepted")
}
return IndentDefault, nilView on GitHub (pinned to 13442bb981)
When it happens
Trigger: Thrown at stores/yaml/store.go:340 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of getsops/sops@13442bb981 (2026-09-01).
Data as JSON: /api/errors/30d9a7478e4c902e.
Report an issue: GitHub.