Code Monkey home page Code Monkey logo

Comments (8)

tlyakhov avatar tlyakhov commented on July 20, 2024

Hm it's hanging during the first SSL login request to MyLeviton. I'm not sure what's different about your networking environment, but something isn't letting the requests through. Could it be a firewall, router, or VPN issue?

from python-decora_wifi.

bjm904 avatar bjm904 commented on July 20, 2024

It does appear to be a ssl issue. I tried curl -v https://my.leviton.com/api

Trying 52.70.248.144...
TCP_NODELAY set
Connected to my.leviton.com (52.70.248.144) port 443 (#0)
ALPN, offering http/1.1
Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
successfully set certificate verify locations:
CAfile: /usr/share/curl/ca-bundle.crt
CApath: none
TLSv1.2 (OUT), TLS header, Certificate Status (22):
TLSv1.2 (OUT), TLS handshake, Client hello (1):
Unknown SSL protocol error in connection to my.leviton.com:443
Curl_http_done: called premature == 1
Closing connection 0
curl: (35) Unknown SSL protocol error in connection to my.leviton.com:443

I have not had any issues with other SSL connections. I tired all versions of ssl/tls manually:

curl -v --tlsv1.0 https://my.leviton.com/api
curl -v --tlsv1.1 https://my.leviton.com/api
curl -v --tlsv1.2 https://my.leviton.com/api
curl -v --sslv3 https://my.leviton.com/api


Fixed it. For completeness I'm going to explain what happened.

Turns out it was an issue with my network. MTU got set down to 1480. Setting it to 1500 fixed it. On my Mikrotik RouterOS router, a bridge interface's MTU decreased to 1480 after creating an EOIP tunnel that defaulted to 1480. After setting the EOIP tunnel to use 1500 MTU, the bridge changed to 1500 and everything started working correctly.

from python-decora_wifi.

bjm904 avatar bjm904 commented on July 20, 2024

Worth noting that I have not noticed any other SSL connections not working on the network during this time. Possibly there is an argument you can add to the network calls that can work around this.

from python-decora_wifi.

craigjmidwinter avatar craigjmidwinter commented on July 20, 2024

interesting. I've got the exact same issue, but MTU is 1500 on the network

from python-decora_wifi.

tlyakhov avatar tlyakhov commented on July 20, 2024

Can you connect to https://my.leviton.com/api?

from python-decora_wifi.

craigjmidwinter avatar craigjmidwinter commented on July 20, 2024

Yeah, curling it returns the There is no method to handle GET / response though

from python-decora_wifi.

tlyakhov avatar tlyakhov commented on July 20, 2024

And the traceback you're seeing is identical? Hanging on the session.login method?

from python-decora_wifi.

craigjmidwinter avatar craigjmidwinter commented on July 20, 2024

I have no idea what changed but when I tried yesterday it started working

from python-decora_wifi.

Related Issues (16)

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.