Comments (3)
The 401 return code means "unauthorized", so something went sideways during authentication. Lines 770 and 771 handle return codes over 400 (authorization issues):
if r.status_code >= 400: # ignore successful and redirected codes
raise HTTPCodeException("Got HTTP%d; %s"%(r.status_code, r.text), r.status_code)
Ignoring a 401 code can raise a red flag on your account, I wouldn't do it easily.
from sc2mqtt.
Account data is correct and everything is fine when I comment out the lines. I receive correct data from my cars.
from sc2mqtt.
I investigated this a little bit more. Soulution is NOT to comment out line 770-771 - you are absolutely right.
Problem with my account is, that getVehicleRights(car) seems to fail with 401. Don't know why. I haven't confirmed my account by a Skoda service partner (so I am not able to open/close the vehicle via app). Maybe this is the reason?
If I comment out grabbing the VehicleRights, everything works fine.
Line 919 in 11a6f33
from sc2mqtt.
Related Issues (3)
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 sc2mqtt.