GithubHelp home page GithubHelp logo

Comments (2)

mpalermo73 avatar mpalermo73 commented on July 17, 2024

Little more details

I ran it a couple more times, and also added -v 2. It is indeed returning current json, and even. I ten ran it without verbose and it hung and died

-> % ./subarulink.py status
Traceback (most recent call last):
  File "/Users/username/GIT/subarulink/./subarulink.py", line 10, in <module>
    sys.exit(main())
  File "/Users/username/GIT/subarulink/subarulink/app/cli.py", line 674, in main
    LOOP.run_until_complete(cli.single_command(args.command, args.vin, cli.config))
  File "/Users/username/.pyenv/versions/3.9.5/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/Users/username/GIT/subarulink/subarulink/app/cli.py", line 489, in single_command
    if await self._connect(interactive=False, vin=vin):
  File "/Users/username/GIT/subarulink/subarulink/app/cli.py", line 373, in _connect
    if await self._ctrl.connect():
  File "/Users/username/GIT/subarulink/subarulink/controller.py", line 88, in connect
    self._parse_vehicle(vehicle)
  File "/Users/username/GIT/subarulink/subarulink/controller.py", line 801, in _parse_vehicle
    vin = vehicle["vin"].upper()
TypeError: 'NoneType' object is not subscriptable
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x1066fef10>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x1066d1f40>, 60.56923537)]']
connector: <aiohttp.connector.TCPConnector object at 0x1066fe040>

But now it's running OK.

 'subscriptionFeatures': ['SAFETY', 'Retail', 'REMOTE'],
 'subscriptionStatus': 'ACTIVE'}
Command 'status' completed for Crosstrek

(massively truncated, of course)

¯\(ツ)

I guess them?

M.

from subarulink.

G-Two avatar G-Two commented on July 17, 2024

@mpalermo73 It looks like this was a combination of something going wrong on Subaru's end (reporting that you have zero vehicles) combined with a logic bug in the CLI code. I can't do anything about the Subaru side, but I did fix the bug in the CLI, so you'll get a correct error message the next time it happens.

from subarulink.

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.