vxcontrol/pentagi · error
FlowFiles.InvalidData
FlowFiles.InvalidData
Error message
source %q must be a regular file or a directory
What it means
Error "source %q must be a regular file or a directory" thrown in vxcontrol/pentagi.
Source
Thrown at backend/pkg/server/services/flow_files.go:1798
logger.FromContext(c).WithError(resolveErr).Errorf("invalid source path %q", rawSrc)
response.Error(c, response.ErrFlowFilesInvalidData, resolveErr)
return
}
info, statErr := os.Lstat(absPath)
if statErr != nil {
if os.IsNotExist(statErr) {
response.Error(c, response.ErrFlowFilesNotFound, statErr)
return
}
logger.FromContext(c).WithError(statErr).Errorf("error stating flow source %q", rawSrc)
response.Error(c, response.ErrInternal, statErr)
return
}
if !info.IsDir() && !info.Mode().IsRegular() {
// Reject symlinks and other special files.
response.Error(c, response.ErrFlowFilesInvalidData,
fmt.Errorf("source %q must be a regular file or a directory", rawSrc))
return
}
var entryDest string
if multiSource {
// Multi-source: each entry lands under destination/<basename>.
baseName := path.Base(absPath)
var sanitizeErr error
entryDest, sanitizeErr = resources.SanitizeResourcePath(destPath + "/" + baseName)
if sanitizeErr != nil {
logger.FromContext(c).WithError(sanitizeErr).Errorf("invalid derived destination for source %q", rawSrc)
response.Error(c, response.ErrFlowFilesInvalidData, sanitizeErr)
return
}
} else {
// Single source: destination is used exactly as specified.
entryDest = destPath
}View on GitHub (pinned to ea665308ba)
When it happens
Trigger: Thrown at backend/pkg/server/services/flow_files.go:1798 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of vxcontrol/pentagi@ea665308ba (2026-09-01).
Data as JSON: /api/errors/e496a46625e01cc0.
Report an issue: GitHub.