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

DateTime/DateTimeOffset not supported??? #58

Open
JCKodel opened this issue Aug 15, 2023 · 1 comment
Open

DateTime/DateTimeOffset not supported??? #58

JCKodel opened this issue Aug 15, 2023 · 1 comment

Comments

@JCKodel
Copy link

JCKodel commented Aug 15, 2023

At server, the following structure is serialized:

new Dictionary<string, object> {
  { "string", "Hello" },
  { "dateTime", DateTime.Now() },
};

On client, the response of that invocation is a Map<dynamic, dynamic> with:

{
  "string": "Hello,
  "dateTime": null,
}

The deserializer got a 0xd7 type, then a 0xff subtype (I guess -1 is considered 255), on this method:

dynamic _readExt(int length) {
  final extType = _readUInt8();
  final data = _readBuffer(length);
  return _extDecoder?.decodeObject(extType, data);
}

At that time, _extDecoder was null, so null was returned.

@AntonEriksson978
Copy link

I also have this problem. But its, as you say, a problem in the messagepack repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants