Issue 806 in google-api-java-client: Parse Error

26 views
Skip to first unread message

google-api-...@googlecode.com

unread,
Jun 21, 2013, 6:26:07 PM6/21/13
to google-api-jav...@googlegroups.com
Status: New
Owner: ngmic...@google.com
Labels: Type-Defect Priority-Medium

New issue 806 by zoe.pe....@gmail.com: Parse Error
http://code.google.com/p/google-api-java-client/issues/detail?id=806

Version of google-api-java-client (e.g. 1.15.0-rc)?
1.8.0-beta

Java environment (e.g. Java 6, Android 2.3, App Engine)?
Java 7

Describe the problem.
I'm trying to implement a variation of the GoogleAnalyticsExample.java.
In attachment my own class.
I got the exception that you can see below.
Analytics API responded with an error message: Unrecognized content
type:application/json;charset=UTF-8
com.google.gdata.util.ParseException: Unrecognized content
type:application/json;charset=UTF-8
at com.google.gdata.client.Service.parseResponseData(Service.java:2136)
at com.google.gdata.client.Service.parseResponseData(Service.java:2098)
at com.google.gdata.client.Service.getFeed(Service.java:1136)
at com.google.gdata.client.Service.getFeed(Service.java:998)
at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:645)
at com.google.gdata.client.Service.getFeed(Service.java:1017)
at service.MTXFeed.getAccountFeed(MTXFeed.java:74)
at service.MTXFeed.main(MTXFeed.java:37)


How would you expect it to be fixed?
I think the default Content Type (application/json;charset=UTF-8) is not
supported.

Attachments:
MTXFeed.java 3.8 KB

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

google-api-...@googlecode.com

unread,
Jun 24, 2013, 6:23:24 PM6/24/13
to google-api-jav...@googlegroups.com

Comment #1 on issue 806 by zoe.pe....@gmail.com: Parse Error
http://code.google.com/p/google-api-java-client/issues/detail?id=806

Discard the issue. I've found another way to access the profile data.
Thanks.
Regards.

google-api-...@googlecode.com

unread,
Jun 24, 2013, 6:27:36 PM6/24/13
to google-api-jav...@googlegroups.com
Updates:
Status: Invalid

Comment #2 on issue 806 by ngmic...@google.com: Parse Error
http://code.google.com/p/google-api-java-client/issues/detail?id=806

Glad to hear you resolved your issue. Please note that version 1.8 of the
library was released over 14 months ago. Because numerous bugs have been
fixed and features added since then, it's recommended you upgrade to the
latest version of the library. Note that the current stable version of the
library is a non-beta release candidate, and will soon be followed by our
first non-beta full release.

google-api-...@googlecode.com

unread,
Apr 8, 2015, 6:32:04 AM4/8/15
to google-api-jav...@googlegroups.com

Comment #3 on issue 806 by raushan6...@yahoo.com: Parse Error
https://code.google.com/p/google-api-java-client/issues/detail?id=806

hey zoe.pe....@gmail.com ,
will u pls let me know the other way , regarding issue "Unrecognized
content type:application/json;charset=UTF-8".
Reply all
Reply to author
Forward
0 new messages