FlyingDiver / Indigo-Connected-Drive

Plugin for the BMW Connected Drive portal
MIT License
3 stars 0 forks source link

'NoneType' object has no attribute 'longitude' #28

Closed ryanbuckner closed 11 months ago

ryanbuckner commented 11 months ago

Just started getting this error each polling period.

Could be related to this, but I haven't made any changes.

"is_vehicle_tracking_enabled": false,

Reloading plugin "Connected Drive 2022.1.1" using API v3.1
   Stopping plugin "Connected Drive 2022.1.1" (pid 60276)
   Stopped plugin "Connected Drive 2022.1.1"
   Starting plugin "Connected Drive 2022.1.1" (pid 93760)
   Started plugin "Connected Drive 2022.1.1"
   Connected Drive Error           Error in plugin execution runConcurrentThread:

  File "plugin.py", line 166, in runConcurrentThread
  File "plugin.py", line 220, in _do_update
type: 'NoneType' object has no attribute 'longitude'

   Connected Drive Error           plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
FlyingDiver commented 11 months ago

Turn on debug logging and restart the plugin, then post log up to error.

My guess is that the API is returning a null value for the VIN specified.

ryanbuckner commented 11 months ago

I think the subscription ran out.

ryanbuckner commented 11 months ago

Upon renewing my subscription, the option to enable vehicle tracking is no longer there. Maybe it will take a few hours. I'll check back.

turribeach commented 11 months ago

Where are you based? In the UK remote access is free. At least in my car I have never paid for it and my car it’s already over 4 years old.

ryanbuckner commented 11 months ago

US. Requires $120 every year . Apparently things don't work for a few hours after updating the subscription.

On Thu, Oct 5, 2023 at 12:39 PM turribeach @.***> wrote:

Where are you based? In the UK remote access is free. At least in my car I have never paid for it and my car it’s already over 4 years old.

— Reply to this email directly, view it on GitHub https://github.com/FlyingDiver/Indigo-Connected-Drive/issues/28#issuecomment-1749285156, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANTBKOUEZGTKSCNDJL32OTX53PEVAVCNFSM6AAAAAA5UNH3GOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBZGI4DKMJVGY . You are receiving this because you modified the open/close state.Message ID: @.***>

turribeach commented 11 months ago

Typical BMW, so out of date on their technology stack!

FlyingDiver commented 11 months ago

So is it working again?

I should do a better job of trapping that error, so don't close this issue until I fix that.

ryanbuckner commented 11 months ago

Not yet. Some have reported it taking as much as 24 hours to show up in iDrive as an option for Vehicle Tracking

On Thu, Oct 5, 2023 at 2:28 PM Joe Keenan @.***> wrote:

So is it working again?

I should do a better job of trapping that error, so don't close this issue until I fix that.

— Reply to this email directly, view it on GitHub https://github.com/FlyingDiver/Indigo-Connected-Drive/issues/28#issuecomment-1749434959, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANTBKLL6ZJ45OWX7VOVNTLX53357AVCNFSM6AAAAAA5UNH3GOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBZGQZTIOJVHE . You are receiving this because you modified the open/close state.Message ID: @.***>

ryanbuckner commented 11 months ago

Vehicle Tracking is back Ryan @. Oct 5, 2023, at 2:46 PM, Ryan Buckner @.> wrote:Not yet. Some have reported it taking as much as 24 hours to show up in iDrive as an option for Vehicle TrackingOn Thu, Oct 5, 2023 at 2:28 PM Joe Keenan @.***> wrote: So is it working again? I should do a better job of trapping that error, so don't close this issue until I fix that.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.***>

FlyingDiver commented 11 months ago

Error trapping already in my current code, just not pushed yet.