Coder Social home page Coder Social logo

Comments (3)

DBa2016 avatar DBa2016 commented on August 30, 2024

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.

mschlenstedt avatar mschlenstedt commented on August 30, 2024

Account data is correct and everything is fine when I comment out the lines. I receive correct data from my cars.

from sc2mqtt.

mschlenstedt avatar mschlenstedt commented on August 30, 2024

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.

t = await self.getVehicleRights(car)

from sc2mqtt.

Related Issues (3)

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.