{"record":{"id":"bc99b9123844d35a","repo":"temporalio/temporal","slug":"unknown-callback-state-v","errorCode":null,"errorMessage":"unknown callback state: %v","messagePattern":"unknown callback state: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"service/history/api/describeworkflow/api.go","lineNumber":421,"sourceCode":"\t\treturn nil, err\n\t}\n\n\tvar state enumspb.CallbackState\n\tswitch callback.State() {\n\tcase enumsspb.CALLBACK_STATE_UNSPECIFIED:\n\t\treturn nil, errCallbackStateUnspecified\n\tcase enumsspb.CALLBACK_STATE_STANDBY:\n\t\tstate = enumspb.CALLBACK_STATE_STANDBY\n\tcase enumsspb.CALLBACK_STATE_SCHEDULED:\n\t\tstate = enumspb.CALLBACK_STATE_SCHEDULED\n\tcase enumsspb.CALLBACK_STATE_BACKING_OFF:\n\t\tstate = enumspb.CALLBACK_STATE_BACKING_OFF\n\tcase enumsspb.CALLBACK_STATE_FAILED:\n\t\tstate = enumspb.CALLBACK_STATE_FAILED\n\tcase enumsspb.CALLBACK_STATE_SUCCEEDED:\n\t\tstate = enumspb.CALLBACK_STATE_SUCCEEDED\n\tdefault:\n\t\treturn nil, fmt.Errorf(\"unknown callback state: %v\", callback.State())\n\t}\n\n\tblockedReason := \"\"\n\tif state == enumspb.CALLBACK_STATE_SCHEDULED {\n\t\tcb := outboundQueueCBPool.Get(tasks.TaskGroupNamespaceIDAndDestination{\n\t\t\tTaskGroup:   callbacks.TaskTypeInvocation,\n\t\t\tNamespaceID: namespaceID.String(),\n\t\t\tDestination: cbSpec.GetNexus().GetUrl(),\n\t\t})\n\t\tif cb.State() != gobreaker.StateClosed {\n\t\t\tstate = enumspb.CALLBACK_STATE_BLOCKED\n\t\t\tblockedReason = \"The circuit breaker is open.\"\n\t\t}\n\t}\n\n\ttrigger := &workflowpb.CallbackInfo_Trigger{}\n\tswitch callback.Trigger.Variant.(type) {\n\tcase *persistencespb.CallbackInfo_Trigger_WorkflowClosed:","sourceCodeStart":403,"sourceCodeEnd":439,"githubUrl":"https://github.com/temporalio/temporal/blob/bde624efd13fbd3843654058db6d9c716166318b/service/history/api/describeworkflow/api.go#L403-L439","documentation":"Error \"unknown callback state: %v\" thrown in temporalio/temporal.","triggerScenarios":"Thrown at service/history/api/describeworkflow/api.go:421 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":"bde624efd13fbd3843654058db6d9c716166318b","analyzedAt":"2026-09-01T07:18:39.080Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}