-
Notifications
You must be signed in to change notification settings - Fork 645
Deserialize empty protobuf list on iOS #355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, could you please give a sample of protobuf bytes so I could debug this? And definitions of |
Unfortunately the only example producing this error has 28k+ bytes in the response (and the entire I've implemented custom deserializer for this class and debug the following while loop:
Is it possible, that |
Hm, do you use |
You are correct! I managed to make the response shorter and data is indeed handled correctly on iOS as well.
|
Kotlin/kotlinx-io#36 will fix this |
Uh oh!
There was an error while loading. Please reload this page.
I have the following data class:
Protobuf deserialization (proto3) works correctly on Android and iOS if both values are not empty. If at least one list property is empty (empty list), the deserialization fails on iOS with error:
Unexpected EOF
.If empty property is commented out of data class, deserialization works on iOS as well.
The text was updated successfully, but these errors were encountered: