Giter Club home page Giter Club logo

Comments (24)

codetheweb avatar codetheweb commented on June 16, 2024 1

codetheweb/tuyapi#215 (comment)

from cli.

Apollon77 avatar Apollon77 commented on June 16, 2024 1

@codetheweb The lastest changes i did in my stuff to get it successfully working qith all problems cases from users is referenced in codetheweb/tuyapi#250 (comment) ... If you are faster then me to get the changes from there I can also prepare a PR

from cli.

Apollon77 avatar Apollon77 commented on June 16, 2024

When checking Charles then all requests are done using HTTP/2 and compressed ... compression should be supported by Anyproxy ... But all requests are shown as HTTP/1.1 there ... do'nt know if this is the problem ...

from cli.

Apollon77 avatar Apollon77 commented on June 16, 2024

Info: it seems that on Android App version 3.9 is working, app 3.10 not ... Android older version could be available at https://github.com/Apollon77/ioBroker.tuya/issues/url

from cli.

Apollon77 avatar Apollon77 commented on June 16, 2024

Is someone able to dig into the APp to check the differences? I would expect they added client certificated or other cert chain checking to the App ... but then decompiling could help to get the details /certs :)

from cli.

Apollon77 avatar Apollon77 commented on June 16, 2024

One info from one user (unverified):

The main difference beetween the packages version is the node. I downgraded the debian's 10.15.2 to 8.16.0 from nodesource and the proxy start working, even with the 3.11 Smart Life app. Before that, i got the network error in the app.

from cli.

codetheweb avatar codetheweb commented on June 16, 2024

Just tried with v8.16.0 and no success, although I do have the iOS 13 beta which may be part of the issue.

from cli.

Kleinstein-github avatar Kleinstein-github commented on June 16, 2024

tipp: make the iobroker hom plugin like the hombridge google home assistant plugin

from cli.

Apollon77 avatar Apollon77 commented on June 16, 2024

What do you mean?

from cli.

Kleinstein-github avatar Kleinstein-github commented on June 16, 2024

i mean like this: https://github.com/basdelfos/homebridge-tuya-web with the google api

from cli.

Apollon77 avatar Apollon77 commented on June 16, 2024

This is rather limited compared to the solution we have. And in fact the Proxy solution is still somehow working. Please use iobroker forum to get support.

from cli.

codetheweb avatar codetheweb commented on June 16, 2024

Meant to update this but forgot.

I took another look a few days ago and since AnyProxy isn't working with any HTTPS sites, my guess is that the issue is on their side.

I contacted Tuya and asked them if it was possible to add the localKey to responses in the Home Assistant API, but they refused.

from cli.

Apollon77 avatar Apollon77 commented on June 16, 2024

Maybe then we should open an issues anyproxy side??

from cli.

codetheweb avatar codetheweb commented on June 16, 2024

There's already 176 open issues, many of them similar to the problem we're facing. I think we need to find something else to use.

AnyProxy does work for HTTPS sites when requests come from my laptop, it just doesn't seem to work with iOS for some reason.

from cli.

Apollon77 avatar Apollon77 commented on June 16, 2024

:-( I searched. very long time till I found Anyproxy to use it here :-(

from cli.

Apollon77 avatar Apollon77 commented on June 16, 2024

That sounds awesome! I will adjust my code, test by myself and and also let users test it. If that works we are back into the game ;-)

from cli.

Apollon77 avatar Apollon77 commented on June 16, 2024

Adaopted your code and IT WORKS!! Great man. Thank you vry much!

from cli.

codetheweb avatar codetheweb commented on June 16, 2024

No problem, glad to hear it.

from cli.

Apollon77 avatar Apollon77 commented on June 16, 2024

@codetheweb I had some users with ECONNRESET and other ssl errors (Apollon77/ioBroker.tuya#67) ... I did some changes inspired from e.g. joeferner/node-http-mitm-proxy#165 and such ... see Apollon77/ioBroker.tuya@83c4a50 (main,js) ... I report back on results

from cli.

Apollon77 avatar Apollon77 commented on June 16, 2024

@codetheweb also the latest changes did not made it better ... https://forum.iobroker.net/topic/16103/aufruf-neuer-adapter-iobroker-tuya-wlan-devices-tuya-smart-life-und-andere/516 :-(

Still problems

from cli.

codetheweb avatar codetheweb commented on June 16, 2024

Hmm, unfortunately there's a lot variables that can result in weird errors like you're seeing. A few off the top of my head:

  • NodeJS version (in the issue you linked to, some versions worked, some didn't)
  • The underlying http-mitm-proxy package
  • OSes
  • Different localizations (although I don't think this should be an issue for what we're doing)
  • Network conditions

All that to say that it's really hard to reproduce most issues users see in this area unless they give great detail about their environment.

If you/others are able to consistently reproduce any problem, please open an issue with as much detail as possible. Otherwise, I'm sorry but I can't really help.

from cli.

Apollon77 avatar Apollon77 commented on June 16, 2024

@codetheweb I mainly posted it here as status update that you know stuff if tuya-cli users are coming with them ...

from cli.

codetheweb avatar codetheweb commented on June 16, 2024

👍

from cli.

Apollon77 avatar Apollon77 commented on June 16, 2024

I also did some adjustments on my code like reading full message and not only one chunk. As soon as it is proven I Update here too

from cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.