When using the MasterDataResolver in wholechain, we ran in the following issue:
Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Current JsonReader item is not an object: String. Path '', line 1, position 1165.
at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
at Newtonsoft.Json.Linq.JObject.Parse(String json)
at OpenTraceability.Mappers.MasterData.GS1VocabJsonMapper.Map(Type type, String value)
at OpenTraceability.Queries.MasterDataResolver.ResolveMasterDataItem(Type type, DigitalLinkQueryOptions options, String relativeURL, HttpClient httpClient)
It seems that it's keeping the \r\n instead of converting to JSON. The issue happens on the line below on the GS1VocabJsonMapper:
JObject json = JObject.Parse(value);
It was fixed by reading the response from the digital link as JSON.
When using the MasterDataResolver in wholechain, we ran in the following issue:
It seems that it's keeping the \r\n instead of converting to JSON. The issue happens on the line below on the GS1VocabJsonMapper:
JObject json = JObject.Parse(value);
It was fixed by reading the response from the digital link as JSON.