You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a general problem with our current Kubernetes Swagger, Create and Delete can return an object or a Status, the Swagger isn't set up to handle that properly. It tries to parse and it dies:
Unhandled Exception: System.AggregateException: One or more errors occurred. (Unable to deserialize the response.) ---> Microsoft.Rest.SerializationException: Unable to deserialize the respo
nse. ---> Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: {. Path 'status', line 1, position 305.
at Newtonsoft.Json.JsonTextReader.ReadStringValue(ReadType readType)
at Newtonsoft.Json.JsonTextReader.ReadAsString()
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, 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 containerC
ontract, 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 Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject[T](String json, JsonSerializerSettings settings)
at k8s.Kubernetes.<DeleteNamespaceWithHttpMessagesAsync>d__173.MoveNext() in /mnt/c/Users/bburns/kubernetes-client/csharp/src/generated/Kubernetes.cs:line 29720
--- End of inner exception stack trace ---
at k8s.Kubernetes.<DeleteNamespaceWithHttpMessagesAsync>d__173.MoveNext() in /mnt/c/Users/bburns/kubernetes-client/csharp/src/generated/Kubernetes.cs:line 29729
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at simple.NamespaceExample.Main(String[] args) in /mnt/c/Users/bburns/kubernetes-client/csharp/examples/namespace/Namespace.cs:line 38
This is a general problem with our current Kubernetes Swagger, Create and Delete can return an object or a
Status
, the Swagger isn't set up to handle that properly. It tries to parse and it dies:This is similar to: kubernetes-client/java#86
The text was updated successfully, but these errors were encountered: