watcher: System.Net.Http.HttpRequestException: Error while copying content to a stream. #1507
Labels
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
Describe the bug
OnError
callback ofWatcher<T>()
reports the following error after ~40 minutes when watching for a Kubernetes resource for which no instance exists in the cluster and no new one is created during the runtime. After the error watcher is closed (OnClosed
callback is invoked).Kubernetes C# SDK Client Version
13.0.1
Server Kubernetes Version
1.26.10
Dotnet Runtime Version
net7.0
To Reproduce
After reading description of #828 I think that Kubernetes API server must close watch connection.
Expected behavior
Even if connection is closed by Kubernetes API server, the watcher should be able to recover and no attempt should be made to read past end of stream.
KubeConfig
N/A
Where do you run your app with Kubernetes SDK (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: