Closed as not planned
Closed as not planned
Description
What happened (please include outputs or screenshots):
Sometimes code failed on:
for pod_event in self._watcher.stream(func=self._core_api.list_pod_for_all_namespaces, **watch_kwargs):
Getting this exception:
urllib3.exceptions.ProtocolError: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 0 bytes read))
What you expected to happen:
Not failed with exception. just getting valid chunk or if there is no more pods finish the loop
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
it something happen sometimes to our clients working with k8s version: 1.20+, 1.21+, 1.25+ ...
- Kubernetes version (
kubectl version
):
-kubectl version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short. Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"25", GitVersion:"v1.25.4", GitCommit:"872a965c6c6526caa949f0c6ac028ef7aff3fb78", GitTreeState:"clean", BuildDate:"2022-11-09T13:36:36Z", GoVersion:"go1.19.3", Compiler:"gc", Platform:"darwin/arm64"}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.12-gke.1000", GitCommit:"b4e24aa2edb70ab31433ba75bd4052409d858719", GitTreeState:"clean", BuildDate:"2023-03-30T09:32:49Z", GoVersion:"go1.19.7 X:boringcrypto", Compiler:"gc", Platform:"linux/amd64"} - OS (e.g., MacOS 10.13.6): MacOS 13.3.1 (a) (22E772610a)
- Python version (
python --version
): 3.9.6 - Python client version (
pip list | grep kubernetes
) 23.6.0