The reason for the crash is because there seems to be some plugin (we don't know which one) that is modifying the structure of that json, returning something like this, instead of the json above:
Log a Sentry error whenever a IllegalStateException or JsonParseException happen in this context, to keep track of when this is happening without making the app crash.
We are experiencing some crashes when attempting to parse the following json section from a product model:
The reason for the crash is because there seems to be some plugin (we don't know which one) that is modifying the structure of that json, returning something like this, instead of the json above:
This causes the following code to crash, because we are only catching
JsonParseException
.The idea of this issue is 2 things:
IllegalStateException
as wellIllegalStateException
orJsonParseException
happen in this context, to keep track of when this is happening without making the app crash.