Troubleshooting
This page covers common issues and debugging techniques for Apache Fory™ Rust.
Common Issues
Type Registry Errors
Error: TypeId ... not found in type_info registry
Cause: The type was never registered with the current Fory instance.
Solution: Register the type before serialization:
let mut fory = Fory::default();
fory.register::<MyStruct>(100)?; // Register before use
Confirm that:
- Every serializable struct or trait implementation calls
fory.register::<T>(type_id) - The same IDs are reused on the deserialize side
Type Mismatch Errors
Cause: Field types are incompatible or schema has changed.
Solution:
- Enable compatible mode for schema evolution
- Ensure field types match across versions
let fory = Fory::default().compatible(true);