Skip to content

Instantly share code, notes, and snippets.

@cbrammer
Created November 28, 2012 01:22
Show Gist options
  • Save cbrammer/4158418 to your computer and use it in GitHub Desktop.
Save cbrammer/4158418 to your computer and use it in GitHub Desktop.
Log Fail
{
"equipmentKey": "T0",
"softwareNumber": "323574",
"userId": "50b4ebb4549745245500fca3",
"completed": true,
"workoutGMTDate": "2012-11-28",
"workoutGMTTime": "01:18:13",
"startTime": 1354090693000,
"workoutSessionId": "2012112801181112",
"summary": [
{
"type": "inc",
"values": [
[
1354090693000,
-3
]
]
},
{
"type": "meters",
"values": [
[
1354090693000,
0
],
[
1354090698000,
3.2186889957851266
],
[
1354090703000,
4.82803349367769
]
]
},
{
"type": "bpm",
"values": [
[
1354090693000,
"0.0"
]
]
},
{
"type": "res",
"values": [
[
1354090693000,
"0.0"
]
]
},
{
"type": "mps",
"values": [
[
1354090693000,
0.4470392589877243
]
]
}
],
"title": "Manual Workout",
"endTime": 1354090703000
}
TypeError: Cannot read property 'values' of undefined
at buildAtIndexMap (/opt/node/app/node_modules/workout-manager/index.js:597:42)
at buildControlsSection (/opt/node/app/node_modules/workout-manager/index.js:562:20)
at Object.createWorkoutFromLog (/opt/node/app/node_modules/workout-manager/index.js:41:24)
at Function.createWorkout (/opt/node/app/workers/build.js:238:20)
at next (/opt/node/app/node_modules/stewardess/index.js:68:12)
@cbrammer
Copy link
Author

The above log fails, also logs with this same format are responding back with a duration of 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment