# How can I resolve Unexpected token error using 2jcie ble node?

**URL:** <https://discourse.nodered.org/t/how-can-i-resolve-unexpected-token-error-using-2jcie-ble-node/46388>\
**Category:** General\
**Created:** [28 May 2021 07:12 UTC](https://discourse.nodered.org/t/how-can-i-resolve-unexpected-token-error-using-2jcie-ble-node/46388 "2021-05-28T07:12:58Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![hashimoto](https://avatars.discourse-cdn.com/v4/letter/h/d9b06d/32.png) [@hashimoto](https://discourse.nodered.org/u/hashimoto)\
**Post date:** [28 May 2021 07:12 UTC](https://discourse.nodered.org/t/how-can-i-resolve-unexpected-token-error-using-2jcie-ble-node/46388/1 "2021-05-28T07:12:58Z")

</div>

Hi,  
I want to use node, "@uhuru/node-red-contrib-omron-2jcie-bu-ble."  
However, when I deploy simple flow consists of three nodes, inject- ble - debug,  
error, such as "SyntaxError:Unexpected token u in JSON at position 0," happens  
and flow does not work.

Environments:  
Raspberry Pi 3  
Raspberry Pi 3 OS Full(32 bit)  
Node-RED v.1.3.4  
Node.js V10.24.0  
Linux 5.10.17-v7+ arm LE

I installed ble node from Pallet in Node-RED

Any help ?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [28 May 2021 09:00 UTC](https://discourse.nodered.org/t/how-can-i-resolve-unexpected-token-error-using-2jcie-ble-node/46388/2 "2021-05-28T09:00:37Z")

</div>

Did you set the privelidges as described in the read me?

> **[@uhuru/node-red-contrib-omron-2jcie-bu-ble](https://flows.nodered.org/node/@uhuru/node-red-contrib-omron-2jcie-bu-ble)**
>
> This README would normally document whatever steps are necessary to get your application up and running.

---

<div class="post-metadata">

**Author:** ![hashimoto](https://avatars.discourse-cdn.com/v4/letter/h/d9b06d/32.png) [@hashimoto](https://discourse.nodered.org/u/hashimoto)\
**Post date:** [28 May 2021 09:24 UTC](https://discourse.nodered.org/t/how-can-i-resolve-unexpected-token-error-using-2jcie-ble-node/46388/3 "2021-05-28T09:24:36Z")

</div>

Thank you for your confirmation,

yes,

```auto
sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)

```

is done.

and requirement of python version is also satisfied.

But situation is not changed.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [28 May 2021 09:42 UTC](https://discourse.nodered.org/t/how-can-i-resolve-unexpected-token-error-using-2jcie-ble-node/46388/4 "2021-05-28T09:42:40Z")

</div>

What are you injecting into the node?

---

<div class="post-metadata">

**Author:** ![hashimoto](https://avatars.discourse-cdn.com/v4/letter/h/d9b06d/32.png) [@hashimoto](https://discourse.nodered.org/u/hashimoto)\
**Post date:** [28 May 2021 09:59 UTC](https://discourse.nodered.org/t/how-can-i-resolve-unexpected-token-error-using-2jcie-ble-node/46388/5 "2021-05-28T09:59:43Z")

</div>

Hi, thank you,

Simply I use inject node.

( In the read me , I found, For this node, the input msg object is just a trigger.)

Error message occured when "deploy".  
So, flow can not be deployed.

ble node could have some trouble about handling json data.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [28 May 2021 10:30 UTC](https://discourse.nodered.org/t/how-can-i-resolve-unexpected-token-error-using-2jcie-ble-node/46388/6 "2021-05-28T10:30:49Z")

</div>

> [@hashimoto](#):
>
> However, when I deploy simple flow consists of three nodes, inject- ble - debug,  
> error, such as "SyntaxError:Unexpected token u in JSON at position 0," happens

Have you got the inject node to trigger automatically (at start or periodically). If it is then disable the automatic inject for the moment.

Does the error appear immediately you deploy or when you click the inject node?

Which node is generating the error? I you hover over the node id above the error in the debug pane it should highlight the node giving the error. If it doesn't appear to highlight anything then click on the node id and it should take you to the node.

---

<div class="post-metadata">

**Author:** ![hashimoto](https://avatars.discourse-cdn.com/v4/letter/h/d9b06d/32.png) [@hashimoto](https://discourse.nodered.org/u/hashimoto)\
**Post date:** [30 May 2021 08:46 UTC](https://discourse.nodered.org/t/how-can-i-resolve-unexpected-token-error-using-2jcie-ble-node/46388/7 "2021-05-30T08:46:23Z")

</div>

Hi, thank you nice suggestion,

The error appear immediately when deploy.  
So clicking the inject node made nothing.

For verification,  
I have made very simple flow consist of only ble node and deploy.  
Then I also encountered  
"SyntaxError:Unexpected token u in JSON at position 0."  
There is only one node, ble node in the flow.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [30 May 2021 10:16 UTC](https://discourse.nodered.org/t/how-can-i-resolve-unexpected-token-error-using-2jcie-ble-node/46388/8 "2021-05-30T10:16:40Z")

</div>

This is something that should be reported to the node's author.

---

<div class="post-metadata">

**Author:** ![hashimoto](https://avatars.discourse-cdn.com/v4/letter/h/d9b06d/32.png) [@hashimoto](https://discourse.nodered.org/u/hashimoto)\
**Post date:** [31 May 2021 00:57 UTC](https://discourse.nodered.org/t/how-can-i-resolve-unexpected-token-error-using-2jcie-ble-node/46388/9 "2021-05-31T00:57:31Z")

</div>

Thank you,

How can I know contact mail address of node's author or Maintainers?  
Is there any advice ?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [31 May 2021 01:52 UTC](https://discourse.nodered.org/t/how-can-i-resolve-unexpected-token-error-using-2jcie-ble-node/46388/10 "2021-05-31T01:52:06Z")

</div>

If you go to the flow page and lookup the node and follow the name link you’ll see it is stored on [bitbucket.org](http://bitbucket.org)

You will probably need a bit bucket account. That is the best I can tell you.

---

<div class="post-metadata">

**Author:** ![hashimoto](https://avatars.discourse-cdn.com/v4/letter/h/d9b06d/32.png) [@hashimoto](https://discourse.nodered.org/u/hashimoto)\
**Post date:** [31 May 2021 05:13 UTC](https://discourse.nodered.org/t/how-can-i-resolve-unexpected-token-error-using-2jcie-ble-node/46388/11 "2021-05-31T05:13:36Z")

</div>

Thank you !

Best regard,

---

<div class="post-metadata">

**Author:** ![hashimoto](https://avatars.discourse-cdn.com/v4/letter/h/d9b06d/32.png) [@hashimoto](https://discourse.nodered.org/u/hashimoto)\
**Post date:** [4 June 2021 00:14 UTC](https://discourse.nodered.org/t/how-can-i-resolve-unexpected-token-error-using-2jcie-ble-node/46388/12 "2021-06-04T00:14:44Z")

</div>

Finally, I have resolved error.

Its some dependency.

After installing bluepy and adding its path, no error occurs.

Thank you, all.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [18 June 2021 00:15 UTC](https://discourse.nodered.org/t/how-can-i-resolve-unexpected-token-error-using-2jcie-ble-node/46388/13 "2021-06-18T00:15:38Z")

</div>

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