Skip to content
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

Bug: Serializes WRAP manifests to invalid MessagePack bytes #4

Open
krisbitney opened this issue Jul 28, 2023 · 0 comments
Open

Bug: Serializes WRAP manifests to invalid MessagePack bytes #4

krisbitney opened this issue Jul 28, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@krisbitney
Copy link

krisbitney commented Jul 28, 2023

Both the filesystem and http plugin wrap.info manifests are serialized incorrectly. I get the attached error when attempting to deserialize the filesystem plugin's wrap.info manifest. The reason "unknown map type: -56" refers to a MsgPack map, not to Polywrap's GenericMap type.

ChatGPT can understand and deserialize MsgPack bytes. I recommend asking ChatGPT to compare MessagePack byte arrays output by the polywrap_msgpack and polywrap_msgpack_serde packages. The two packages produce different serialization output. The output from polywrap_msgpack can be deserialized by the Kotlin MessagePack implementation, while the output from polywrap_msgpack_serde cannot.

Abridged for readability:

com.ensarsarajcic.kotlinx.serialization.msgpack.exceptions.MsgPackSerializationException: MsgPack Serialization failure while serializing: c808...2e31
Reason: Unknown map type: -56

Full exception:

com.ensarsarajcic.kotlinx.serialization.msgpack.exceptions.MsgPackSerializationException: MsgPack Serialization failure while serializing: c808de0183a9656e756d547970657391c75b0183a9636f6e7374616e747399a54153434949a455544638a755544631364c45a455435332a6424153453634a942415345363455524ca64c4154494e31a642494e415259a3484558a46b696e6408a474797065a8456e636f64696e67aa6d6f64756c6554797065c808590183a46b696e64cc80a76d6574686f647397c7f90186a9617267756d656e747391c7580185a46b696e6422a46e616d65a470617468a87265717569726564c3a67363616c6172c7270184a46b696e6404a46e616d65a470617468a87265717569726564c3a474797065a6537472696e67a474797065a6537472696e67a46b696e6440a46e616d65a87265616446696c65a87265717569726564c3a672657475726ec75e0185a46b696e6422a46e616d65a87265616446696c65a87265717569726564c3a67363616c6172c72a0184a46b696e6404a46e616d65a87265616446696c65a87265717569726564c3a474797065a54279746573a474797065a54279746573a474797065a64d6574686f64c801660186a9617267756d656e747392c7580185a46b696e6422a46e616d65a470617468a87265717569726564c3a67363616c6172c7270184a46b696e6404a46e616d65a470617468a87265717569726564c3a474797065a6537472696e67a474797065a6537472696e67c7500184a4656e756dc7250183a46b696e64cd4000a46e616d65a8656e636f64696e67a474797065a8456e636f64696e67a46b696e6422a46e616d65a8656e636f64696e67a474797065a8456e636f64696e67a46b696e6440a46e616d65b07265616446696c654173537472696e67a87265717569726564c3a672657475726ec7700185a46b696e6422a46e616d65b07265616446696c654173537472696e67a87265717569726564c3a67363616c6172c7330184a46b696e6404a46e616d65b07265616446696c654173537472696e67a87265717569726564c3a474797065a6537472696e67a474797065a6537472696e67a474797065a64d6574686f64c7f70186a9617267756d656e747391c7580185a46b696e6422a46e616d65a470617468a87265717569726564c3a67363616c6172c7270184a46b696e6404a46e616d65a470617468a87265717569726564c3a474797065a6537472696e67a474797065a6537472696e67a46b696e6440a46e616d65a6657869737473a87265717569726564c3a672657475726ec75e0185a46b696e6422a46e616d65a6657869737473a87265717569726564c3a67363616c6172c72a0184a46b696e6404a46e616d65a6657869737473a87265717569726564c3a474797065a7426f6f6c65616ea474797065a7426f6f6c65616ea474797065a64d6574686f64c801450186a9617267756d656e747392c7580185a46b696e6422a46e616d65a470617468a87265717569726564c3a67363616c6172c7270184a46b696e6404a46e616d65a470617468a87265717569726564c3a474797065a6537472696e67a474797065a6537472696e67c7560185a46b696e6422a46e616d65a464617461a87265717569726564c3a67363616c6172c7260184a46b696e6404a46e616d65a464617461a87265717569726564c3a474797065a54279746573a474797065a54279746573a46b696e6440a46e616d65a9777269746546696c65a87265717569726564c3a672657475726ec7500184a46b696e6422a46e616d65a9777269746546696c65a67363616c6172c7230183a46b696e6404a46e616d65a9777269746546696c65a474797065a7426f6f6c65616ea474797065a7426f6f6c65616ea474797065a64d6574686f64c801330186a9617267756d656e747392c7580185a46b696e6422a46e616d65a470617468a87265717569726564c3a67363616c6172c7270184a46b696e6404a46e616d65a470617468a87265717569726564c3a474797065a6537472696e67a474797065a6537472696e67c7500184a46b696e6422a46e616d65a9726563757273697665a67363616c6172c7230183a46b696e6404a46e616d65a9726563757273697665a474797065a7426f6f6c65616ea474797065a7426f6f6c65616ea46b696e6440a46e616d65a56d6b646972a87265717569726564c3a672657475726ec7480184a46b696e6422a46e616d65a56d6b646972a67363616c6172c71f0183a46b696e6404a46e616d65a56d6b646972a474797065a7426f6f6c65616ea474797065a7426f6f6c65616ea474797065a64d6574686f64c801750186a9617267756d656e747393c7580185a46b696e6422a46e616d65a470617468a87265717569726564c3a67363616c6172c7270184a46b696e6404a46e616d65a470617468a87265717569726564c3a474797065a6537472696e67a474797065a6537472696e67c7500184a46b696e6422a46e616d65a9726563757273697665a67363616c6172c7230183a46b696e6404a46e616d65a9726563757273697665a474797065a7426f6f6c65616ea474797065a7426f6f6c65616ec7480184a46b696e6422a46e616d65a5666f726365a67363616c6172c71f0183a46b696e6404a46e616d65a5666f726365a474797065a7426f6f6c65616ea474797065a7426f6f6c65616ea46b696e6440a46e616d65a2726da87265717569726564c3a672657475726ec7420184a46b696e6422a46e616d65a2726da67363616c6172c71c0183a46b696e6404a46e616d65a2726da474797065a7426f6f6c65616ea474797065a7426f6f6c65616ea474797065a64d6574686f64c7e00186a9617267756d656e747391c7580185a46b696e6422a46e616d65a470617468a87265717569726564c3a67363616c6172c7270184a46b696e6404a46e616d65a470617468a87265717569726564c3a474797065a6537472696e67a474797065a6537472696e67a46b696e6440a46e616d65a5726d646972a87265717569726564c3a672657475726ec7480184a46b696e6422a46e616d65a5726d646972a67363616c6172c71f0183a46b696e6404a46e616d65a5726d646972a474797065a7426f6f6c65616ea474797065a7426f6f6c65616ea474797065a64d6574686f64a474797065a64d6f64756c65a776657273696f6ea3302e31
Reason: Unknown map type: -56
Current position:

c8[8][-34, 1, -125, -87, 101, 110, 117, 109, 84, 121, 112, 101, 115, -111, -57, 91, 1, -125, -87, 99, 111, 110, 115, 116, 97, 110, 116, 115, -103, -91, 65, 83, 67, 73, 73, -92, 85, 84, 70, 56, -89, 85, 84, 70, 49, 54, 76, 69, -92, 85, 67, 83, 50, -90, 66, 65, 83, 69, 54, 52, -87, 66, 65, 83, 69, 54, 52, 85, 82, 76, -90, 76, 65, 84, 73, 78, 49, -90, 66, 73, 78, 65, 82, 89, -93, 72, 69, 88, -92, 107, 105, 110, 100, 8, -92, 116, 121, 112, 101, -88, 69, 110, 99, 111, 100, 105, 110, 103, -86, 109, 111, 100, 117, 108, 101, 84, 121, 112, 101, -56, 8, 89, 1, -125, -92, 107, 105, 110, 100, -52, -128, -89, 109, 101, 116, 104, 111, 100, 115, -105, -57, -7, 1, -122, -87, 97, 114, 103, 117, 109, 101, 110, 116, 115, -111, -57, 88, 1, -123, -92, 107, 105, 110, 100, 34, -92, 110, 97, 109, 101, -92, 112, 97, 116, 104, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -90, 115, 99, 97, 108, 97, 114, -57, 39, 1, -124, -92, 107, 105, 110, 100, 4, -92, 110, 97, 109, 101, -92, 112, 97, 116, 104, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -92, 116, 121, 112, 101, -90, 83, 116, 114, 105, 110, 103, -92, 116, 121, 112, 101, -90, 83, 116, 114, 105, 110, 103, -92, 107, 105, 110, 100, 64, -92, 110, 97, 109, 101, -88, 114, 101, 97, 100, 70, 105, 108, 101, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -90, 114, 101, 116, 117, 114, 110, -57, 94, 1, -123, -92, 107, 105, 110, 100, 34, -92, 110, 97, 109, 101, -88, 114, 101, 97, 100, 70, 105, 108, 101, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -90, 115, 99, 97, 108, 97, 114, -57, 42, 1, -124, -92, 107, 105, 110, 100, 4, -92, 110, 97, 109, 101, -88, 114, 101, 97, 100, 70, 105, 108, 101, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -92, 116, 121, 112, 101, -91, 66, 121, 116, 101, 115, -92, 116, 121, 112, 101, -91, 66, 121, 116, 101, 115, -92, 116, 121, 112, 101, -90, 77, 101, 116, 104, 111, 100, -56, 1, 102, 1, -122, -87, 97, 114, 103, 117, 109, 101, 110, 116, 115, -110, -57, 88, 1, -123, -92, 107, 105, 110, 100, 34, -92, 110, 97, 109, 101, -92, 112, 97, 116, 104, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -90, 115, 99, 97, 108, 97, 114, -57, 39, 1, -124, -92, 107, 105, 110, 100, 4, -92, 110, 97, 109, 101, -92, 112, 97, 116, 104, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -92, 116, 121, 112, 101, -90, 83, 116, 114, 105, 110, 103, -92, 116, 121, 112, 101, -90, 83, 116, 114, 105, 110, 103, -57, 80, 1, -124, -92, 101, 110, 117, 109, -57, 37, 1, -125, -92, 107, 105, 110, 100, -51, 64, 0, -92, 110, 97, 109, 101, -88, 101, 110, 99, 111, 100, 105, 110, 103, -92, 116, 121, 112, 101, -88, 69, 110, 99, 111, 100, 105, 110, 103, -92, 107, 105, 110, 100, 34, -92, 110, 97, 109, 101, -88, 101, 110, 99, 111, 100, 105, 110, 103, -92, 116, 121, 112, 101, -88, 69, 110, 99, 111, 100, 105, 110, 103, -92, 107, 105, 110, 100, 64, -92, 110, 97, 109, 101, -80, 114, 101, 97, 100, 70, 105, 108, 101, 65, 115, 83, 116, 114, 105, 110, 103, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -90, 114, 101, 116, 117, 114, 110, -57, 112, 1, -123, -92, 107, 105, 110, 100, 34, -92, 110, 97, 109, 101, -80, 114, 101, 97, 100, 70, 105, 108, 101, 65, 115, 83, 116, 114, 105, 110, 103, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -90, 115, 99, 97, 108, 97, 114, -57, 51, 1, -124, -92, 107, 105, 110, 100, 4, -92, 110, 97, 109, 101, -80, 114, 101, 97, 100, 70, 105, 108, 101, 65, 115, 83, 116, 114, 105, 110, 103, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -92, 116, 121, 112, 101, -90, 83, 116, 114, 105, 110, 103, -92, 116, 121, 112, 101, -90, 83, 116, 114, 105, 110, 103, -92, 116, 121, 112, 101, -90, 77, 101, 116, 104, 111, 100, -57, -9, 1, -122, -87, 97, 114, 103, 117, 109, 101, 110, 116, 115, -111, -57, 88, 1, -123, -92, 107, 105, 110, 100, 34, -92, 110, 97, 109, 101, -92, 112, 97, 116, 104, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -90, 115, 99, 97, 108, 97, 114, -57, 39, 1, -124, -92, 107, 105, 110, 100, 4, -92, 110, 97, 109, 101, -92, 112, 97, 116, 104, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -92, 116, 121, 112, 101, -90, 83, 116, 114, 105, 110, 103, -92, 116, 121, 112, 101, -90, 83, 116, 114, 105, 110, 103, -92, 107, 105, 110, 100, 64, -92, 110, 97, 109, 101, -90, 101, 120, 105, 115, 116, 115, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -90, 114, 101, 116, 117, 114, 110, -57, 94, 1, -123, -92, 107, 105, 110, 100, 34, -92, 110, 97, 109, 101, -90, 101, 120, 105, 115, 116, 115, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -90, 115, 99, 97, 108, 97, 114, -57, 42, 1, -124, -92, 107, 105, 110, 100, 4, -92, 110, 97, 109, 101, -90, 101, 120, 105, 115, 116, 115, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -92, 116, 121, 112, 101, -89, 66, 111, 111, 108, 101, 97, 110, -92, 116, 121, 112, 101, -89, 66, 111, 111, 108, 101, 97, 110, -92, 116, 121, 112, 101, -90, 77, 101, 116, 104, 111, 100, -56, 1, 69, 1, -122, -87, 97, 114, 103, 117, 109, 101, 110, 116, 115, -110, -57, 88, 1, -123, -92, 107, 105, 110, 100, 34, -92, 110, 97, 109, 101, -92, 112, 97, 116, 104, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -90, 115, 99, 97, 108, 97, 114, -57, 39, 1, -124, -92, 107, 105, 110, 100, 4, -92, 110, 97, 109, 101, -92, 112, 97, 116, 104, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -92, 116, 121, 112, 101, -90, 83, 116, 114, 105, 110, 103, -92, 116, 121, 112, 101, -90, 83, 116, 114, 105, 110, 103, -57, 86, 1, -123, -92, 107, 105, 110, 100, 34, -92, 110, 97, 109, 101, -92, 100, 97, 116, 97, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -90, 115, 99, 97, 108, 97, 114, -57, 38, 1, -124, -92, 107, 105, 110, 100, 4, -92, 110, 97, 109, 101, -92, 100, 97, 116, 97, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -92, 116, 121, 112, 101, -91, 66, 121, 116, 101, 115, -92, 116, 121, 112, 101, -91, 66, 121, 116, 101, 115, -92, 107, 105, 110, 100, 64, -92, 110, 97, 109, 101, -87, 119, 114, 105, 116, 101, 70, 105, 108, 101, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -90, 114, 101, 116, 117, 114, 110, -57, 80, 1, -124, -92, 107, 105, 110, 100, 34, -92, 110, 97, 109, 101, -87, 119, 114, 105, 116, 101, 70, 105, 108, 101, -90, 115, 99, 97, 108, 97, 114, -57, 35, 1, -125, -92, 107, 105, 110, 100, 4, -92, 110, 97, 109, 101, -87, 119, 114, 105, 116, 101, 70, 105, 108, 101, -92, 116, 121, 112, 101, -89, 66, 111, 111, 108, 101, 97, 110, -92, 116, 121, 112, 101, -89, 66, 111, 111, 108, 101, 97, 110, -92, 116, 121, 112, 101, -90, 77, 101, 116, 104, 111, 100, -56, 1, 51, 1, -122, -87, 97, 114, 103, 117, 109, 101, 110, 116, 115, -110, -57, 88, 1, -123, -92, 107, 105, 110, 100, 34, -92, 110, 97, 109, 101, -92, 112, 97, 116, 104, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -90, 115, 99, 97, 108, 97, 114, -57, 39, 1, -124, -92, 107, 105, 110, 100, 4, -92, 110, 97, 109, 101, -92, 112, 97, 116, 104, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -92, 116, 121, 112, 101, -90, 83, 116, 114, 105, 110, 103, -92, 116, 121, 112, 101, -90, 83, 116, 114, 105, 110, 103, -57, 80, 1, -124, -92, 107, 105, 110, 100, 34, -92, 110, 97, 109, 101, -87, 114, 101, 99, 117, 114, 115, 105, 118, 101, -90, 115, 99, 97, 108, 97, 114, -57, 35, 1, -125, -92, 107, 105, 110, 100, 4, -92, 110, 97, 109, 101, -87, 114, 101, 99, 117, 114, 115, 105, 118, 101, -92, 116, 121, 112, 101, -89, 66, 111, 111, 108, 101, 97, 110, -92, 116, 121, 112, 101, -89, 66, 111, 111, 108, 101, 97, 110, -92, 107, 105, 110, 100, 64, -92, 110, 97, 109, 101, -91, 109, 107, 100, 105, 114, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -90, 114, 101, 116, 117, 114, 110, -57, 72, 1, -124, -92, 107, 105, 110, 100, 34, -92, 110, 97, 109, 101, -91, 109, 107, 100, 105, 114, -90, 115, 99, 97, 108, 97, 114, -57, 31, 1, -125, -92, 107, 105, 110, 100, 4, -92, 110, 97, 109, 101, -91, 109, 107, 100, 105, 114, -92, 116, 121, 112, 101, -89, 66, 111, 111, 108, 101, 97, 110, -92, 116, 121, 112, 101, -89, 66, 111, 111, 108, 101, 97, 110, -92, 116, 121, 112, 101, -90, 77, 101, 116, 104, 111, 100, -56, 1, 117, 1, -122, -87, 97, 114, 103, 117, 109, 101, 110, 116, 115, -109, -57, 88, 1, -123, -92, 107, 105, 110, 100, 34, -92, 110, 97, 109, 101, -92, 112, 97, 116, 104, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -90, 115, 99, 97, 108, 97, 114, -57, 39, 1, -124, -92, 107, 105, 110, 100, 4, -92, 110, 97, 109, 101, -92, 112, 97, 116, 104, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -92, 116, 121, 112, 101, -90, 83, 116, 114, 105, 110, 103, -92, 116, 121, 112, 101, -90, 83, 116, 114, 105, 110, 103, -57, 80, 1, -124, -92, 107, 105, 110, 100, 34, -92, 110, 97, 109, 101, -87, 114, 101, 99, 117, 114, 115, 105, 118, 101, -90, 115, 99, 97, 108, 97, 114, -57, 35, 1, -125, -92, 107, 105, 110, 100, 4, -92, 110, 97, 109, 101, -87, 114, 101, 99, 117, 114, 115, 105, 118, 101, -92, 116, 121, 112, 101, -89, 66, 111, 111, 108, 101, 97, 110, -92, 116, 121, 112, 101, -89, 66, 111, 111, 108, 101, 97, 110, -57, 72, 1, -124, -92, 107, 105, 110, 100, 34, -92, 110, 97, 109, 101, -91, 102, 111, 114, 99, 101, -90, 115, 99, 97, 108, 97, 114, -57, 31, 1, -125, -92, 107, 105, 110, 100, 4, -92, 110, 97, 109, 101, -91, 102, 111, 114, 99, 101, -92, 116, 121, 112, 101, -89, 66, 111, 111, 108, 101, 97, 110, -92, 116, 121, 112, 101, -89, 66, 111, 111, 108, 101, 97, 110, -92, 107, 105, 110, 100, 64, -92, 110, 97, 109, 101, -94, 114, 109, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -90, 114, 101, 116, 117, 114, 110, -57, 66, 1, -124, -92, 107, 105, 110, 100, 34, -92, 110, 97, 109, 101, -94, 114, 109, -90, 115, 99, 97, 108, 97, 114, -57, 28, 1, -125, -92, 107, 105, 110, 100, 4, -92, 110, 97, 109, 101, -94, 114, 109, -92, 116, 121, 112, 101, -89, 66, 111, 111, 108, 101, 97, 110, -92, 116, 121, 112, 101, -89, 66, 111, 111, 108, 101, 97, 110, -92, 116, 121, 112, 101, -90, 77, 101, 116, 104, 111, 100, -57, -32, 1, -122, -87, 97, 114, 103, 117, 109, 101, 110, 116, 115, -111, -57, 88, 1, -123, -92, 107, 105, 110, 100, 34, -92, 110, 97, 109, 101, -92, 112, 97, 116, 104, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -90, 115, 99, 97, 108, 97, 114, -57, 39, 1, -124, -92, 107, 105, 110, 100, 4, -92, 110, 97, 109, 101, -92, 112, 97, 116, 104, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -92, 116, 121, 112, 101, -90, 83, 116, 114, 105, 110, 103, -92, 116, 121, 112, 101, -90, 83, 116, 114, 105, 110, 103, -92, 107, 105, 110, 100, 64, -92, 110, 97, 109, 101, -91, 114, 109, 100, 105, 114, -88, 114, 101, 113, 117, 105, 114, 101, 100, -61, -90, 114, 101, 116, 117, 114, 110, -57, 72, 1, -124, -92, 107, 105, 110, 100, 34, -92, 110, 97, 109, 101, -91, 114, 109, 100, 105, 114, -90, 115, 99, 97, 108, 97, 114, -57, 31, 1, -125, -92, 107, 105, 110, 100, 4, -92, 110, 97, 109, 101, -91, 114, 109, 100, 105, 114, -92, 116, 121, 112, 101, -89, 66, 111, 111, 108, 101, 97, 110, -92, 116, 121, 112, 101, -89, 66, 111, 111, 108, 101, 97, 110, -92, 116, 121, 112, 101, -90, 77, 101, 116, 104, 111, 100, -92, 116, 121, 112, 101, -90, 77, 111, 100, 117, 108, 101, -89, 118, 101, 114, 115, 105, 111, 110, -93, 48, 46, 49]
  } ^^        
@krisbitney krisbitney added the bug Something isn't working label Jul 28, 2023
@krisbitney krisbitney changed the title Serializes WRAP manifests to invalid MessagePack bytes Bug: Serializes WRAP manifests to invalid MessagePack bytes Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant