henriqueolliveira / google-api-java-client

Automatically exported from code.google.com/p/google-api-java-client
0 stars 0 forks source link

some picasa featured pictures couldn't be parsed by json #125

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version of google-api-java-client (e.g. 1.2.1-alpha)?

1.1.1-alpha and 1.3.1-alpha

Java environment (e.g. Java 6, Android 2.2, App Engine 1.3.7)?

Android 2.2

Describe the problem.

I download the data from the http://picasaweb.google.com/data/feed/api/featured,
and then use parseAs() to my defined class, just like the youtube example you 
provided.

But some error happened :

02-18 03:06:12.004 D/Picasa ( 1207): org.codehaus.jackson.JsonParseException: I
nvalid UTF-8 start byte 0xa8
02-18 03:06:12.004 D/Picasa ( 1207): at [Source: java.util.zip.GZIPInputStream
@4a36d270; line: 1, column: 12862]

I observed only some picture's information would cause this problem.
Could you help me? thanks a lot.

How would you expect it to be fixed?

Original issue reported on code.google.com by shujyuan...@gmail.com on 18 Feb 2011 at 1:56

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 12 Aug 2011 at 9:55

GoogleCodeExporter commented 9 years ago
You cannot use JSON parser with Atom XML data.  Please read this info:

http://javadoc.google-api-java-client.googlecode.com/hg/1.5.0-beta/com/google/ap
i/client/googleapis/xml/atom/package-summary.html

Original comment by yan...@google.com on 27 Aug 2011 at 4:29