enko
October 27, 2018, 9:43pm
1
Looks like couchbase-net-client is using an older version of the library:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<PackageId>CouchbaseNetClient</PackageId>
<Title>Couchbase SDK</Title>
<Authors>Couchbase, Inc.</Authors>
<Owners>Couchbase, Inc.</Owners>
<Copyright>Copyright 2018</Copyright>
<Description>The Couchbase authored new and improved client for .NET based languages! Package supports both .NET Core and Full Frameworks 4.5.2 and greater.</Description>
<PackageTags>Couchbase;nosql;JSON;database</PackageTags>
<PackageLicenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/couchbase/couchbase-net-client</PackageProjectUrl>
<PackageIconUrl>https://raw.githubusercontent.com/couchbaselabs/Linq2Couchbase/master/Packaging/couchbase-logo.png</PackageIconUrl>
<PackageReleaseNotes>https://developer.couchbase.com/server/other-products/release-notes-archives/dotnet-sdk</PackageReleaseNotes>
<TargetFrameworks>netstandard1.5;netstandard2.0</TargetFrameworks>
<RootNamespace>Couchbase</RootNamespace>
<AssemblyName>Couchbase.NetClient</AssemblyName>
<NetStandardImplicitPackageVersion>2.0.1</NetStandardImplicitPackageVersion>
This file has been truncated. show original
9.0.1 version of Newtonsoft.Json will not correctly de-serialize FSharpList.
This creates problems with statements like:
let myObj = bucket.GetDocument< MyObj>(“MyObj_1”)
where myObj.Content will always be Null despite a valid document being available, as its lost during json conversion.
The issue was fixed some time ago here: https://github.com/Microsoft/visualfsharp/issues/2257
Please consider updating to later version of Newtonsoft.Json
Overriding 9.0.1 with latest stable seems to work.
jmorris
October 27, 2018, 10:59pm
2
Thanks @enko - we have somewhat “frozen” NewtonSoft at 9.0.1 because of some reported incompatibilities in later versions. Its been awhile though, so we can look into this.
Here is a ticket for tracking: Loading...
1 Like