Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.google.gdata.util.ParseException: Unrecognized content type:application/json;charset=UTF-8 #861

Open
GoogleCodeExporter opened this issue Mar 15, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link
Collaborator

Version of google-api-java-client (e.g. 1.47.1-rc)?


Java environment (e.g. Java 7)?


Hi,

I am trying to get a videoFeed using the below link -

https://gdata.youtube.com/feeds/api/videos?q=roomba&v=2&alt=jsonc

When I directly paste this link into browser, I get the JSON format of the 
video, however when I am trying it through a java code using below line of code 
-

List<VideoEntry> videoEntries = service.getFeed(query.getFeedUrl(), 
VideoFeed.class).getEntries();

I am getting an error -

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)


Can anyone please let me know how to get a JSON Video Feed using JAVA and 
YouTube API ?

Best Regards,
Veeresh

Original issue reported on code.google.com by samarthv...@gmail.com on 12 Mar 2014 at 5:20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant