Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeleteNamespacedService Response Parse Error #1086

Closed
SpringHgui opened this issue Nov 9, 2022 · 1 comment
Closed

DeleteNamespacedService Response Parse Error #1086

SpringHgui opened this issue Nov 9, 2022 · 1 comment

Comments

@SpringHgui
Copy link

Kubernetes C# SDK Client Version
e.g. 9.0.38

Server Kubernetes Version
e.g. 1.22.10

Dotnet Runtime Version
e.g. net6

Describe the bug
when id call this

var res = client.CoreV1.DeleteNamespacedService(Name, Namespace);

exceptions throw below,and this Service deleted successfully!

The JSON value could not be converted to k8s.Models.V1ServiceStatus. Path: $.status | LineNumber: 0 | BytePositionInLine: 67.
   在 System.Text.Json.ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type propertyType)
   在 System.Text.Json.Serialization.Converters.ObjectDefaultConverter`1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)
   在 System.Text.Json.Serialization.JsonConverter`1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)
   在 System.Text.Json.Serialization.Metadata.JsonPropertyInfo`1.ReadJsonAndSetMember(Object obj, ReadStack& state, Utf8JsonReader& reader)
   在 System.Text.Json.Serialization.Converters.ObjectDefaultConverter`1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)
   在 System.Text.Json.Serialization.JsonConverter`1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)
   在 System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
   在 System.Text.Json.JsonSerializer.ReadCore[TValue](JsonConverter jsonConverter, Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
   在 System.Text.Json.JsonSerializer.ReadCore[TValue](JsonReaderState& readerState, Boolean isFinalBlock, ReadOnlySpan`1 buffer, JsonSerializerOptions options, ReadStack& state, JsonConverter converterBase)
   在 System.Text.Json.JsonSerializer.ContinueDeserialize[TValue](ReadBufferState& bufferState, JsonReaderState& jsonReaderState, ReadStack& readStack, JsonConverter converter, JsonSerializerOptions options)
   在 System.Text.Json.JsonSerializer.ReadAll[TValue](Stream utf8Json, JsonTypeInfo jsonTypeInfo)
   在 System.Text.Json.JsonSerializer.ReadAllUsingOptions[TValue](Stream utf8Json, Type returnType, JsonSerializerOptions options)
   在 System.Text.Json.JsonSerializer.Deserialize[TValue](Stream utf8Json, JsonSerializerOptions options)
   在 k8s.KubernetesJson.Deserialize[TValue](Stream json)
   在 k8s.Kubernetes.<CreateResultAsync>d__37`1.MoveNext()
   在 k8s.AbstractKubernetes.<k8s-ICoreV1Operations-DeleteNamespacedServiceWithHttpMessagesAsync>d__144.MoveNext()
   在 k8s.CoreV1OperationsExtensions.<DeleteNamespacedServiceAsync>d__261.MoveNext()
   在 k8s.CoreV1OperationsExtensions.DeleteNamespacedService(ICoreV1Operations operations, String name, String namespaceParameter, V1DeleteOptions body, String dryRun, Nullable`1 gracePeriodSeconds, Nullable`1 orphanDependents, String propagationPolicy, Nullable`1 pretty)
   在 BX.DevOps.Agent.Api.AgentApiImpl.DeleteService(DeleteServiceRequest request) 在 D:\Gitlab\BX.DevOps\BX.DevOps.Agent\Api\AgentApiImpl.cs 中: 第 346 行
   在 BX.DevOps.Agent.Api.Tests.AgentApiImplTests.DeleteServiceTest() 在 D:\Gitlab\BX.DevOps\BX.DevOps.AgentTests\Api\AgentApiImplTests.cs 中: 第 88 行
@tg123
Copy link
Member

tg123 commented Nov 9, 2022

see #824
use 6.0 sdk to avoid this err or update your server to 1.23+

@tg123 tg123 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants