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

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 ?

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

Thank you for your confirmation,

yes,

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.

What are you injecting into the node?

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.

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.

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.

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

Thank you,

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

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

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

Thank you !

Best regard,

Finally, I have resolved error.

Its some dependency.

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

Thank you, all.

1 Like

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