ZPC crash with Terminate called after throwing an instance of 'nlohmann::detail::type_error' #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If ConfigurationParameters::Info has characters > 0x7F like Degree sign 0xb0, or cent sign 0xa2,
ZPC will crash
Example device is Zooz 4-in-1 sensor
terminate called after throwing an instance of 'nlohmann::detail::type_error'
what(): [json.exception.type_error.316] invalid UTF-8 byte at index 17: 0xA2
Aborted
catch exception, replace character and contiue:
[dotdot_mqtt] by-unid ConfigurationParameters::Info: Unable to parse JSON payload: [json.exception.type_error.316] invalid UTF-8 byte at index 17: 0xA2
[dotdot_mqtt] by-unid ConfigurationParameters::Info: Unable to parse JSON payload: [json.exception.type_error.316] invalid UTF-8 byte at index 17: 0xA2