# Kibana Canvas error: Invalid string. Length must be a multiple of 4

**URL:** https://discuss.elastic.co/t/kibana-canvas-error-invalid-string-length-must-be-a-multiple-of-4/314286
**Category:** Kibana
**Created:** [September 13, 2022, 11:22am UTC](https://discuss.elastic.co/t/kibana-canvas-error-invalid-string-length-must-be-a-multiple-of-4/314286 "2022-09-13T11:22:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bhavya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavya/32/45679_2.png) [@bhavya](https://discuss.elastic.co/u/bhavya)
#### Post date: [September 13, 2022, 11:22am UTC](https://discuss.elastic.co/t/kibana-canvas-error-invalid-string-length-must-be-a-multiple-of-4/314286/1 "2022-09-13T11:22:06Z")

</div>

I am using version 7.16.2 of Kibana. I am adding a dropdown filter in Canvas.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/8/b83eff195715e9ca635e414b7a7a0862076f15c7.png)

Let's say the index pattern is `*-*_stage`. This index pattern includes 100 data streams. When trying to add this index pattern in the Canvas dropdown filter, I am getting this error:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/6/269487768ed806b9e64de3096baf9341ae0d52a8.png)

Can anyone please help me resolve this issue ?

---

<div class="post-metadata">

### Author: ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)
#### Post date: [September 26, 2022, 5:42pm UTC](https://discuss.elastic.co/t/kibana-canvas-error-invalid-string-length-must-be-a-multiple-of-4/314286/2 "2022-09-26T17:42:40Z")

</div>

here are few things you can try 🙂  
Could you try to go to advanced settings and enabled `bfetch:disableCompression` ?

Not sure what is a culprit, but I'd try to increase memory first:[Use Kibana in a production environment | Kibana Guide [8.4] | Elastic](https://www.elastic.co/guide/en/kibana/current/production.html#memory)

probably,would you be able to share a HAR? (check there is no sensitive data)?

Here is how to get HAR file with network traffic recorded: [Capture web session traffic - Google Ad Manager Help](https://support.google.com/admanager/answer/10358597?hl=en)  
(make sure there is no sensitive data before sharing: the best would be if you could reproduce on test cluster with test data)

thanks  
Rashmi

---

<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 24, 2022, 5:42pm UTC](https://discuss.elastic.co/t/kibana-canvas-error-invalid-string-length-must-be-a-multiple-of-4/314286/3 "2022-10-24T17:42:50Z")

</div>

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