rogchap / wombat

Cross platform gRPC client
MIT License
1.39k stars 52 forks source link

State loaded from DB is a miss-match with loaded descriptor causes error #43

Closed rogchap closed 3 years ago

rogchap commented 3 years ago
image

This happens when a breaking change is made to a proto, but the DB still loads up a field that is no longer valid.

There are two possible fixes:

  1. Make sure state loaded from DB matches the current method descriptor before sending to frontend
  2. Ignore unknown fields when unmarshaling from the frontend (may not be possible, and may have undesired side effects)