Lens Terminal Fails to exec while kubectl works with OS terminal

I am seeing an issue with Lens terminal where it cannot exec into pod.

CMD:

exec kubectl exec -i -t -n NAMESPACE POD-NAME -c CONT_NAME -- sh -c "clear; (bash || ash || sh)"

above command works in shell outside Lens terminal but fails with below error in Lens Terminal.

Error in Terminal

error: unable to upgrade connection: error dialing backend: dial tcp x.x.x.x:443: connect: connection timed out
Terminal will auto-close in 15 seconds ...

Debug Log:

E0628 07:06:09.072867  241041 proxy_server.go:147] Error while proxying request: error dialing backend: dial tcp x.x.x.x:443: connect: connection timed out
 +18s

Here, I am trying to connect to GKE cluster via proxy. I have set the proxy-url in kube config. Lens can connect to cluster successfully and list all workloads, I am having issue with Lens Terminal pod exec only, pod Logs also works fine.

I have tried to set HTTPS_PROXY env vars but still its same.

Lens Version: v2023.5.310801-latest (5/31/2023)
Kubernetes Version: 1.24.13-gke.2500

Thanks you for your support here. Please let me know if there is any workaround here. Thank you!

This might be the same as Can't open a shell on a pod from behind a corporate proxy · Issue #6687 · lensapp/lens · GitHub. No timeline for a fix yet though…