# "unexpected character at line 1 column 1 of the JSON data" trying to load sample data

**URL:** <https://discuss.elastic.co/t/unexpected-character-at-line-1-column-1-of-the-json-data-trying-to-load-sample-data/162040>\
**Category:** Kibana\
**Created:** [December 25, 2018, 2:26am UTC](https://discuss.elastic.co/t/unexpected-character-at-line-1-column-1-of-the-json-data-trying-to-load-sample-data/162040 "2018-12-25T02:26:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![memelet](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@memelet](https://discuss.elastic.co/u/memelet)\
**Post date:** [December 25, 2018, 2:26am UTC](https://discuss.elastic.co/t/unexpected-character-at-line-1-column-1-of-the-json-data-trying-to-load-sample-data/162040/1 "2018-12-25T02:26:47Z")

</div>

No messages in the browser console. I get the same failure for all of the sample data sets. These seem to be the relevant kibana logs:

```auto
{"type":"log","@timestamp":"2018-12-25T02:24:38Z","tags":["warning"],"pid":6566,"message":"Unable to create sample data index \"kibana_sample_data_ecommerce\", error: Request Timeout after 30000ms"}
{"type":"error","@timestamp":"2018-12-25T02:24:38Z","tags":["warning","process"],"pid":6566,"level":"error","error":{"message":"Error: Status code must be an integer\n at Object.exports.assert (/usr/share/kibana/node_modules/hoek/lib/index.js:740:11)\n at module.exports.internals.Response.internals.Response.code (/usr/share/kibana/node_modules/hapi/lib/response.js:105:10)\n at handler (/usr/share/kibana/src/server/sample_data/routes/install.js:131:32)\n at <anonymous>","name":"UnhandledPromiseRejectionWarning","stack":"UnhandledPromiseRejectionWarning: Error: Status code must be an integer\n at Object.exports.assert (/usr/share/kibana/node_modules/hoek/lib/index.js:740:11)\n at module.exports.internals.Response.internals.Response.code (/usr/share/kibana/node_modules/hapi/lib/response.js:105:10)\n at handler (/usr/share/kibana/src/server/sample_data/routes/install.js:131:32)\n at <anonymous>\n at emitWarning (internal/process/promises.js:65:17)\n at emitPendingUnhandledRejections (internal/process/promises.js:109:11)\n at runMicrotasksCallback (internal/process/next_tick.js:125:9)\n at _combinedTickCallback (internal/process/next_tick.js:132:7)\n at process._tickDomainCallback (internal/process/next_tick.js:219:9)"},"message":"Error: Status code must be an integer\n at Object.exports.assert (/usr/share/kibana/node_modules/hoek/lib/index.js:740:11)\n at module.exports.internals.Response.internals.Response.code (/usr/share/kibana/node_modules/hapi/lib/response.js:105:10)\n at handler (/usr/share/kibana/src/server/sample_data/routes/install.js:131:32)\n at <anonymous>"}
{"type":"error","@timestamp":"2018-12-25T02:24:38Z","tags":["warning","process"],"pid":6566,"level":"error","error":{"message":"Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 8)","name":"UnhandledPromiseRejectionWarning","stack":"Error: Status code must be an integer\n at Object.exports.assert (/usr/share/kibana/node_modules/hoek/lib/index.js:740:11)\n at module.exports.internals.Response.internals.Response.code (/usr/share/kibana/node_modules/hapi/lib/response.js:105:10)\n at handler (/usr/share/kibana/src/server/sample_data/routes/install.js:131:32)\n at <anonymous>"},"message":"Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 8)"}

```

---

<div class="post-metadata">

**Author:** ![sebastien](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sebastien/32/36119_2.png) [@sebastien](https://discuss.elastic.co/u/sebastien)\
**Post date:** [December 25, 2018, 8:24am UTC](https://discuss.elastic.co/t/unexpected-character-at-line-1-column-1-of-the-json-data-trying-to-load-sample-data/162040/2 "2018-12-25T08:24:30Z")

</div>

Hi memelet

In order to be able to help you we would need more context about the error you are getting. Which Kibana version are you running? What are the steps to reproduce the issue?

Thank you

---

<div class="post-metadata">

**Author:** ![memelet](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@memelet](https://discuss.elastic.co/u/memelet)\
**Post date:** [December 25, 2018, 6:48pm UTC](https://discuss.elastic.co/t/unexpected-character-at-line-1-column-1-of-the-json-data-trying-to-load-sample-data/162040/3 "2018-12-25T18:48:16Z")

</div>

Sorry, meant to add the details...

es 6.5.3  
kibana 6.5.3  
readonlyrest\_kbn kibana plugin (did not think was being installed when I reported the above)

single node cluster  
new install

first login with kibana -- no data indices or index patterns

...  
Just created a fresh install of es and kibana _without_ the ror kibana plugin and do not get this error. So the problem seems to be pointing to ror. I'll report on the ror forum.

thanks!

---

<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:** [January 22, 2019, 6:48pm UTC](https://discuss.elastic.co/t/unexpected-character-at-line-1-column-1-of-the-json-data-trying-to-load-sample-data/162040/4 "2019-01-22T18:48:27Z")

</div>

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