{"record":{"id":"2a8bec59a8fe6708","repo":"thanos-io/thanos","slug":"failed-to-unqote-v-in-order-to-unmarshal-as-par","errorCode":null,"errorMessage":"failed to unqote %v, in order to unmarshal as 'partial_response_strategy'. Possible values are %s","messagePattern":"failed to unqote (.+?), in order to unmarshal as 'partial_response_strategy'\\. Possible values are (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/store/storepb/custom.go","lineNumber":343,"sourceCode":"\t\treturn 1\n\t}\n\tif m == nil {\n\t\treturn -1\n\t}\n\n\tif m.Type < b.Type {\n\t\treturn 1\n\t}\n\tif m.Type > b.Type {\n\t\treturn -1\n\t}\n\treturn bytes.Compare(m.Data, b.Data)\n}\n\nfunc (x *PartialResponseStrategy) UnmarshalJSON(entry []byte) error {\n\tfieldStr, err := strconv.Unquote(string(entry))\n\tif err != nil {\n\t\treturn errors.Wrapf(\n\t\t\terr,\n\t\t\t\"failed to unqote %v, in order to unmarshal as 'partial_response_strategy'. Possible values are %s\", string(entry), strings.Join(PartialResponseStrategyValues, \",\"),\n\t\t)\n\t}\n\n\tif fieldStr == \"\" {\n\t\t// NOTE: For Rule default is abort as this is recommended for alerting.\n\t\t*x = PartialResponseStrategy_ABORT\n\t\treturn nil\n\t}\n\n\tstrategy, ok := PartialResponseStrategy_value[strings.ToUpper(fieldStr)]\n\tif !ok {\n\t\treturn errors.Errorf(\n\t\t\t\"failed to unmarshal %v as 'partial_response_strategy'. Possible values are %s\",\n\t\t\tstring(entry),\n\t\t\tstrings.Join(PartialResponseStrategyValues, \",\"),\n\t\t)","sourceCodeStart":325,"sourceCodeEnd":361,"githubUrl":"https://github.com/thanos-io/thanos/blob/35b8b991177def87ed52dcf10f9b6d87f07282c8/pkg/store/storepb/custom.go#L325-L361","documentation":"strconv.Unquote failed on the raw JSON bytes for the partial_response_strategy field, meaning the entry is not a valid quoted Go/JSON string (e.g. stray quotes, wrong quoting, control characters). The input at fault is the serialized rule/flag value being unmarshalled, and the message lists the accepted values.","triggerScenarios":"Thrown at pkg/store/storepb/custom.go:343 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the JSON/YAML source so the field is a properly quoted string","Use one of the documented values: abort or partial","If editing by hand, validate the file with a JSON linter before reloading"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"35b8b991177def87ed52dcf10f9b6d87f07282c8","analyzedAt":"2026-09-07T01:49:59.689Z","contentChangedAt":"2026-09-07T01:49:59.689Z","schemaVersion":2},"datasetVersion":"2026-09-15T23:17:13.987Z"}