Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List-App throws JSON Parse Error #26

Closed
AndreAuth opened this issue Sep 8, 2019 · 7 comments
Closed

List-App throws JSON Parse Error #26

AndreAuth opened this issue Sep 8, 2019 · 7 comments

Comments

@AndreAuth
Copy link

Hello,

in the new Version i get an JSON Parse Error when i try to list my smartlife devices.

I have got an IPhone.

Here is the error :

SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at C:\Users\Andre\AppData\Roaming\npm\node_modules@tuyapi\cli\lib\list-app.js:28:23
at C:\Users\Andre\AppData\Roaming\npm\node_modules@tuyapi\cli\node_modules\http-mitm-proxy\lib\proxy.js:1047:12
at C:\Users\xxx\AppData\Roaming\npm\node_modules@tuyapi\cli\node_modules\async\dist\async.js:3110:16
at eachOfArrayLike (C:\Users\xxx\AppData\Roaming\npm\node_modules@tuyapi\cli\node_modules\async\dist\async.js:1069:9)
at eachOf (C:\Users\xxx\AppData\Roaming\npm\node_modules@tuyapi\cli\node_modules\async\dist\async.js:1117:5)
at Object.eachLimit (C:\Users\xxx\AppData\Roaming\npm\node_modules@tuyapi\cli\node_modules\async\dist\async.js:3172:5)
at Proxy._onResponseData (C:\Users\xxx\AppData\Roaming\npm\node_modules@tuyapi\cli\node_modules\http-mitm-proxy\lib\proxy.js:1046:9)
at ProxyFinalResponseFilter.write (C:\Users\xxx\AppData\Roaming\npm\node_modules@tuyapi\cli\node_modules\http-mitm-proxy\lib\proxy.js:875:11)
at IncomingMessage.ondata (_stream_readable.js:722:22)

@codetheweb
Copy link
Member

Are you using the Tuya Smart app or some other white-labeled app? I've only tested this tool with the Tuya Smart app and don't plan on providing support for or testing it with other apps.

@AndreAuth
Copy link
Author

AndreAuth commented Sep 9, 2019

I have used a white-labeled one and the tuya app. Both apps have the problem.

I think i might know what causes the problem.

As soon as i add this bulb to my tuya app i get the error:

https://www.amazon.de/gp/product/B07PV5LBCZ/ref=ppx_yo_dt_b_asin_title_o03_s00?ie=UTF8&psc=1

All other tuya devices i have are working fine if i remove the bulb.

@codetheweb
Copy link
Member

Please update the CLI tool to v1.8.2 and try again; I just pushed an update that I think will fix this.

@AndreAuth
Copy link
Author

I tried it. No it doesn't work. Now it wont show any error or any json output. It still says: waiting for request and nothing happens.

@ptrWe
Copy link

ptrWe commented Sep 21, 2019

I tried it. No it doesn't work. Now it wont show any error or any json output. It still says: waiting for request and nothing happens.

Have the same issue with version 1.8.3 and had the same JSON Parse Error with the previous version.
I am using the SmartLife App under Android

@codetheweb
Copy link
Member

Please update to v1.8.4 and try again. Just shipped a patch that should fix this issue.

@codetheweb
Copy link
Member

Another user reported the update fixed this problem.

If either of you continue to have issues, please reopen this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants