{"record":{"id":"2b59b30bd8da6402","repo":"portainer/portainer","slug":"failed-parsing-edgestackstatus-w","errorCode":null,"errorMessage":"failed parsing edgeStackStatus: %w","messagePattern":"failed parsing edgeStackStatus: %w","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"api/http/handler/endpoints/filter.go","lineNumber":707,"sourceCode":"\t\tif predicate(endpoint) {\n\t\t\tendpoints[n] = endpoint\n\t\t\tn++\n\t\t}\n\t}\n\n\treturn endpoints[:n]\n}\n\nfunc getEdgeStackStatusParam(r *http.Request) (*portainer.EdgeStackStatusType, error) {\n\tedgeStackStatusQuery, _ := request.RetrieveQueryParameter(r, \"edgeStackStatus\", true)\n\tif edgeStackStatusQuery == \"\" {\n\t\treturn nil, nil\n\t}\n\n\tedgeStackStatusNumber, err := strconv.Atoi(edgeStackStatusQuery)\n\tedgeStackStatus := portainer.EdgeStackStatusType(edgeStackStatusNumber)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed parsing edgeStackStatus: %w\", err)\n\t}\n\n\tif !slices.Contains([]portainer.EdgeStackStatusType{\n\t\tportainer.EdgeStackStatusPending,\n\t\tportainer.EdgeStackStatusDeploymentReceived,\n\t\tportainer.EdgeStackStatusError,\n\t\tportainer.EdgeStackStatusAcknowledged,\n\t\tportainer.EdgeStackStatusRemoved,\n\t\tportainer.EdgeStackStatusRemoteUpdateSuccess,\n\t\tportainer.EdgeStackStatusImagesPulled,\n\t\tportainer.EdgeStackStatusRunning,\n\t\tportainer.EdgeStackStatusDeploying,\n\t\tportainer.EdgeStackStatusRemoving,\n\t\tportainer.EdgeStackStatusCompleted,\n\t}, edgeStackStatus) {\n\t\treturn nil, errors.New(\"invalid edgeStackStatus parameter\")\n\t}\n","sourceCodeStart":689,"sourceCodeEnd":725,"githubUrl":"https://github.com/portainer/portainer/blob/17e74456ff6e794b9d5439ec3fa06922aa18a3f8/api/http/handler/endpoints/filter.go#L689-L725","documentation":"Error \"failed parsing edgeStackStatus: %w\" thrown in portainer/portainer.","triggerScenarios":"Thrown at api/http/handler/endpoints/filter.go:707 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"17e74456ff6e794b9d5439ec3fa06922aa18a3f8","analyzedAt":"2026-08-26T23:09:01.915Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}