Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Widget crashes on all Garmin devices #42

Open
bdo opened this issue Nov 6, 2023 · 0 comments · May be fixed by #43
Open

Widget crashes on all Garmin devices #42

bdo opened this issue Nov 6, 2023 · 0 comments · May be fixed by #43

Comments

@bdo
Copy link

bdo commented Nov 6, 2023

Hi @srwalter,

First and foremost, I am a big fan of your Garmin widget! Thanks for all your hard work on this!!!

Since this summer, the Tesla API has evolved they removed the display_name from the vehicle_data response. The unofficial documentation was update to reflect this following issue #728.

Because of Tesla's change, the widget crashes shortly after connecting, when trying to get the vehicle_data.

When debugging, this is what we see in the debug console:

Error: Unhandled Exception
Exception: UnexpectedTypeException: Expected Number/Float/Boolean/Long/Double, given null
Stack: 
  - setText() at 704b03c0.mb:5530 0x300043fd 
  - onUpdate() at /Users/bdoncieu/projects/garmin-tesla/source/MainView.mc:115 0x1000122f 

Encountered app crash.

The fix is simple: use the vehicle_name under the vehicle_state subsection of the /vehicle_data response.

@bdo bdo linked a pull request Nov 7, 2023 that will close this issue
2 tasks
@bdo bdo changed the title display_name is no longer part of Tesla's API vehicle_data response Widget crashes on all Garmin devices Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant