I think line # 289 should be an && not ||
Currently: else if (!(data.GetType().IsPrimitive || data is string))
Reproduce:
From Client call Action AddUser = data => {}
Server Error:
Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher: Error: Failed to invoke hub method 'Update_VM'.
Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Current JsonReader item is not an object: String. Path '', line 1, position 20.
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 DotNetify.DotNetifyHub.NormalizeType(Object data)
I think line # 289 should be an && not || Currently: else if (!(data.GetType().IsPrimitive || data is string))
Reproduce: From Client call Action AddUser = data => {}
Server Error:
Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher: Error: Failed to invoke hub method 'Update_VM'.
Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Current JsonReader item is not an object: String. Path '', line 1, position 20. 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 DotNetify.DotNetifyHub.NormalizeType(Object data)