Comments (8)
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.
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.
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.
interesting. I've got the exact same issue, but MTU is 1500 on the network
from python-decora_wifi.
Can you connect to https://my.leviton.com/api?
from python-decora_wifi.
Yeah, curling it returns the There is no method to handle GET /
response though
from python-decora_wifi.
And the traceback you're seeing is identical? Hanging on the session.login method?
from python-decora_wifi.
I have no idea what changed but when I tried yesterday it started working
from python-decora_wifi.
Related Issues (16)
- Repeated 'Remote end closed connection without response' error and cannot turn switch on or off from HASS HOT 3
- Any way to control switch directly? HOT 5
- Fails to connect to leviton HOT 2
- 504 Error HOT 1
- Execute Activity HOT 4
- myLeviton API call (/Person/login) failed: 502 HOT 2
- Find or Get Switch by Name Instead of ID HOT 2
- myLeviton API call - App version 2.0 breaks login HOT 1
- How do I turn on/off a room? HOT 3
- Having trouble executing an activity! HOT 2
- Websocket API HOT 2
- REST API capacity limit? 502 Bad Gateway HOT 1
- Support Breaker Panels and Energy
- Rest API stopped working - 504 Gateway Time-out HOT 1
- Pypi Update
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-decora_wifi.