Code Monkey home page Code Monkey logo

Comments (3)

FerumFist avatar FerumFist commented on August 23, 2024 2

Logs:

Traceback (most recent call last):
  File "C:/.../toy.py", line 34, in <module>
    loop.run_until_complete(get_information())
  File "C:\Users\...\AppData\Local\Continuum\anaconda3\envs\py36\lib\asyncio\base_events.py", line 488, in run_until_complete
    return future.result()
  File "C:/.../toy.py", line 19, in get_information
{'id': ###ID_REMOVED###, 'vin': '###VIN_REMOVED###', 'isNC': False, 'alias': 'RAV4', 'owner': False, 'vehicleAddedOn': '2021-07-07T10:18:22.286Z', 'isEntitled': False, 'hasAutomaticMMRegistration': False, 'ownerFlag': False, 'source': 'NMSC', 'connected': False, 'connectedService': {'devices': [], 'registrationPreReqs': [], 'registrationTerms': [], 'wifiBoxData': None}, 'fud': False}
    print(await client.gather_all_information_json())
  File "C:\Users\...\AppData\Local\Continuum\anaconda3\envs\py36\lib\site-packages\mytoyota\client.py", line 138, in gather_all_information_json
    vehicles = await self.gather_all_information()
  File "C:\Users\...\AppData\Local\Continuum\anaconda3\envs\py36\lib\site-packages\mytoyota\client.py", line 130, in gather_all_information
    vehicle = await self.get_vehicle_information(car)
  File "C:\Users\...\AppData\Local\Continuum\anaconda3\envs\py36\lib\site-packages\mytoyota\client.py", line 111, in get_vehicle_information
    status=info[3],
  File "C:\Users\...\AppData\Local\Continuum\anaconda3\envs\py36\lib\site-packages\mytoyota\vehicle.py", line 41, in __init__
    connected_services
  File "C:\Users\...\AppData\Local\Continuum\anaconda3\envs\py36\lib\site-packages\mytoyota\vehicle.py", line 91, in has_connected_services_enabled
    and json_dict["connectedService"]["status"] == "ACTIVE"
KeyError: 'status'

Nvm you were right, it is actually caused by the old car, just tested it, it confirms the new corolla, then hangs at the old RAV4.

from mytoyota.

DurgNomis-drol avatar DurgNomis-drol commented on August 23, 2024

Can you please provide logs also, so I can understand what the error message is?

Edit:
I believe it is coursed by your car model (RAV 4 from 2007) and not country 😊

from mytoyota.

DurgNomis-drol avatar DurgNomis-drol commented on August 23, 2024

Thanks for checking! I will add some code to make sure you can only add supported cars. 😁

from mytoyota.

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.