SilverHoodCorp / gdata-java-client

Automatically exported from code.google.com/p/gdata-java-client
Apache License 2.0
0 stars 0 forks source link

Unrecognized content type:application/json with Oauth 2 legs #324

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,
I have a rest service using Oauth 2 legs authentication.
I want to develop a java client to interact with this service. To do that, I'm 
using Google Gdata API. It seems that my request is signed and passed correctly 
but my client is unable to parse the content.
Is it possible to force the googleservice class to get a content in 
application/json format?
Here is the Exception I recieved : 
Exception in thread "main" com.google.gdata.util.ParseException: Unrecognized 
content type:application/json
    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:631)
    at com.google.gdata.client.Service.getFeed(Service.java:1017)

Do you have any ideas?
Regards.

Original issue reported on code.google.com by amin.sa...@gmail.com on 31 Jan 2011 at 2:48

GoogleCodeExporter commented 9 years ago
I also got this error. But i didn't solve it

Original comment by beebir...@gmail.com on 25 Apr 2012 at 6:33