You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to unpack message from my socket using moshiPack sometime I got this throwable java.lang.IllegalStateException: Current tag 0x70 is not a map tag.
Steps to reproduce behaviour
//Simple example
data class Message(var action : String)
private fun unPackData(data: ByteArray) {
try {
val unpackMessage : Message = moshiPack.unpack(data)
Log.d(TAG, "Socket data" + unpackMessage.toString())
}
catch (e: Throwable) {
Log.d(TAG, "Throwable" + e.toString()) //java.lang.IllegalStateException: Current tag 0x70 is not a //map tag.
}
}
The text was updated successfully, but these errors were encountered:
Expected behaviour
Unpack without problems
Actual behaviour
When I try to unpack message from my socket using moshiPack sometime I got this throwable java.lang.IllegalStateException: Current tag 0x70 is not a map tag.
Steps to reproduce behaviour
//Simple example
data class Message(var action : String)
private fun unPackData(data: ByteArray) {
try {
val unpackMessage : Message = moshiPack.unpack(data)
Log.d(TAG, "Socket data" + unpackMessage.toString())
}
catch (e: Throwable) {
Log.d(TAG, "Throwable" + e.toString()) //java.lang.IllegalStateException: Current tag 0x70 is not a //map tag.
}
}
The text was updated successfully, but these errors were encountered: