Skip to content

Instantly share code, notes, and snippets.

View timothyasp's full-sized avatar
🐢
Turtles

Tim Asp timothyasp

🐢
Turtles
View GitHub Profile
@timothyasp
timothyasp / gist:5173972
Last active December 15, 2015 00:38
Stack trace for guide save error after indents.
03-15 16:20:41.456: I/iFixit(17515): Performing API call: POST https://mzych.cominor.com/api/1.1/guides/16557/steps?revisionid=144284
03-15 16:20:41.456: I/iFixit(17515): Request body: {"media":{"data":[],"type":"image"},"orderby":7,"lines":[{"lineid":0,"bullet":"black","text":"kjhsldkjfh asljdkhf ljshf lkjhasdfl kjhasdlkfjh asdf","level":0},{"lineid":0,"bullet":"black","text":"asdkjf hasdlkfjh asljdkfh aslhjdf lajdshfl khasdf","level":1},{"lineid":0,"bullet":"black","text":" askjdfh asldkjfh ladhsjf asdfl; kasdkljf a;ljdsf","level":0},{"lineid":0,"bullet":"black","text":"asdfh aslkjfh askdjfh lkasdjhfl kjashdlfkj h","level":2}],"title":""}
03-15 16:20:42.056: I/iFixit(17515): Response code: 422
03-15 16:20:42.056: I/iFixit(17515): Response body: {"message":"Validation failed","errors":[{"resource":"Step line","field":"level","code":"invalid_value","message":"Invalid line indentation"}]}
03-15 16:20:42.071: E/iFixit(17515): API parse error
03-15 16:20:42.071: E/iFixit(17515): org.json.JSONException: No valu
@timothyasp
timothyasp / gist:4129261
Created November 22, 2012 03:12
test test test
"video": {
"thumbnail": "http://s3.amazonaws.com/bucket/video/frame_0000.png",
"encoding": [
{
"width": 592,
"height": 444,
"max_video_bitrate": 1500,
"url": "http:\/\/ifixit-dev-guide-objects.s3.amazonaws.com\/igo\/video\/ifixit\/Yk3VcLPVMmdFWyYk_MP4_592.mp4",
"format": "mp4"
},
@timothyasp
timothyasp / gist:4115220
Created November 20, 2012 00:49
GET /guide/{guideid}/steps response
"steps": [
{
"title": "",
"lines": [
{
"text": "Place your thumbs in the depressions cut into the bottom cover.",
"text_raw": "Place your thumbs in the depressions cut into the bottom cover.",
"bullet": "black",
"level": 0
},