Closed MatGriffin closed 5 years ago
Try a few more times, AnyProxy is a bit unreliable in its current state.
If your Node version is less than 8.0.0, you might also want to try updating.
this had been working for me, and then I installed https://www.amazon.com/gp/product/B07FVST9YN/ref=oh_aui_detailpage_o06_s01?ie=UTF8&psc=1 one of these devices (shows up with a slightly different icon) and now I'm getting the same error every single time. Maybe there's some additional information in the packet?
I have same probrem.When I set Http proxy and refresh the devices list.The app (iOS) show "网络连接错误,请检测网络状态"(my iphone language is Chinese), and the tuya-cli always "Waiting for request..."。 I try to comfirm the proxy can be work, so I open the web brower then the tuya-cli throws an error,that mean the proxy is working,right?
@TechnoSwiss @mongelly what's your Node version? (node -v
)?
@TechnoSwiss @mongelly what's your Node version? (
node -v
)?
my Node version is v10.13.0
also version 10.13.0
Hey guys, I added debug statements to the CLI tool. Update with npm i @tuyapi/cli -g
and then post the output of DEBUG=* tuya-cli list-app
.
@codetheweb Thanks for adding that, should running that with the standard 'tuya-cli list-app' command output debug information, or does an additional parameter need to be added? (running this under Win10). After updating to your version with the debug statements, I'm not getting a crash now, and it's outputting the id/key pairs, including the ones for this new Teckin branded plug, because of course it's going to work when you're trying to debug it...
@TechnoSwiss that's likely due to NPM updating the AnyProxy dependency at the same time it updated the main package code.
Let me know if you have any problems after updating @mongelly.
Anyone who's still seeing issues with the parameters not popping up, please update tuya-cli with npm i @tuyapi/cli -g
and try again.
I'm closing this issue for now, feel free to reopen it or create a new one if necessary.
when I pull down to refresh the console throws an error, not sure what I need to here
`Set your HTTP proxy IP to 192.168.1.158 with port 8001. ⠹ Waiting for request.../usr/local/lib/node_modules/@tuyapi/cli/node_modules/brotli/build/encode.js:3 1<process.argv.length?process.argv[1].replace(/\/g,"/"):"unknown-program");b.arguments=process.argv.slice(2);"undefined"!==typeof module&&(module.exports=b);process.on("uncaughtException",function(a){if(!(a instanceof y))throw a;});b.inspect=function(){return"[Emscripten Module object]"}}else if(x)b.print||(b.print=print),"undefined"!=typeof printErr&&(b.printErr=printErr),b.read="undefined"!=typeof read?read:function(){throw"no read() available (jsc?)";},b.readBinary=function(a){if("function"=== ^
Error: read ECONNRESET at TCP.onStreamRead (internal/stream_base_commons.js:139:27)`