grpc
runtime_error
ai_generated
true
UNKNOWN: unexpected error from server
ID: grpc/status-code-mapping
78%Fix Rate
82%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 1 | active | — | — | — |
Root Cause
Server returned UNKNOWN status without proper error mapping.
genericWorkarounds
-
90% success Map server exceptions to proper gRPC status codes
-
88% success Use status.WithDetails() for structured error information
Dead Ends
Common approaches that don't work:
-
Map all errors to OK status
90% fail
Hides failures from client
-
Return stack traces in status message
82% fail
Security information leak