I'm using GroupShareKit (2015 branch) which uses v1 of the GroupShare REST API to communicate with GroupShare 2017. Everything else I've tried so far works fine except for
GroupShareClient.Project.Get("projectGuidAsString");
Which throws the following exception:
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType)
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.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at Sdl.Community.GroupShareKit.Http.JsonHttpPipeline.DeserializeResponse[T](IResponse response) in C:\Work\Git\groupsharekit.net\Sdl.Community.GroupShareKit\Http\JsonHttpPipeline.cs:line 60
at Sdl.Community.GroupShareKit.Http.Connection.<Run>d__19`1.MoveNext() in C:\Work\Git\groupsharekit.net\Sdl.Community.GroupShareKit\Http\Connection.cs:line 0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Sdl.Community.GroupShareKit.Http.ApiConnection.<Get>d__4`1.MoveNext() in C:\Work\Git\groupsharekit.net\Sdl.Community.GroupShareKit\Http\ApiConnection.cs:line 0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at GroupShareKit.Supertext.GroupShareKitFacade.ProjectFacade.<Get>d__5.MoveNext() in C:\Workspaces\supertext-dev\GroupShareKit.Supertext\GroupShareKitFacade\ProjectFacade.cs:line 151
I know that the specified project ID definitely exists.
Can anyone confirm that there is an underlying change in how GroupShare handles this REST request - and that v1 of the REST API now functions slightly differently?
Any workarounds?