Giter VIP home page Giter VIP logo

Comments (5)

tillsteinbach avatar tillsteinbach commented on June 17, 2024

Hmmm, that is strange, I don't have any issues right now. Do you have any logfiles showing the problem? You can increase verbosity with -vvv

from weconnect-cli.

jochenpee avatar jochenpee commented on June 17, 2024

DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): login.apps.emea.vwapps.io:443
DEBUG:urllib3.connectionpool:https://login.apps.emea.vwapps.io:443 "GET /refresh/v1 HTTP/1.1" 200 3833
INFO:weconnect:Token refreshed
Traceback (most recent call last):
File "/usr/local/bin/wc-cli", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.8/site-packages/weconnect_cli/weconnect_cli.py", line 157, in main
weConnect.fillCacheFromJson(args.cachefile, maxAge=args.interval, maxAgePictures=args.pictureCache)
File "/usr/local/lib/python3.8/site-packages/weconnect/weconnect.py", line 241, in fillCacheFromJson
self.__cache = json.load(file)
File "/usr/local/lib/python3.8/json/init.py", line 293, in load
return loads(fp.read(),
File "/usr/local/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.8/json/decoder.py", line 340, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 671877 (char 671876)

That is what I get with -vvv.

from weconnect-cli.

tillsteinbach avatar tillsteinbach commented on June 17, 2024

Somehow your cache became corrupted. This is easy to fix, you just delete the cache file. I will implement that the cache will be deleted in this case.
Thank you for reporting this issue!

from weconnect-cli.

jochenpee avatar jochenpee commented on June 17, 2024

Thanks, that worked!
Great tool!

from weconnect-cli.

tillsteinbach avatar tillsteinbach commented on June 17, 2024

Fixed in 0.15.1.
The cache is now deleted automatically if corrupted. A message should still be shown to inform the user.

from weconnect-cli.

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.