# Cannot read properties of undefined (reading 'statusCode')

**URL:** <https://discuss.elastic.co/t/cannot-read-properties-of-undefined-reading-statuscode/285141>\
**Category:** Kibana\
**Created:** [September 25, 2021, 7:50pm UTC](https://discuss.elastic.co/t/cannot-read-properties-of-undefined-reading-statuscode/285141 "2021-09-25T19:50:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammad.ali](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammad.ali/32/45665_2.png) [@Mohammad.ali](https://discuss.elastic.co/u/Mohammad.ali)\
**Post date:** [September 25, 2021, 7:50pm UTC](https://discuss.elastic.co/t/cannot-read-properties-of-undefined-reading-statuscode/285141/1 "2021-09-25T19:50:37Z")

</div>

Hello everyone  
currently iam using kibana 7.6.1..i have a index with more than 4k fields and what i need to do is to refresh field list regarding our developer created new fields ..when i do that it takes long time and kibana throw an error: Cannot read properties of undefined (reading 'statusCode').  
it should be consider that i have set the limit number of fields in my template already.  
this is the full error:

```auto
TypeError: Cannot read properties of undefined (reading 'statusCode')
    at http://192.168.2.15:5601/bundles/commons.bundle.js:3:1370024

```

---

<div class="post-metadata">

**Author:** ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)\
**Post date:** [September 27, 2021, 8:10am UTC](https://discuss.elastic.co/t/cannot-read-properties-of-undefined-reading-statuscode/285141/2 "2021-09-27T08:10:15Z")

</div>

Hi @Mohammad.ali ,

welcome to the Kibana community.  
In which application are you having that error? Management, Discover, something else?

---

<div class="post-metadata">

**Author:** ![Mohammad.ali](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammad.ali/32/45665_2.png) [@Mohammad.ali](https://discuss.elastic.co/u/Mohammad.ali)\
**Post date:** [September 27, 2021, 8:53am UTC](https://discuss.elastic.co/t/cannot-read-properties-of-undefined-reading-statuscode/285141/3 "2021-09-27T08:53:32Z")

</div>

Hello @Marco_Liberati  
thanks for your warm welcome

well when i hit refresh field in index pattern in kibana i got this error.....Please consider i have more than 4k fields in my index

---

<div class="post-metadata">

**Author:** ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)\
**Post date:** [September 27, 2021, 9:56am UTC](https://discuss.elastic.co/t/cannot-read-properties-of-undefined-reading-statuscode/285141/4 "2021-09-27T09:56:09Z")

</div>

I found this issue which looks pretty close to your case: [https://github.com/elastic/kibana/issues/69389](https://github.com/elastic/kibana/issues/69389)

In newer version of Kibana (\> 7.11.0) the field list is [no longer manually refreshed](https://github.com/elastic/kibana/pull/82223) and various fixes have been deployed to improve user's experience, but having a very large number ( tens of thousands) of fields seems to still be an open issue, so for your tracking this the also the ES issue about that: [https://github.com/elastic/elasticsearch/issues/76509](https://github.com/elastic/elasticsearch/issues/76509)

---

<div class="post-metadata">

**Author:** ![Mohammad.ali](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammad.ali/32/45665_2.png) [@Mohammad.ali](https://discuss.elastic.co/u/Mohammad.ali)\
**Post date:** [September 28, 2021, 7:25am UTC](https://discuss.elastic.co/t/cannot-read-properties-of-undefined-reading-statuscode/285141/5 "2021-09-28T07:25:03Z")

</div>

Thanks alot..so it seems that my current kibana version has issue with large number of index fields.  
i need to upgrade kibana.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 26, 2021, 7:25am UTC](https://discuss.elastic.co/t/cannot-read-properties-of-undefined-reading-statuscode/285141/6 "2021-10-26T07:25:20Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
