Last active
August 29, 2015 14:10
-
-
Save lexer/9a61703dbc8267fa1564 to your computer and use it in GitHub Desktop.
User -> credits - > "0" cause JSON parse exception during POST /user on phone login
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"appInfoRevision": "", | |
"matId": "822c7f40-3ab9-4ae8-a3ea-81f2b33ee6d2", | |
"phone": { | |
"number": "+14158197914", | |
"verificationCode": 3770 | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /users HTTP/1.1 | |
Accept-Language en_US | |
Accept application/vnd.lyft.app+json;version=21 | |
User-Agent lyft:android:5.0:2.8.0.1717 | |
User-Device LGE Nexus 5 | |
X-Carrier AT&T | |
X-Session eyJhIjoiN2E2NzIwYTgzYzcxYzBkZiIsImYiOiIxNTBlNDNmOS00M2NkLTRjOTItYjI1Mi02NzNhMTU3NGI4NDEiLCJnIjoiMjc1NTYwMjU5MjA1NzY3In0= | |
Content-Type application/json; charset=utf-8 | |
Content-Length 126 | |
Host api.lyft.com | |
Connection Keep-Alive | |
Accept-Encoding gzip | |
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
URL https://api.lyft.com/users | |
Status Complete | |
Response Code 200 OK | |
Protocol HTTP/1.1 | |
Method POST | |
Kept Alive Yes | |
Content-Type application/json | |
Client Address /10.59.20.46 | |
Remote Address api.lyft.com/54.88.228.195 | |
Timing | |
Request Start Time 11/26/14 7:57:42 PM | |
Request End Time 11/26/14 7:57:42 PM | |
Response Start Time 11/26/14 7:57:42 PM | |
Response End Time 11/26/14 7:57:42 PM | |
Duration 152 ms | |
DNS - | |
Connect - | |
SSL Handshake - | |
Request 0 ms | |
Response 1 ms | |
Latency 148 ms | |
Speed 19.91 KB/s | |
Response Speed 2,462.89 KB/s | |
Size | |
Request Header 450 bytes | |
Response Header 293 bytes | |
Request 127 bytes | |
Response 2.18 KB (2229 bytes) | |
Total 3.03 KB (3099 bytes) | |
Request Compression - | |
Response Compression 58.5% (gzip) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"user": { | |
"id": "214042160", | |
"firstName": "Will", | |
"lastName": "Farino", | |
"email": "will@lyft.com", | |
"credits": 0, // should be array | |
"region": "SFO", | |
"revision": 83, | |
"termsAccepted": true, | |
"approvedDriver": false, | |
"numReferralsNotYetJoined": 0, | |
"referralCode": "WILL618867", | |
"abandonmentCouponAvailable": false, | |
"freeRideBanner": "This ride is <b>FREE!<\/b> (up to $10)", | |
"referralUrl": "https:\/\/lyft.com\/i\/WILL618867", | |
"lyftToken": "eyJpZCI6IjU0MmI0OTQyNTFiYmY0OTMyODQ0OTIwZiIsInRzIjoiMjAxNC0xMS0yNyAwMzo1Nzo0MiIsInR2IjoxLCJzIjoiYzUzN2Y1ODdjZDJlOWMwMDg2MDY2MjRjZTBkZDhmOTljMDYwZjQzYzBkZWQzODE2NzQ3YzYxM2YxNGVhODQ1NSJ9", | |
"isAmbassador": false, | |
"ridesTaken": 3, | |
"pollingRate": 5000, | |
"mode": "passenger", | |
"phone": { | |
"number": "4158197914", | |
"verificationNeeded": false | |
}, | |
"verifyFields": ["phone", "ccZip"], | |
"creditcards": [{ | |
"lastFour": "2357", | |
"type": "Visa", | |
"id": "card_4w9J5cjJhDlAlZ", | |
"default": false, | |
"label": "Personal", | |
"labelType": "personal", | |
"source": "user", | |
"failed": true | |
}, { | |
"lastFour": "1002", | |
"type": "American Express", | |
"id": "card_57cmWDyVxwYNJd", | |
"default": true, | |
"label": "Personal", | |
"labelType": "personal", | |
"source": "user" | |
}], | |
"googlePushToken": "APA91bEuaj9vSKgMguz2nwDHv5ypYZXViasIFX4s03SlP3qv81G1MRZ7XcCC-_9Q6Sv70nCpwAJbhHlPeMqi2rDvcK28x3hblS7sUYb7-aDgX5YKZTylAxvb89BwSi9_ADgfXV8yD_5Yni64bE6orkPqQoRQGCg1lw" | |
}, | |
"appInfo": { | |
"constants": { | |
"showSelectAllFriends": false, | |
"requirePhoto": false, | |
"insuranceUrl": "https:\/\/s3.amazonaws.com\/api.lyft.com\/static\/certificate-of-liability-insurance.pdf", | |
"insuranceUrlPng": "https:\/\/s3.amazonaws.com\/api.lyft.com\/static\/certificate-of-liability-insurance.png", | |
"minDriverAge": 21, | |
"paymentLabel": "TIP", | |
"heatmapEnabled": false, | |
"creditCardRegistrationHeader": "Add a credit card", | |
"creditCardRegistrationFooter": "Add card", | |
"autostartTimeout": 60, | |
"arrivedReminderTimeout": 120, | |
"courierColor": "9B61FF", | |
"checkDeepLinks": { | |
"uber": "uber:\/\/", | |
"sidecar": "sidecar:\/\/", | |
"yelp": "yelp:\/\/" | |
}, | |
"checkBundleIds": { | |
"uber": "com.ubercab", | |
"sidecar_pax": "com.sidecarPassenger", | |
"sidecar_driver": "com.sidekickApp", | |
"yelp": "com.yelp.android" | |
}, | |
"cancelSubtitleTextUnassigned": "", | |
"cancelSubtitleTextNoCharge": "Are you sure? Your driver is already on the way to pick you up.", | |
"cancelSubtitleTextCharge": "You will be charged ${0}.", | |
"cancelDetailTextCharge": "Cancelation fees apply if it's been 5+ minutes since your request, or if you're part of a Lyft Line.", | |
"driverDestinationMatchingLabel": "DESTINATION FILTER ON", | |
"driverDestinationCardHeaderLabel": "DESTINATION FILTER", | |
"driverDestinationCardHeaderText": "Have somewhere to be? Set your destination and only pick up passengers with similar routes.", | |
"driverDestinationCardSection1Label": "FILTERED REQUESTS", | |
"driverDestinationCardSection1Text": "You'll only get requests from Lyft Line passengers with similar routes", | |
"driverDestinationCardSection2Label": "SMARTLY ROUTED", | |
"driverDestinationCardSection2Text": "Never go more than a few minutes out of your way", | |
"driverDestinationButtonText": "Set destination", | |
"driverDestinationStartedModalText": "Destination set", | |
"driverDestinationEndedModalText": "Destination filter OFF", | |
"inviteSurfacing": { | |
"menuItemColor": "#E54E9A", | |
"menuItemIcon": "invite-giftbox.png", | |
"navItemIcon": "invite-giftbox.png", | |
"navItemTintColor": "#E54E9A" | |
}, | |
"organizationRegistration": false, | |
"topRightIconShouldInvitePassengers": false, | |
"referralHeaderText": "Tell your friends to try Lyft and you'll both earn FREE Lyft credit.", | |
"courierPickupCountdownTimePassenger": 60, | |
"courierPickupCountdownTimeDriver": 100, | |
"matchingFacesUri": "https:\/\/lyftapi.s3.amazonaws.com\/production\/matching_faces.json" | |
}, | |
"rideTypes": [{ | |
"id": "courier", | |
"selector": { | |
"iconFile": "classic-slider-icon.png", | |
"activeColor": "#00b2a9", | |
"label": "Line" | |
}, | |
"popup": { | |
"title": "Lyft Line", | |
"showOnFirstSelection": true | |
}, | |
"map": { | |
"iconFile": "courier-map-icon.png" | |
}, | |
"button": { | |
"label": "Request Line", | |
"labelSingleType": "Request Line", | |
"color": "#00b2a9", | |
"startColor": "#3dc2ad", | |
"endColor": "#36aca2", | |
"borderColor": "#1d8f86", | |
"pressedColor": "#00948d" | |
}, | |
"header": { | |
"label": "", | |
"labelSingleType": "" | |
} | |
}, { | |
"id": "standard", | |
"selector": { | |
"iconFile": "classic-slider-icon.png", | |
"activeColor": "#00b2a9", | |
"label": "Lyft" | |
}, | |
"popup": { | |
"backgroundColor": "#00b2a9", | |
"iconFile": "classic-popup-icon.png", | |
"title": "Lyft", | |
"seats": "4 people", | |
"description": "", | |
"showOnFirstSelection": false | |
}, | |
"map": { | |
"iconFile": "classic-map-icon.png" | |
}, | |
"button": { | |
"label": "Request Lyft", | |
"labelSingleType": "Request Lyft", | |
"color": "#00b2a9", | |
"startColor": "#3dc2ad", | |
"endColor": "#36aca2", | |
"borderColor": "#1d8f86", | |
"pressedColor": "#00948d" | |
}, | |
"header": { | |
"label": "", | |
"labelSingleType": "" | |
} | |
}, { | |
"id": "plus", | |
"selector": { | |
"iconFile": "plus-slider-icon.png", | |
"activeColor": "#00b2a9", | |
"label": "Plus" | |
}, | |
"popup": { | |
"backgroundColor": "#00b2a9", | |
"iconFile": "plus-popup-icon.png", | |
"title": "Lyft Plus", | |
"seats": "6 people", | |
"description": "", | |
"showOnFirstSelection": true | |
}, | |
"map": { | |
"iconFile": "plus-map-icon.png" | |
}, | |
"button": { | |
"label": "Request Plus", | |
"labelSingleType": "Request Plus", | |
"color": "#00b2a9", | |
"startColor": "#3dc2ad", | |
"endColor": "#36aca2", | |
"borderColor": "#1d8f86", | |
"pressedColor": "#00948d" | |
}, | |
"header": { | |
"label": "", | |
"labelSingleType": "" | |
} | |
}], | |
"hints": [{ | |
"id": "courierPromo", | |
"text": "Try Lyft Line! Your first ride is FREE.", | |
"numDisplays": 3 | |
}, { | |
"id": "driverDestinationCue", | |
"text": "Only get requests going your way", | |
"numDisplays": 3 | |
}], | |
"defaultRideType": "standard", | |
"assetsUrl": "https:\/\/s3.amazonaws.com\/api.lyft.com\/assets\/android\/assets_2014_11_05.zip", | |
"revision": "ceae8b4be40ab98bd224f4f4fa3ac588" | |
}, | |
"generatedAt": "2014-11-27T03:57:42Z", | |
"timestamp": 1417060662528 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment