问题 com.google.gdata.util.ResourceNotFoundException: Not Found with Google Analytic [英] Issue com.google.gdata.util.ResourceNotFoundException: Not Found with Google Analytic

查看:39
本文介绍了问题 com.google.gdata.util.ResourceNotFoundException: Not Found with Google Analytic的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题描述

我正在使用 Google 分析来分析网站的显示访问量/跳出率.在昨天之前,功能运行良好.但现在我收到一个错误

com.google.gdata.util.ResourceNotFoundException:未找到<!DOCTYPE html><html lang=en><元字符集=utf-8><meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width"><title>错误 404(未找到)!!1</title><风格>*{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;最大宽度:390px;最小高度:180px;padding:30px 0 15px}* >body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media 屏幕和 (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}</风格><a href=//www.google.com/><img src=//www.google.com/images/errors/logo_sm.gif alt=Google></a><p><b>404.</b><ins>这是一个错误.</ins><p>请求的 URL <code>/analytics/feeds/accounts/default</code>在这服务器上没找到.<ins>这就是我们所知道的.</ins>在 com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:599)在 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:998)在 com.google.gdata.client.GoogleService.getFeed(GoogleService.java:645)在 com.google.gdata.client.Service.getFeed(Service.java:1017)在 com.report.utils.GoogleAnlytics.getAvailableAccounts(GoogleAnlytics.java:41)在 com.report.utils.GoogleAnlytics.run(GoogleAnlytics.java:113)在 com.report.utils.GoogleAnlytics.main(GoogleAnlytics.java:164)

我做了什么

我正在使用帐户 URL

"https://www.google.com/analytics/feeds/accounts/default"

我在互联网上搜索了这个问题,但找不到任何解决方案.是什么问题,我该如何解决?

解决方案

该提要已被 Google 关闭.请参阅帐户供稿关闭><块引用>

数据导出 API v2.3 迁移 已完成,API 已关闭.如果您的应用程序尝试访问帐户供稿,它现在将收到 404 错误响应.要解决此错误,请迁移Management API 以访问配置数据.

Problem description

I am using Google analytic for show visits/ bounce rates for a website. Before yesterday functionality was working fine. But now I am getting an error

com.google.gdata.util.ResourceNotFoundException: Not Found
<!DOCTYPE html>
<html lang=en>
  <meta charset=utf-8>
  <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
  <title>Error 404 (Not Found)!!1</title>
  <style>
    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}
  </style>
  <a href=//www.google.com/><img src=//www.google.com/images/errors/logo_sm.gif alt=Google></a>
  <p><b>404.</b> <ins>That’s an error.</ins>
  <p>The requested URL <code>/analytics/feeds/accounts/default</code> was not found on this server.  <ins>That’s all we know.</ins>

    at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:599)
    at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:564)
    at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:560)
    at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:538)
    at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:536)
    at com.google.gdata.client.Service.getFeed(Service.java:1135)
    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 com.report.utils.GoogleAnlytics.getAvailableAccounts(GoogleAnlytics.java:41)
    at com.report.utils.GoogleAnlytics.run(GoogleAnlytics.java:113)
    at com.report.utils.GoogleAnlytics.main(GoogleAnlytics.java:164)

What I did

I am using account URL

"https://www.google.com/analytics/feeds/accounts/default"

I searched about this issue on internet but couldn't find any solution. What is the problem, and how can I solve?

解决方案

The feed has been shut down by Google. See Account Feed Shutdown

The Data Export API v2.3 migration has completed and the API has been shutdown. If your application attempts to access the Account Feed it will now receive a 404 error response. To resolve this error, migrate to the Management API to access configuration data.

这篇关于问题 com.google.gdata.util.ResourceNotFoundException: Not Found with Google Analytic的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆