# Unexpected token u in JSON at position 0

**URL:** <https://discuss.elastic.co/t/unexpected-token-u-in-json-at-position-0/243997>\
**Category:** Kibana\
**Created:** [August 6, 2020, 9:46am UTC](https://discuss.elastic.co/t/unexpected-token-u-in-json-at-position-0/243997 "2020-08-06T09:46:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NagleZhang](https://avatars.discourse-cdn.com/v4/letter/n/b3f665/32.png) [@NagleZhang](https://discuss.elastic.co/u/NagleZhang)\
**Post date:** [August 6, 2020, 9:46am UTC](https://discuss.elastic.co/t/unexpected-token-u-in-json-at-position-0/243997/1 "2020-08-06T09:46:54Z")

</div>

## full stack error

```auto
SyntaxError: Unexpected token u in JSON at position 0
    at JSON.parse (<anonymous>)
    at https://mydomain/bundles/commons.bundle.js:3:3397719
    at https://mydomain/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:94842
    at https://mydomain/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:94980
    at u.$digest (https://mydomain/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:100155)
    at https://mydomain/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:102127
    at Yo.completeTask (https://mydomain/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:122692)
    at https://mydomain/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:34257

```

## error message from chrome inspect

```auto
Refused to execute inline script because it violates the following Content Security Policy directive: 
"script-src 'unsafe-eval' 'self'". 
Either the 'unsafe-inline' keyword, 
a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), 
or a nonce ('nonce-...') is required to enable inline execution.

```

---

<div class="post-metadata">

**Author:** ![NagleZhang](https://avatars.discourse-cdn.com/v4/letter/n/b3f665/32.png) [@NagleZhang](https://discuss.elastic.co/u/NagleZhang)\
**Post date:** [August 7, 2020, 1:52am UTC](https://discuss.elastic.co/t/unexpected-token-u-in-json-at-position-0/243997/2 "2020-08-07T01:52:01Z")

</div>

can anyone help ? need to figure out what is happening with kibana; and how I can resolve this problem.

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [August 12, 2020, 2:12pm UTC](https://discuss.elastic.co/t/unexpected-token-u-in-json-at-position-0/243997/3 "2020-08-12T14:12:10Z")

</div>

Can you provide some more details? What steps did you take to get this error message? What version of kibana are you using? What is your use case and what are you trying to do?

---

<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:** [September 9, 2020, 2:12pm UTC](https://discuss.elastic.co/t/unexpected-token-u-in-json-at-position-0/243997/4 "2020-09-09T14:12:10Z")

</div>

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