Giter Club home page Giter Club logo

Comments (4)

the-mace avatar the-mace commented on July 1, 2024

Ok bit of an unusual case with the cancelled order but I added more protection around that area in 7cf05c6

from rivian-python-api.

dholt avatar dholt commented on July 1, 2024

I'm having a similar issue after the fix:

Order details missing key items, found: None Traceback (most recent call last): File "src/rivian_python_api/rivian_cli.py", line 1232, in <module> main() File "src/rivian_python_api/rivian_cli.py", line 765, in main vehicle_id = vehicle['vehicleId'] ~~~~~~~^^^^^^^^^^^^^ KeyError: 'vehicleId'

I don't have a cancelled order but I do have an open R1S reservation and a delivered R1T

I don't see the string vehicleId anywhere in the output from --vehicle_orders

I've noticed an oddity in the "Item" field, I sometimes get R1T and sometimes get PROCWY2KT5 (I had one VIN almost delivered and had to switch to a new VIN)

'VEHICLE_DELIVERED', 'items': [{'__typename': 'OrderItem', 'sku': 'R1T'}, {'__typename': 'OrderItem', 'sku': 'PROCWY2KT5'}]

from rivian-python-api.

the-mace avatar the-mace commented on July 1, 2024

I added protection for the exception but there's nothing I can really do about them returning odd data or not returning proper information. Does it show any of this stuff in their app or site?

from rivian-python-api.

dholt avatar dholt commented on July 1, 2024

No the app/website don't show that. Your change fixes it enough for me though, thank you

from rivian-python-api.

Related Issues (4)

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.