I'm running RavenDB 3.0 as a Windows Service on my machine. There's a collection in the database with 610 documents, and whenever I query it to get them all
_session.Query<StockKeepingUnit>().Take(1024).ToList();
I get the following error:
"After parsing a value an unexpected character was encountered: B. Path 'Results[342].ManufacturerDescription'."
"exceptionType":"Raven.Imports.Newtonsoft.Json.JsonReaderException"
And the following stack trace:
"stackTrace":" at
Raven.Imports.Newtonsoft.Json.JsonTextReader.ParsePostValue() in c:\\Builds\\RavenDB-Stable-3.0\\Imports\\Newtonsoft.Json\\Src\\Newtonsoft.Json\\JsonTextReader.cs:line 762
at Raven.Imports.Newtonsoft.Json.JsonTextReader.ReadInternal() in c:\\Builds\\RavenDB-Stable-3.0\\Imports\\Newtonsoft.Json\\Src\\Newtonsoft.Json\\JsonTextReader.cs:line 392
at Raven.Imports.Newtonsoft.Json.JsonTextReader.Read() in c:\\Builds\\RavenDB-Stable-3.0\\Imports\\Newtonsoft.Json\\Src\\Newtonsoft.Json\\JsonTextReader.cs:line 304
at Raven.Json.Linq.RavenJObject.Load(JsonReader reader) in c:\\Builds\\RavenDB-Stable-3.0\\Raven.Abstractions\\Json\\Linq\\RavenJObject.cs:line 251
at Raven.Json.Linq.RavenJArray.Load(JsonReader reader) in c:\\Builds\\RavenDB-Stable-3.0\\Raven.Abstractions\\Json\\Linq\\RavenJArray.cs:line 139
at Raven.Json.Linq.RavenJObject.Load(JsonReader reader) in c:\\Builds\\RavenDB-Stable-3.0\\Raven.Abstractions\\Json\\Linq\\RavenJObject.cs:line 225
at Raven.Json.Linq.RavenJToken.ReadFrom(JsonReader reader) in c:\\Builds\\RavenDB-Stable-3.0\\Raven.Abstractions\\Json\\Linq\\RavenJToken.cs:line 171
at Raven.Json.Linq.RavenJToken.Load(JsonReader reader) in c:\\Builds\\RavenDB-Stable-3.0\\Raven.Abstractions\\Json\\Linq\\RavenJToken.cs:line 262
at Raven.Json.Linq.RavenJToken.TryLoad(Stream stream) in c:\\Builds\\RavenDB-Stable-3.0\\Raven.Abstractions\\Json\\Linq\\RavenJToken.cs:line 238
at Raven.Client.Connection.HttpJsonRequest.<ReadJsonInternalAsync>d__48.MoveNext() in c:\\Builds\\RavenDB-Stable-3.0\\Raven.Client.Lightweight\\Connection\\Implementation\\HttpJsonRequest.cs:line 459
When I try the same query on the live database, hosted on Azure, the query succeeds. The local database is a direct import from the one on Azure, so no differences there.
What's interesting is that if I delete the whole database and re-import it, the error remains the the "unexpected character" and the property where it's found change:
"After parsing a value an unexpected character was encountered: v. Path 'Results[342].OriginalRetailPrice'."
I'm at a loss as to where to even begin. Any ideas?