Comments (5)
I'm not sure why you're seeing what looks like two distinct error messages. The first message means the stream was corrupted (e.g. truncated or content was changed) or you're using a formatter that doesn't reliably generated valid messagpack or read valid messagepack.
The full exception ToString() (with type, message, stacktrace, inner exceptions...) can be very informative when debugging serialization issues. But the error might have occurred earlier in execution and the exception is thrown later when some deserialize suffers from the error made earlier, so the stack trace may be a red herring, but it's always the place to start.
The investigation is almost certainly going to lead to a flaw in code outside this MessagePack library. If you want expert support to help investigate, you may hire me to help.
from messagepack-csharp.
I am using the standard formatter, as I said in my message NO CODE WAS CHANGED and it stopped working for no reason! So it cannot be my code because it WAS working fine for months so why should it just break for no reason?! It makes no sense.
The only thing I can think of is maybe its something that happened to .net or windows itself? I have never had this before, so I have no idea how to fix this? Any ideas would be really appreciated thanks! :)
from messagepack-csharp.
MessagePack.MessagePackSerializationException: Failed to deserialize NextGenSoftware.Holochain.HoloNET.Client.HoloNETResponse value.
---> System.IO.EndOfStreamException: Attempted to read past the end of the stream.
at MessagePack.MessagePackReader.ThrowNotEnoughBytesException()
at MessagePack.MessagePackReader.ThrowInsufficientBufferUnless(Boolean condition)
at MessagePack.MessagePackReader.ReadBytes()
at MessagePack.Formatters.NextGenSoftware_Holochain_HoloNET_Client_HoloNETResponseFormatter3.Deserialize(MessagePackReader& reader, MessagePackSerializerOptions options)
at MessagePack.MessagePackSerializer.Deserialize[T](MessagePackReader& reader, MessagePackSerializerOptions options)
--- End of inner exception stack trace ---
at MessagePack.MessagePackSerializer.Deserialize[T](MessagePackReader& reader, MessagePackSerializerOptions options)
at MessagePack.MessagePackSerializer.Deserialize[T](ReadOnlyMemory1 buffer, MessagePackSerializerOptions options, CancellationToken cancellationToken) at NextGenSoftware.Holochain.HoloNET.Client.HoloNETClientBase.DecodeDataReceived(Byte[] rawBinaryData, DataReceivedEventArgs dataReceivedEventArgs). Error Details: MessagePack.MessagePackSerializationException: Failed to deserialize NextGenSoftware.Holochain.HoloNET.Client.HoloNETResponse value. ---> System.IO.EndOfStreamException: Attempted to read past the end of the stream. at MessagePack.MessagePackReader.ThrowNotEnoughBytesException() at MessagePack.MessagePackReader.ThrowInsufficientBufferUnless(Boolean condition) at MessagePack.MessagePackReader.ReadBytes() at MessagePack.Formatters.NextGenSoftware_Holochain_HoloNET_Client_HoloNETResponseFormatter3.Deserialize(MessagePackReader& reader, MessagePackSerializerOptions options) at MessagePack.MessagePackSerializer.Deserialize[T](MessagePackReader& reader, MessagePackSerializerOptions options) --- End of inner exception stack trace --- at MessagePack.MessagePackSerializer.Deserialize[T](MessagePackReader& reader, MessagePackSerializerOptions options) at MessagePack.MessagePackSerializer.Deserialize[T](ReadOnlyMemory
1 buffer, MessagePackSerializerOptions options, CancellationToken cancellationToken)
at NextGenSoftware.Holochain.HoloNET.Client.HoloNETClientBase.DecodeDataReceived(Byte[] rawBinaryData, DataReceivedEventArgs dataReceivedEventArgs)
from messagepack-csharp.
I am using my own web socket lib I built but as I said NO CODE CHANGES were made so not sure why this would all of a sudden break for no reason?
from messagepack-csharp.
Thanks for the additional exception details. With that, and your assertion that there are no code changes, my best guess is data corruption. 'No code changes' doesn't direct suspicion toward this library any more than any other code in the application. It does support that some other application code or environmental element is causing data corruption. It's quite easy to write web socket code, or read from a file, or perhaps other places where you're getting your data, to be written poorly such that it only works by chance (even a common chance) yet is prone to fail when those factors change.
This library is quite stable, and has a great many intensive users. This is a free and open source library offered without any kind of warranty (per the popular FOSS license).
As I said, I am available for hire if you choose to take that route.
from messagepack-csharp.
Related Issues (20)
- `MessagePack` package should depend on `MessagePackAnalyzer` package
- Source generated resolver should support hand-written formatters that use the singleton pattern HOT 1
- Nested `private` custom formatters result in CS0122: inaccessible from source generated resolver
- MPC Generate Error when use photon-quantum define classs that contains an FP field
- [Support request] Serializing and Deserializing between different libraries (javascript msgpackr) HOT 4
- MessagePack throws in Rhino environment when the same assembly is loaded multiple times HOT 12
- We need a proper way to exclude a custom formatter from automatic inclusion in the resolver
- Performance issue when deserielizing in Unity HOT 1
- MessagePackAnalyzer MessagePackCodeFix Will overwrite comments HOT 4
- Having .NET 8.0 SDK installed causes mpc tool to not work HOT 2
- MessagePack.UnityEditor CodeGen Missing log information
- MessagePackSerializer.SerializeToJson Wrongfully serialize Map Key if Key is an Structure or Array containing String HOT 3
- Add API to validate msgpack structure
- mpc: Build failure for [MessagePackObject] types with primary constructor
- Serialisation not working in the Device build (Android) HOT 2
- Offer code fix for MsgPack011
- Offer code fix for MsgPack010 InaccessibleFormatterId
- Offer code fix for MsgPack004: attribute all members
- AOT formatter should be more flexible for member/parameter types
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from messagepack-csharp.