# panic: proto: field message.id has invalid type: expected int32, got string

- **ID:** `go/grpc-protobuf-type-mismatch`
- **Domain:** go
- **Category:** type_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The protobuf message definition has a type mismatch between the generated Go struct and the actual wire data, often due to version skew.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.30.0 | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   Regenerate the Go code from the correct .proto file to ensure type consistency.
   ```
2. **** (85% success)
   ```
   Use protojson to convert between JSON and protobuf, which handles type conversions gracefully.
   ```

## Dead Ends

- **** —  (70% fail)
- **** —  (90% fail)
