{"record":{"id":"23350976bccaef43","repo":"dapr/dapr","slug":"failed-to-unmarshal-history-signature-from-state-k","errorCode":null,"errorMessage":"failed to unmarshal history signature from state key '%s': %w","messagePattern":"failed to unmarshal history signature from state key '(.+?)': %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/runtime/wfengine/state/state.go","lineNumber":937,"sourceCode":"\t\t}\n\t\treturn wState, wferrors.NewVerificationError(err)\n\t}\n\n\tfor i := range metadata.GetSignatureLength() {\n\t\tkey = getMultiEntryKeyName(signatureKeyPrefix, i)\n\t\tif bulkRes[key].Data == nil {\n\t\t\tif hasTamperMarker(wState) {\n\t\t\t\treturn wState, nil\n\t\t\t}\n\t\t\treturn wState, wferrors.NewVerificationError(\n\t\t\t\tfmt.Errorf(\"signature state key '%s' declared in metadata but not found in state store — possible tampering\", key),\n\t\t\t)\n\t\t}\n\n\t\tvar sig backend.HistorySignature\n\t\terr = proto.Unmarshal(bulkRes[key].Data, &sig)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"failed to unmarshal history signature from state key '%s': %w\", key, err)\n\t\t}\n\n\t\twState.Signatures = append(wState.Signatures, &sig)\n\t\traw := make([]byte, len(bulkRes[key].Data))\n\t\tcopy(raw, bulkRes[key].Data)\n\t\twState.RawSignatures = append(wState.RawSignatures, raw)\n\t}\n\n\tif bulkRes[customStatusKey].ETag != nil {\n\t\twState.customStatusPersisted = true\n\t}\n\tif len(bulkRes[customStatusKey].Data) > 0 {\n\t\twState.CustomStatus = &wrapperspb.StringValue{}\n\n\t\terr = proto.Unmarshal(bulkRes[customStatusKey].Data, wState.CustomStatus)\n\t\tif err != nil {\n\t\t\t// Fallback to JSON unmarshaling\n\t\t\tvar customStatusValue string","sourceCodeStart":919,"sourceCodeEnd":955,"githubUrl":"https://github.com/dapr/dapr/blob/74ad41702745709bb15fe2114ff693b8c59bc3cc/pkg/runtime/wfengine/state/state.go#L919-L955","documentation":"Error \"failed to unmarshal history signature from state key '%s': %w\" thrown in dapr/dapr.","triggerScenarios":"Thrown at pkg/runtime/wfengine/state/state.go:937 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":"74ad41702745709bb15fe2114ff693b8c59bc3cc","analyzedAt":"2026-08-16T04:22:26.543Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}