Skip to content

Instantly share code, notes, and snippets.

@brianfromoregon
Created July 3, 2013 17:16
Show Gist options
  • Save brianfromoregon/5920661 to your computer and use it in GitHub Desktop.
Save brianfromoregon/5920661 to your computer and use it in GitHub Desktop.
07-03 10:05:40.460 8676-12845/com.lovingishard.loveothers D/HttpTransport: -------------- REQUEST --------------
POST https://accounts.google.com/o/oauth2/token
Accept-Encoding: gzip
User-Agent: Google-HTTP-Java-Client/1.15.0-rc (gzip)
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 584
07-03 10:05:40.460 8676-12845/com.lovingishard.loveothers D/HttpTransport: curl -v --compressed -X POST -H 'Accept-Encoding: gzip' -H 'User-Agent: Google-HTTP-Java-Client/1.15.0-rc (gzip)' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -d '@-' -- 'https://accounts.google.com/o/oauth2/token' << $$$
07-03 10:05:40.695 8676-12845/com.lovingishard.loveothers D/HttpTransport: Total: 584 bytes
07-03 10:05:40.695 8676-12845/com.lovingishard.loveothers D/HttpTransport: grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer&assertion=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJodHRwczovL2FjY291bnRzLmdvb2dsZS5jb20vby9vYXV0aDIvdG9rZW4iLCJleHAiOjEzNzI4NzQ3NDAsImlhdCI6MTM3Mjg3MTE0MCwiaXNzIjoiNzI4NzkyNTU4MjM4LWx2aWwxM2lhcTVocmwzamdoMThva21mOHJrMHBlMTdjQGRldmVsb3Blci5nc2VydmljZWFjY291bnQuY29tIiwic2NvcGUiOiJodHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Z1c2lvbnRhYmxlcyJ9.ahX5Si4loW8oD8187VQNws36z0tQYgpdIcVdV-T7GQe3dQy5HpTt4x7Mf6MzosoPrHrSnAjWK7tsW_mEDJF_rS13qqWDDSLQZYeH9ioE72JRnbfAUWFoI7_wxi6SjkFpKImpIgx7f0mwd2KA1BKX04RvkVMCWIAcO0CSLGVjCyw
07-03 10:05:41.210 8676-12845/com.lovingishard.loveothers D/HttpTransport: -------------- RESPONSE --------------
200 OK
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Encoding: gzip
Content-Type: application/json
Date: Wed, 03 Jul 2013 17:05:41 GMT
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Pragma: no-cache
Server: GSE
Transfer-Encoding: chunked
X-Android-Received-Millis: 1372871141135
X-Android-Sent-Millis: 1372871140700
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
07-03 10:05:41.220 8676-12845/com.lovingishard.loveothers D/HttpTransport: Total: 135 bytes
07-03 10:05:41.220 8676-12845/com.lovingishard.loveothers D/HttpTransport: {
"access_token" : "ya29.AHES6ZRWPwAY34pRVIWuww6-RNPpAdNt5NN7XJr4I5yb9RLRZd3SOpA",
"token_type" : "Bearer",
"expires_in" : 3600
}
07-03 10:05:41.230 8676-12845/com.lovingishard.loveothers D/HttpTransport: -------------- REQUEST --------------
POST https://www.googleapis.com/fusiontables/v1/query?sql=INSERT%20INTO%201VBr-SPlIaSkjevU8M-Y9NCMtzD_7MOldSPJPM-g%20(Note,%20Location,%20Date)%20VALUES%20('','45.536170,-122.968396','2013-07-03T10:05:40.267-07:00')
Accept-Encoding: gzip
Authorization: <Not Logged>
User-Agent: lovingishard-loveothers/1.0 Google-HTTP-Java-Client/1.15.0-rc (gzip)
Content-Length: 20
07-03 10:05:41.230 8676-12845/com.lovingishard.loveothers D/HttpTransport: curl -v --compressed -X POST -H 'Accept-Encoding: gzip' -H 'Authorization: <Not Logged>' -H 'User-Agent: lovingishard-loveothers/1.0 Google-HTTP-Java-Client/1.15.0-rc (gzip)' -d '@-' -- 'https://www.googleapis.com/fusiontables/v1/query?sql=INSERT%20INTO%201VBr-SPlIaSkjevU8M-Y9NCMtzD_7MOldSPJPM-g%20(Note,%20Location,%20Date)%20VALUES%20('"'"''"'"','"'"'45.536170,-122.968396'"'"','"'"'2013-07-03T10:05:40.267-07:00'"'"')' << $$$
07-03 10:05:41.260 8676-12845/com.lovingishard.loveothers E/com.lovingishard.loveothers.MainActivity$2$1: Exception while sending love report
java.io.IOException: unexpected end of stream
at libcore.net.http.FixedLengthOutputStream.close(FixedLengthOutputStream.java:58)
at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:81)
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:960)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:410)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:343)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:460)
at com.lovingishard.loveothers.MainActivity$2$1.tryUpload(MainActivity.java:179)
at com.lovingishard.loveothers.MainActivity$2$1.doInBackground(MainActivity.java:122)
at com.lovingishard.loveothers.MainActivity$2$1.doInBackground(MainActivity.java:112)
at android.os.AsyncTask$2.call(AsyncTask.java:287)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
07-03 10:05:41.260 8676-12845/com.lovingishard.loveothers I/com.lovingishard.loveothers.MainActivity$2$1: Attempt: 1
07-03 10:05:41.275 8676-8678/com.lovingishard.loveothers D/dalvikvm: GC_CONCURRENT freed 474K, 8% free 13328K/14343K, paused 11ms+12ms, total 35ms
07-03 10:05:41.310 8676-12845/com.lovingishard.loveothers D/HttpTransport: -------------- REQUEST --------------
POST https://www.googleapis.com/fusiontables/v1/query?sql=INSERT%20INTO%201VBr-SPlIaSkjevU8M-Y9NCMtzD_7MOldSPJPM-g%20(Note,%20Location,%20Date)%20VALUES%20('','45.536170,-122.968396','2013-07-03T10:05:41.265-07:00')
Accept-Encoding: gzip
Authorization: <Not Logged>
User-Agent: lovingishard-loveothers/1.0 Google-HTTP-Java-Client/1.15.0-rc (gzip)
Content-Length: 20
07-03 10:05:41.310 8676-12845/com.lovingishard.loveothers D/HttpTransport: curl -v --compressed -X POST -H 'Accept-Encoding: gzip' -H 'Authorization: <Not Logged>' -H 'User-Agent: lovingishard-loveothers/1.0 Google-HTTP-Java-Client/1.15.0-rc (gzip)' -d '@-' -- 'https://www.googleapis.com/fusiontables/v1/query?sql=INSERT%20INTO%201VBr-SPlIaSkjevU8M-Y9NCMtzD_7MOldSPJPM-g%20(Note,%20Location,%20Date)%20VALUES%20('"'"''"'"','"'"'45.536170,-122.968396'"'"','"'"'2013-07-03T10:05:41.265-07:00'"'"')' << $$$
07-03 10:05:42.280 8676-8676/com.lovingishard.loveothers D/com.lovingishard.loveothers.LocationService: Updated location to Location[mProvider=gps,mTime=1372871143000,mLatitude=45.53617876,mLongitude=-122.96839556,mHasAltitude=true,mAltitude=44.5,mHasSpeed=true,mSpeed=0.0,mHasBearing=false,mBearing=0.0,mHasAccuracy=true,mAccuracy=19.0,mExtras=Bundle[mParcelledData.dataSize=44]]
07-03 10:05:42.930 8676-12845/com.lovingishard.loveothers D/HttpTransport: -------------- RESPONSE --------------
200 OK
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Encoding: gzip
Content-Length: 106
Content-Type: application/json; charset=UTF-8
Date: Wed, 03 Jul 2013 17:05:43 GMT
ETag: "TMh8SguO4XpkjXICbs8TpuVjR5I/9McGV_gsQHnqpB8hBIcbntT8x1U"
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Pragma: no-cache
Server: GSE
X-Android-Received-Millis: 1372871142832
X-Android-Sent-Millis: 1372871141457
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
07-03 10:05:42.975 8676-8678/com.lovingishard.loveothers D/dalvikvm: GC_CONCURRENT freed 382K, 7% free 13350K/14343K, paused 11ms+2ms, total 25ms
07-03 10:05:42.990 8676-12845/com.lovingishard.loveothers D/HttpTransport: Total: 102 bytes
07-03 10:05:42.990 8676-12845/com.lovingishard.loveothers D/HttpTransport: {
"kind": "fusiontables#sqlresponse",
"columns": [
"rowid"
],
"rows": [
[
"21203"
]
]
}
07-03 10:05:42.990 8676-12845/com.lovingishard.loveothers I/com.lovingishard.loveothers.MainActivity$2$1: Inserted!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment