# Failed to refresh accessibility: RangeError: Maximum call stack size exceeded

**URL:** https://forums.k8slens.dev/t/failed-to-refresh-accessibility-rangeerror-maximum-call-stack-size-exceeded/434
**Category:** Lens Support & Troubleshooting
**Created:** [May 9, 2023, 8:22pm UTC](https://forums.k8slens.dev/t/failed-to-refresh-accessibility-rangeerror-maximum-call-stack-size-exceeded/434 "2023-05-09T20:22:53Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![kumar.wasad](https://forums.k8slens.dev/letter_avatar_proxy/v4/letter/k/7cd45c/32.png) [@kumar.wasad](https://forums.k8slens.dev/u/kumar.wasad)
#### Post date: [May 9, 2023, 8:22pm UTC](https://forums.k8slens.dev/t/failed-to-refresh-accessibility-rangeerror-maximum-call-stack-size-exceeded/434/1 "2023-05-09T20:22:53Z")

</div>

Hi,

I am running into the following errors when trying to access EKS cluster.Is there any solution for this error?

Failed to refresh accessibility: RangeError: Maximum call stack size exceeded

---

<div class="post-metadata">

### Author: ![phorsmalahti](https://forums.k8slens.dev/user_avatar/forums.k8slens.dev/phorsmalahti/32/560_2.png) [@phorsmalahti](https://forums.k8slens.dev/u/phorsmalahti)
#### Post date: [May 10, 2023, 6:39am UTC](https://forums.k8slens.dev/t/failed-to-refresh-accessibility-rangeerror-maximum-call-stack-size-exceeded/434/2 "2023-05-10T06:39:40Z")

</div>

Hi, does the Lens UI freeze when you get this error? Is that error from the developer tools? Do other clustesr work?

---

<div class="post-metadata">

### Author: ![kumar.wasad](https://forums.k8slens.dev/letter_avatar_proxy/v4/letter/k/7cd45c/32.png) [@kumar.wasad](https://forums.k8slens.dev/u/kumar.wasad)
#### Post date: [May 10, 2023, 4:49pm UTC](https://forums.k8slens.dev/t/failed-to-refresh-accessibility-rangeerror-maximum-call-stack-size-exceeded/434/3 "2023-05-10T16:49:17Z")

</div>

UI Doesn’t freeze.The Error is from lens UI.Other clusters work after deleting eks cluster context from ~/.kube/config.

---

<div class="post-metadata">

### Author: ![kumar.wasad](https://forums.k8slens.dev/letter_avatar_proxy/v4/letter/k/7cd45c/32.png) [@kumar.wasad](https://forums.k8slens.dev/u/kumar.wasad)
#### Post date: [May 11, 2023, 1:08am UTC](https://forums.k8slens.dev/t/failed-to-refresh-accessibility-rangeerror-maximum-call-stack-size-exceeded/434/4 "2023-05-11T01:08:44Z")

</div>

![Lems Error](https://forums.k8slens.dev/original/1X/86e8088843923345914aa54404706dc835971b5e.jpeg)

---

<div class="post-metadata">

### Author: ![phorsmalahti](https://forums.k8slens.dev/user_avatar/forums.k8slens.dev/phorsmalahti/32/560_2.png) [@phorsmalahti](https://forums.k8slens.dev/u/phorsmalahti)
#### Post date: [May 11, 2023, 8:57am UTC](https://forums.k8slens.dev/t/failed-to-refresh-accessibility-rangeerror-maximum-call-stack-size-exceeded/434/5 "2023-05-11T08:57:42Z")

</div>

Can you use kubectl to connect to the cluster? Is the cluster shared through Lens Teamwork?

---

<div class="post-metadata">

### Author: ![kumar.wasad](https://forums.k8slens.dev/letter_avatar_proxy/v4/letter/k/7cd45c/32.png) [@kumar.wasad](https://forums.k8slens.dev/u/kumar.wasad)
#### Post date: [May 11, 2023, 8:50pm UTC](https://forums.k8slens.dev/t/failed-to-refresh-accessibility-rangeerror-maximum-call-stack-size-exceeded/434/6 "2023-05-11T20:50:25Z")

</div>

I can connect using kubectl.No it is not shared through lens teamwork.

---

<div class="post-metadata">

### Author: ![3461444ira](https://forums.k8slens.dev/letter_avatar_proxy/v4/letter/3/8edcca/32.png) [@3461444ira](https://forums.k8slens.dev/u/3461444ira)
#### Post date: [June 5, 2024, 2:43pm UTC](https://forums.k8slens.dev/t/failed-to-refresh-accessibility-rangeerror-maximum-call-stack-size-exceeded/434/7 "2024-06-05T14:43:12Z")

</div>

Hi! I have the same issue. I can’t use the app because of it.

---

<div class="post-metadata">

### Author: ![3461444ira](https://forums.k8slens.dev/letter_avatar_proxy/v4/letter/3/8edcca/32.png) [@3461444ira](https://forums.k8slens.dev/u/3461444ira)
#### Post date: [June 5, 2024, 2:55pm UTC](https://forums.k8slens.dev/t/failed-to-refresh-accessibility-rangeerror-maximum-call-stack-size-exceeded/434/8 "2024-06-05T14:55:56Z")

</div>

@phorsmalahti @kumar.wasad Did you manage to resolve the problem?

---

<div class="post-metadata">

### Author: ![tesalovdima](https://forums.k8slens.dev/letter_avatar_proxy/v4/letter/t/e480ec/32.png) [@tesalovdima](https://forums.k8slens.dev/u/tesalovdima)
#### Post date: [August 15, 2024, 7:46am UTC](https://forums.k8slens.dev/t/failed-to-refresh-accessibility-rangeerror-maximum-call-stack-size-exceeded/434/9 "2024-08-15T07:46:43Z")

</div>

i have same problem, kubectl work correctly

---

<div class="post-metadata">

### Author: ![aleksfront](https://forums.k8slens.dev/letter_avatar_proxy/v4/letter/a/e480ec/32.png) [@aleksfront](https://forums.k8slens.dev/u/aleksfront)
#### Post date: [August 19, 2024, 7:35am UTC](https://forums.k8slens.dev/t/failed-to-refresh-accessibility-rangeerror-maximum-call-stack-size-exceeded/434/10 "2024-08-19T07:35:59Z")

</div>

Some additional information would help us to resolve the issue. @tesalovdima  
can you provide following information?

1. Cluster kubeconfig structure with omitted sensitive data.
2. Try to connect EKS cluster, see the error and than Go to Menu → Export Support Logs. In a provided file try to find lines with `refreshAccessibility` and `refreshMetadata` keywords. Do they both found in logs?

---

<div class="post-metadata">

### Author: ![evanhoucke](https://forums.k8slens.dev/user_avatar/forums.k8slens.dev/evanhoucke/32/1290_2.png) [@evanhoucke](https://forums.k8slens.dev/u/evanhoucke)
#### Post date: [August 23, 2024, 4:04pm UTC](https://forums.k8slens.dev/t/failed-to-refresh-accessibility-rangeerror-maximum-call-stack-size-exceeded/434/12 "2024-08-23T16:04:02Z")

</div>

Hello,  
I have the same issue. kubectl work correctly.  
I encounter this problem when I add Prometheus adapter. It adds an API to the list of resources.

```auto
debug: [LIST-API-RESOURCES]: found the following groupLists {"clusterId":"f542d147b9f1a370089e378b7400883c","groupLists":[{"group":"","path":"/api/v1"},{"group":"apiregistration.k8s.io","path":"/apis/apiregistration.k8s.io/v1"},{"group":"apps","path":"/apis/apps/v1"},{"group":"events.k8s.io","path":"/apis/events.k8s.io/v1"},{"group":"authentication.k8s.io","path":"/apis/authentication.k8s.io/v1"},{"group":"authorization.k8s.io","path":"/apis/authorization.k8s.io/v1"},{"group":"autoscaling","path":"/apis/autoscaling/v2"},{"group":"autoscaling","path":"/apis/autoscaling/v1"},{"group":"autoscaling","path":"/apis/autoscaling/v2beta2"},{"group":"batch","path":"/apis/batch/v1"},{"group":"certificates.k8s.io","path":"/apis/certificates.k8s.io/v1"},{"group":"networking.k8s.io","path":"/apis/networking.k8s.io/v1"},{"group":"policy","path":"/apis/policy/v1"},{"group":"rbac.authorization.k8s.io","path":"/apis/rbac.authorization.k8s.io/v1"},{"group":"storage.k8s.io","path":"/apis/storage.k8s.io/v1"},{"group":"storage.k8s.io","path":"/apis/storage.k8s.io/v1beta1"},{"group":"admissionregistration.k8s.io","path":"/apis/admissionregistration.k8s.io/v1"},{"group":"apiextensions.k8s.io","path":"/apis/apiextensions.k8s.io/v1"},{"group":"scheduling.k8s.io","path":"/apis/scheduling.k8s.io/v1"},{"group":"coordination.k8s.io","path":"/apis/coordination.k8s.io/v1"},{"group":"node.k8s.io","path":"/apis/node.k8s.io/v1"},{"group":"discovery.k8s.io","path":"/apis/discovery.k8s.io/v1"},{"group":"flowcontrol.apiserver.k8s.io","path":"/apis/flowcontrol.apiserver.k8s.io/v1beta2"},{"group":"flowcontrol.apiserver.k8s.io","path":"/apis/flowcontrol.apiserver.k8s.io/v1beta1"},{"group":"azmon.app.monitoring","path":"/apis/azmon.app.monitoring/v1"},{"group":"monitoring.coreos.com","path":"/apis/monitoring.coreos.com/v1"},{"group":"monitoring.coreos.com","path":"/apis/monitoring.coreos.com/v1alpha1"},{"group":"snapshot.storage.k8s.io","path":"/apis/snapshot.storage.k8s.io/v1"},{"group":"snapshot.storage.k8s.io","path":"/apis/snapshot.storage.k8s.io/v1beta1"},{"group":"custom.metrics.k8s.io","path":"/apis/custom.metrics.k8s.io/v1beta1"},{"group":"metrics.k8s.io","path":"/apis/metrics.k8s.io/v1beta1"}]}
error: Failed to refresh accessibility: RangeError: Maximum call stack size exceeded {"meta":{"accessible":true,"disconnected":false,"id":"f542d147b9f1a370089e378b7400883c","name":"aks-q-berg-middle-01","online":true,"ready":false}}

```

Any idea ?
