nachmore / unBand

Take full advantage of your Microsoft Band - from Theme customization to data export.
http://unband.nachmore.com
MIT License
49 stars 19 forks source link

Crash when downloading - unknown event type (golf) #102

Open briankavanaugh opened 9 years ago

briankavanaugh commented 9 years ago

Imminent Crash

An unhandled exception occurred - sorry about that, we're going to have to crash now :(

You can open a bug with a copy of this crash: hit Ctrl + C right now and then paste into a new bug at https://github.com/nachmore/unBand/issues.

System.Collections.Generic.KeyNotFoundException: Unknown event type: Microsoft.Khronos.Cloud.Ods.Data.Entities.GolfEventDTO

at unBand.Cloud.BandEventBase.FromDynamic(Object rawBandEvent) in d:\codesanity\oss\unBand\src\unBand.Cloud\Events\BandEventBase.cs:line 132

at unBand.Cloud.BandCloudClient.d__27.MoveNext() in d:\codesanity\oss\unBand\src\unBand.Cloud\BandCloudClient.cs:line 197

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at unBand.CloudHelpers.BandCloudManager.d__0.MoveNext() in d:\codesanity\oss\unBand\src\unBand\CloudHelpers\BandCloudManager.cs:line 140

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at unBand.pages.ActivityLogPage.d__b.MoveNext() in d:\codesanity\oss\unBand\src\unBand\pages\ActivityLogPage.xaml.cs:line 176

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at unBand.pages.ActivityLogPage.d__8.MoveNext() in d:\codesanity\oss\unBand\src\unBand\pages\ActivityLogPage.xaml.cs:line 171

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>cDisplayClass2.b3(Object state)

at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

OK

briankavanaugh commented 9 years ago

I have added the code for this and made a couple of changes for the newest version of the Microsoft Sync app to a fork off of robsonj's fork.

Roadstergal commented 8 years ago

I just opened an Issue for a similar problem - Microsoft added the new Hike event, and now that I have a Hike on my band, Unband crashes trying to read the activities.