Google contacts gdata (Java) fails on No parser for content type:application-xml[application/xml]

人走茶凉 提交于 2019-12-07 09:21:13

问题


Recently, a 2 days ago we started to experience exception in google gdata client in Java, when trying to access contacts (feed : /m8/feeds/contacts/default/full). The exception is :

com.google.gdata.util.ParseException: No parser for content type:application-xml[application/xml]
     at com.google.gdata.client.Service.parseResponseData(Service.java:2142)
     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:1077)
     at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:676)
     at com.google.gdata.client.Service.getFeed(Service.java:1034)

Did some sniffing with Wireshark and in the google documentation I see that correct responses should come with Content type : application/atom+xml but failed responses from google now coming with Content Type : application/xml. Seems that something changed in google, and now it's returnes not correct content type and our code stopped to work (it was working fine for few years).

Need to say that part of the google app tenants (our customers) still working fine (with the same code) , but some parts of the customers is failing.

Is there any possible workaround for that issue ?

Thanks


回答1:


The problem was fixed on Google side, so there is nothing to do on our side.



来源:https://stackoverflow.com/questions/51995274/google-contacts-gdata-java-fails-on-no-parser-for-content-typeapplication-xml

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!