Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Getting error calling weather API with SDK 6.0

Getting Error 

Companion: TypeError: Illegal invocation

at

weather.getWeatherData()

 

This only happens when I run this on actual device, but works on simulator. What is going wrong here? Is weather API not stable?

Best Answer
10 REPLIES 10

See

Author | ch, passion for improvement.

Best Answer
0 Votes

Amazing such a big bug but no one is bothered at fitbit to look into it

Best Answer
0 Votes

I think the weather code was tweaked in the most recent SDK versions, released in the last couple of days. Make sure you're using the latest.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

@Gondwana  - has there been any announcements on SDK since 4.3.1/6.0.1 was released, 08-11-2021 07:21 ?

Author | ch, passion for improvement.

Best Answer
0 Votes

I think they're up to 4.3.2 and 6.0.2 now.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

@Gondwana  - thanks, where can one see if  the latest version is being used or the announcement of it?

Author | ch, passion for improvement.

Best Answer
0 Votes
Hi
Best Answer
0 Votes

In CLI, it depends what you've got in package.json, and you'd need `npm i` or equivalent.

I don't know about Studio; I assume it automatically uses the most recent minor version.

Peter McLennan
Gondwana Software
Best Answer

@Gondwana  - thanks, tried Studio, it gave a popup of an update, but still can't rebuild old SDK projects. The generated code now runs out of memory on anything pre Versa 2.

 

Real shame as that stops support and improvements for projects on older watches already.

 

Any idea how to get around that?

 

Obviously will have to abandon Studio which is also a shame.

 

Is it possible to get the same old compact code with CLI somehow?

Author | ch, passion for improvement.

Best Answer
0 Votes

CLI lets you select any SDK version, I think.

Peter McLennan
Gondwana Software
Best Answer