# Simulate Kibana through a node.js client

**URL:** <https://discuss.elastic.co/t/simulate-kibana-through-a-node-js-client/140850>\
**Category:** Kibana\
**Created:** [July 20, 2018, 8:08am UTC](https://discuss.elastic.co/t/simulate-kibana-through-a-node-js-client/140850 "2018-07-20T08:08:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EldrosKandar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eldroskandar/32/33188_2.png) [@EldrosKandar](https://discuss.elastic.co/u/EldrosKandar)\
**Post date:** [July 20, 2018, 8:08am UTC](https://discuss.elastic.co/t/simulate-kibana-through-a-node-js-client/140850/1 "2018-07-20T08:08:54Z")

</div>

I was digging into [https://github.com/elastic/kibana/issues/20820](https://github.com/elastic/kibana/issues/20820) to see if I can provide more information when I stumbled upon the following question on Stack Overflow:

> <https://stackoverflow.com/questions/50578680/elasticsearcherror-unable-to-parse-serialize-body>

This seemed similar to the issue I have and seems to point at node.js being the culprit instead of Angular as I first suspected.

I wanted to do the following using [elasticsearch.js](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/about.html).  
I set up a node.js release 6.12.2 and did an npm install of the 14.2.1 release of elasticsearch.js, but I couldn't reproduce the issue, as the answer isn't cropped...

So, I have a few questions, to be sure I am doing things correctly:

- Is it the right tool to do such a simulation? So far I couldn't reproduce the issue.
- I want to simulate both my current version (6.2.4) and the next major version (6.3.0), how can I find out which node.js is being used by Kibana for those releases? I've been referencing the .node-version history to get as much an accurate version number as I can.
- How can I be sure to use the correct node.js version while using elasticsearch.js? As before I have been referring to .node-version, but also to package.json for the release of elasticsearch.js to use.

---

<div class="post-metadata">

**Author:** ![EldrosKandar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eldroskandar/32/33188_2.png) [@EldrosKandar](https://discuss.elastic.co/u/EldrosKandar)\
**Post date:** [July 20, 2018, 11:00am UTC](https://discuss.elastic.co/t/simulate-kibana-through-a-node-js-client/140850/2 "2018-07-20T11:00:53Z")

</div>

Added some information

---

<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:** [August 17, 2018, 11:00am UTC](https://discuss.elastic.co/t/simulate-kibana-through-a-node-js-client/140850/3 "2018-08-17T11:00:54Z")

</div>

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