【发布时间】:2013-04-26 15:36:45
【问题描述】:
过去几年我们一直在使用 Google Contacts API。直到今天,一切似乎都运行良好。尽管将正确的令牌传递给标头,但所有联系人 API 突然开始抛出错误“未找到身份验证标头”。
这是此错误的完整堆栈跟踪
java.lang.NullPointerException: 没有认证头信息| 在 com.google.gdata.util.AuthenticationException.initFromAuthHeader(AuthenticationException.java:96)| 在 com.google.gdata.util.AuthenticationException.(AuthenticationException.java:67)| 在 com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:608)| 在 com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:564)| 在 com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:560)| 在 com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:538)| 在 com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:536)| 在 com.google.gdata.client.Service.getFeed(Service.java:1135)|在 com.google.gdata.client.Service.getFeed(Service.java:1077)|在 com.google.gdata.client.GoogleService.getFeed(GoogleService.java:676)| 在 com.google.gdata.client.Service.query(Service.java:1237)|在 com.google.gdata.client.Service.query(Service.java:1178)|
有人遇到同样的问题吗?如果我们需要更改某些内容,请告诉我们。
TIA,
维杰拉杰
【问题讨论】:
-
我的公司遇到了同样的问题。我们认为这是 Google 方面的一个问题,现在正试图对其进行追踪。
-
我没有看到有人在问题跟踪器中提交有关此错误的错误...您确定这是 Google 的问题吗??
-
我什至无法找到联系人 API 的问题跟踪器。自 2012 年以来,我发现的每一件事要么完全沉默,要么陷入死胡同。许多人在这里报告了各种 API 问题:news.ycombinator.com/item?id=5635982
-
@neoice 即使我们也面临同样的问题...有人可以解决这个问题吗?
标签: google-api google-api-java-client google-contacts-api google-api-client google-shared-contacts