anongit / mytracks

Automatically exported from code.google.com/p/mytracks
0 stars 0 forks source link

First attempt to "Send to Google..." always fails #196

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start MyTracks for the first time
2. Go to any track
3. Try to "Send to Google..."

What is the expected output? What do you see instead?
The first attempt always fails.  The following tries succeed.

See the exception below:

E/MyTracks(19785): Got auth token.
D/MyTracks(19785): Loggin success for local!
D/MyTracks(19785): Sending to MyMaps: trackId = 43
D/MyTracks(19785): Creating a new map.
D/MyTracks(19785): Map feed is 
http://maps.google.com/maps/feeds/maps/default/full?v=2.0
D/MyTracks(19785): Title: Track 43
W/DefaultRequestDirector(19785): Authentication error: Unable to respond to any 
of these challenges: {googlelogin=WWW-Authenticate: GoogleLogin 
realm="http://www.google.com/accounts/ClientLogin", service="local"}
E/MyTracks(19785): HttpException
E/MyTracks(19785): com.google.wireless.gdata.client.HttpException: Received 401 
status code: <HTML>
E/MyTracks(19785): <HEAD>
E/MyTracks(19785): <TITLE>Token expired</TITLE>
E/MyTracks(19785): </HEAD>
E/MyTracks(19785): <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
E/MyTracks(19785): <H1>Token expired</H1>
E/MyTracks(19785): <H2>Error 401</H2>
E/MyTracks(19785): </BODY>
E/MyTracks(19785): </HTML>
E/MyTracks(19785): 
E/MyTracks(19785):  at 
com.google.android.common.gdata.AndroidGDataClient.createAndExecuteMethod(Androi
dGDataClient.java:317)
E/MyTracks(19785):  at 
com.google.android.common.gdata.AndroidGDataClient.createEntry(AndroidGDataClien
t.java:392)
E/MyTracks(19785):  at 
com.google.wireless.gdata.client.GDataServiceClient.createEntry(GDataServiceClie
nt.java:112)
E/MyTracks(19785):  at 
com.google.android.apps.mytracks.io.SendToMyMaps$2.query(SendToMyMaps.java:209)
E/MyTracks(19785):  at 
com.google.android.apps.mymaps.MyMapsGDataWrapper.runQuery(MyMapsGDataWrapper.ja
va:106)
E/MyTracks(19785):  at 
com.google.android.apps.mytracks.io.SendToMyMaps.createNewMap(SendToMyMaps.java:
188)
E/MyTracks(19785):  at 
com.google.android.apps.mytracks.io.SendToMyMaps.doUpload(SendToMyMaps.java:135)
E/MyTracks(19785):  at 
com.google.android.apps.mytracks.io.SendToMyMaps.run(SendToMyMaps.java:110)
E/MyTracks(19785):  at android.os.Handler.handleCallback(Handler.java:587)
E/MyTracks(19785):  at android.os.Handler.dispatchMessage(Handler.java:92)
E/MyTracks(19785):  at android.os.Looper.loop(Looper.java:123)
E/MyTracks(19785):  at android.os.HandlerThread.run(HandlerThread.java:60)
D/MyTracks(19785): GData error encountered: Received 401 status code: <HTML>
D/MyTracks(19785): <HEAD>
D/MyTracks(19785): <TITLE>Token expired</TITLE>
D/MyTracks(19785): </HEAD>
D/MyTracks(19785): <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
D/MyTracks(19785): <H1>Token expired</H1>
D/MyTracks(19785): <H2>Error 401</H2>
D/MyTracks(19785): </BODY>
D/MyTracks(19785): </HTML>
D/MyTracks(19785): SendToMyMaps: Done: false

Original issue reported on code.google.com by ba...@google.com on 22 Oct 2010 at 11:27

GoogleCodeExporter commented 9 years ago
This is by design.  To fix it is very difficult.

Original comment by sandordo...@google.com on 22 Oct 2010 at 11:30

GoogleCodeExporter commented 9 years ago
Has it been recently fixed by Matthew?

Original comment by ba...@google.com on 22 Nov 2010 at 11:47

GoogleCodeExporter commented 9 years ago

Original comment by simmonmt@google.com on 23 Nov 2010 at 12:59

GoogleCodeExporter commented 9 years ago
11-23 10:58:39.276 E/MyTracks(11309): <HEAD>
11-23 10:58:39.276 E/MyTracks(11309): <TITLE>Authorization required</TITLE>
11-23 10:58:39.276 E/MyTracks(11309): </HEAD>
11-23 10:58:39.276 E/MyTracks(11309): <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
11-23 10:58:39.276 E/MyTracks(11309): <H1>Authorization required</H1>
11-23 10:58:39.276 E/MyTracks(11309): <H2>Error 401</H2>
11-23 10:58:39.276 E/MyTracks(11309): </BODY>
11-23 10:58:39.276 E/MyTracks(11309): </HTML>
11-23 10:58:39.276 E/MyTracks(11309): 
11-23 10:58:39.276 E/MyTracks(11309):     at 
com.google.android.common.gdata.AndroidGDataClient.createAndExecuteMethod(Androi
dGDataClient.java:317)
11-23 10:58:39.276 E/MyTracks(11309):     at 
com.google.android.common.gdata.AndroidGDataClient.getFeedAsStream(AndroidGDataC
lient.java:328)
11-23 10:58:39.276 E/MyTracks(11309):     at 
com.google.wireless.gdata.client.GDataServiceClient.getParserForFeed(GDataServic
eClient.java:76)
11-23 10:58:39.276 E/MyTracks(11309):     at 
com.google.android.apps.mytracks.io.SendToDocs$2.query(SendToDocs.java:318)
11-23 10:58:39.276 E/MyTracks(11309):     at 
com.google.android.apps.mytracks.io.gdata.GDataWrapper.runOne(GDataWrapper.java:
152)
11-23 10:58:39.276 E/MyTracks(11309):     at 
com.google.android.apps.mytracks.io.gdata.GDataWrapper.runCommon(GDataWrapper.ja
va:125)
11-23 10:58:39.276 E/MyTracks(11309):     at 
com.google.android.apps.mytracks.io.gdata.GDataWrapper.runQuery(GDataWrapper.jav
a:116)
11-23 10:58:39.276 E/MyTracks(11309):     at 
com.google.android.apps.mytracks.io.SendToDocs.getSpreadsheetId(SendToDocs.java:
313)
11-23 10:58:39.276 E/MyTracks(11309):     at 
com.google.android.apps.mytracks.io.SendToDocs.uploadToDocs(SendToDocs.java:226)
11-23 10:58:39.276 E/MyTracks(11309):     at 
com.google.android.apps.mytracks.io.SendToDocs.doUpload(SendToDocs.java:160)
11-23 10:58:39.276 E/MyTracks(11309):     at 
com.google.android.apps.mytracks.io.SendToDocs.access$0(SendToDocs.java:138)
11-23 10:58:39.276 E/MyTracks(11309):     at 
com.google.android.apps.mytracks.io.SendToDocs$1.run(SendToDocs.java:133)
11-23 10:58:39.276 E/MyTracks(11309):     at 
android.os.Handler.handleCallback(Handler.java:587)
11-23 10:58:39.276 E/MyTracks(11309):     at 
android.os.Handler.dispatchMessage(Handler.java:92)
11-23 10:58:39.276 E/MyTracks(11309):     at 
android.os.Looper.loop(Looper.java:123)
11-23 10:58:39.276 E/MyTracks(11309):     at 
android.os.HandlerThread.run(HandlerThread.java:60)
11-23 10:58:39.276 D/MyTracks(11309): GData error encountered: Received 401 
status code: <HTML>
11-23 10:58:39.276 D/MyTracks(11309): <HEAD>
11-23 10:58:39.276 D/MyTracks(11309): <TITLE>Authorization required</TITLE>
11-23 10:58:39.276 D/MyTracks(11309): </HEAD>
11-23 10:58:39.276 D/MyTracks(11309): <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
11-23 10:58:39.276 D/MyTracks(11309): <H1>Authorization required</H1>
11-23 10:58:39.276 D/MyTracks(11309): <H2>Error 401</H2>
11-23 10:58:39.276 D/MyTracks(11309): </BODY>
11-23 10:58:39.276 D/MyTracks(11309): </HTML>
11-23 10:58:39.276 D/MyTracks(11309): Retrying due to auth failure
11-23 10:58:39.286 D/MyTracks(11309): waiting for invalidate
11-23 10:58:39.386 I/System.out( 2755): [INFO:67504468]: LogSource: Running 
flush
11-23 10:58:39.386 I/System.out( 2755): [INFO:67504470]: LogSource: Sending 
payload [bytes=1425]
11-23 10:58:39.446 I/System.out( 2755): [INFO:67504524]: LogSource: Response 
[http=200,length=436]
11-23 10:58:39.446 I/System.out( 2755): [INFO:67504527]: LogSource: Read id 
236, status code 200
11-23 10:58:39.496 D/MyTracks(11309): MyTracksMap: Network location update 
received.
11-23 10:58:39.816 E/MyTracks(11309): Got auth token.
11-23 10:58:39.816 D/MyTracks(11309): invalidate finished
11-23 10:58:39.816 D/MyTracks(11309): retrying function/query
11-23 10:58:40.406 I/MyTracks(11309): Found docs entry: Compras EUA - nov 2010
11-23 10:58:40.436 I/MyTracks(11309): Found docs entry: Compras EUA - maio 2010
11-23 10:58:40.436 I/MyTracks(11309): Found docs entry: My Tracks
11-23 10:58:41.056 E/MyTracks(11309): Exception
11-23 10:58:41.056 E/MyTracks(11309): java.io.IOException: Could not fetch 
parser feed.: Received 404 status code: <HTML>
11-23 10:58:41.056 E/MyTracks(11309): <HEAD>
11-23 10:58:41.056 E/MyTracks(11309): <TITLE>Not Found</TITLE>
11-23 10:58:41.056 E/MyTracks(11309): </HEAD>
11-23 10:58:41.056 E/MyTracks(11309): <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
11-23 10:58:41.056 E/MyTracks(11309): <H1>Not Found</H1>
11-23 10:58:41.056 E/MyTracks(11309): <H2>Error 404</H2>
11-23 10:58:41.056 E/MyTracks(11309): </BODY>
11-23 10:58:41.056 E/MyTracks(11309): </HTML>

Original comment by ba...@google.com on 23 Nov 2010 at 7:22

GoogleCodeExporter commented 9 years ago

Original comment by sandordo...@google.com on 20 Dec 2010 at 6:24