-
Notifications
You must be signed in to change notification settings - Fork 600
Unexpected token < in JSON at position 0 #895
Comments
access listenmqtt fix this line to debuffer |
Hi, Appreciate the reply but I'm not sure which line in listenmqtt you're referring and how I'll "debuffer" it. I'm sorry, I'm just new to this. I'm still learning. |
Seeing the same issue. Started occurring a couple of days ago. |
In my case the line to parse was |
i've never seen that format before, could you tell me what topic did you get that from? |
I do this:
It looks like the sequence is: Seems like I get this message every time someone texts me (or when I text someone as I'm self listening). Can't tell whether there is a pattern in that but I'm getting these messages for couple days now. |
mqttClient.on('message', function(topic, message, packet) {
|
line 117 |
If anyone is having this problem, please install my test branch (by using the command below) and edit your code so that it will log the error (preferability to file to ensure that you don't miss the error) and publish the error dump here. Thank you. npm i https://github.com/BadAimWeeb/facebook-chat-api.git#test-mqttformat Note: This test branch is not based on |
Thanks @w3webtool, It seems that it's working now. Tho I didn't tested it much yet. |
I guess I should close this issue now.. Thanks everyone who helped! |
Hi, I keep having this error. Please help.
It seems to be having problem parsing the message. I'm not really sure.
I'm a JS noob.
Code:
The text was updated successfully, but these errors were encountered: