portainer/portainer · error
missing service name from the request payload
Error message
missing service name from the request payload
What it means
Error "missing service name from the request payload" thrown in portainer/portainer.
Source
Thrown at api/http/models/kubernetes/services.go:49
NodePort int `json:"NodePort"`
Port int `json:"Port"`
Protocol string `json:"Protocol"`
TargetPort string `json:"TargetPort"`
}
K8sServiceIngress struct {
IP string `json:"IP"`
Hostname string `json:"Hostname"`
}
// K8sServiceDeleteRequests is a mapping of namespace names to a slice of
// service names.
K8sServiceDeleteRequests map[string][]string
)
func (s *K8sServiceInfo) Validate(request *http.Request) error {
if s.Name == "" {
return errors.New("missing service name from the request payload")
}
if s.Namespace == "" {
return errors.New("missing service namespace from the request payload")
}
if s.Ports == nil {
return errors.New("missing service ports from the request payload")
}
return nil
}
func (r K8sServiceDeleteRequests) Validate(request *http.Request) error {
if len(r) == 0 {
return errors.New("missing deletion request list in payload")
}
View on GitHub (pinned to 17e74456ff)
When it happens
Trigger: Thrown at api/http/models/kubernetes/services.go:49 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of portainer/portainer@17e74456ff (2026-08-26).
Data as JSON: /api/errors/4c95efe2a5684e6d.
Report an issue: GitHub.