question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Newtonsoft.json Deserialize/Parsing Issue with Encompass 22.3 Upgrade

See original GitHub issue

Facing an issue with ‘GetLoanAsync’ method in Testing Environment after Encompass 22.3 Upgrade . Newtonsoft.Json is throwing an error for all loans in all testing environments we have tried with error: Input string ‘10000.0’ is not a valid integer. Path ‘applications[0].employment[0].monthlyIncomeAmount’, line 1, position 13363. (10000.0 value changes based on loan)

Any information on why this may be occurring would be greatly appreciated. Seems to be related to the 22.3 Upgrade

Stack Trace is below:

at Newtonsoft.Json.JsonTextReader.ParseReadNumber(ReadType readType, Char firstChar, Int32 initialPosition) at Newtonsoft.Json.JsonTextReader.ParseNumber(ReadType readType) at Newtonsoft.Json.JsonTextReader.ReadNumberValue(ReadType readType) at Newtonsoft.Json.JsonTextReader.ReadAsInt32() at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at EncompassRest.Utilities.JsonHelper.FromJson[T](TextReader reader) at EncompassRest.Utilities.JsonHelper.<ReadAsAsync>d__271.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at EncompassRest.ApiObject.DirtyFuncCache1.<>c.<<-cctor>b__2_0>d.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at EncompassRest.ApiObject.<SendFullUriAsync>d__44`1.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at EncompassRest.Loans.Loans.<GetLoanAsync>d__11.MoveNext()

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
zackwertzcommented, Sep 22, 2022

Appreciate it Michael! I’ve had some build issues after pulling the code that I’ve been working on, but will verify your updates and chime in with any thoughts/questions I may come up with during testing. More to come!

0reactions
tlambertcommented, Oct 12, 2022

Employment.cs private DirtyValue<decimal?>? _monthlyIncomeAmount; public decimal? MonthlyIncomeAmount { get => _monthlyIncomeAmount; set => SetField(ref _monthlyIncomeAmount, value); } ReoProperty.cs private DirtyValue<decimal?>? _purchasePrice; public decimal? PurchasePrice { get => _purchasePrice; set => SetField(ref _purchasePrice, value); } Residence.cs private DirtyValue<decimal?>? _rent; public decimal? Rent { get => _rent; set => SetField(ref _rent, value); } Valuation.cs private DirtyValue<decimal?>? _appraisedValue; public decimal? AppraisedValue { get => _appraisedValue; set => SetField(ref _appraisedValue, value); }

This was all I changed and it seems to be working fine. even updating newtonsoft.json.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · EncompassRest/EncompassRest
Latest EncompassRest NuGet Package (v1.3.2) not reflecting "Updated 22.3 integer ... Newtonsoft.json Deserialize/Parsing Issue with Encompass 22.3 Upgrade.
Read more >
Json.Net deserialize out of memory issue
This Json is serialized and send to a client. On client side, the newtonsoft json.net deserializer is used to get back the Json....
Read more >
togethercomputer/RedPajama-Data-1T-Sample · Datasets at ...
getDocumentElement(); } catch (Exception e) { String msg = "Error in parsing the service content of the service. " + "The requested path...
Read more >
IDM 5.5 > Integrator's Guide
Guide to configuring and integrating ForgeRock® Identity Management software into identity management solutions. This software offers flexible services for ...
Read more >
API Design Patterns
the JSON representation quite obvious. For API methods, the problem is a bit more complicated. In this case, I've opted to use TypeScript...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found