google-plus - Google Plus 登录 'Unknown RPC service: widget-interactive-I0_1370237493291'

标签 google-plus

对不起,这样的菜鸟问题。

我只是跟着google plus登录的Step1到Step4。
https://developers.google.com/+/web/signin/
登录似乎成功了,但出现了错误“未知 RPC 服务:widget-interactive-I0_1370237493291”。这是 Chrome 上的控制台日志。

XHR finished loading: "https://plusone.google.com/_/scs/apps-static/_/js/k=oz.connect.en_US.B31L_d…sv=1/d=1/ed=1/am=GA/rs=AItRSTOhxGvE7YZFbwjOy6nLkxCnNjz3og/cb=gapi.loaded_1". signin:15
XHR finished loading: "https://plusone.google.com/_/scs/apps-static/_/js/k=oz.gapi.en.hgKKOofQjvI.…sv=1/d=1/ed=1/am=EQ/rs=AItRSTOeNwU4i5ApX9gPGjnZ0AzovKWmWw/cb=gapi.loaded_0". signin:15
Unknown RPC service: widget-interactive-I0_1370237493291 cb=gapi.loaded_0:71
signed in

我认为错误是关于不完整的东西。我无法弄清楚错误究竟是什么以及如何清除它。我错过了什么?

这是代码。来源是http://localhost:3000
<!DOCTYPE html>

<html>
  <head>
    <meta charset="utf-8">
    <title>Gplus</title>
  </head>
  <body>
    <h1>Gplus</h1>
<span id="signinButton">
  <span
    class="g-signin"
    data-callback="signinCallback"
    data-clientid="362449793624.apps.googleusercontent.com"
    data-cookiepolicy="single_host_origin"
    data-requestvisibleactions="http://schemas.google.com/AddActivity"
    data-scope="https://www.googleapis.com/auth/plus.login">
  </span>
</span>
    <script type="text/javascript">
      function signinCallback(authResult) {
  if (authResult['access_token']) {
    // Successfully authorized
    // Hide the sign-in button now that the user is authorized, for example:
    document.getElementById('signinButton').setAttribute('style', 'display: none');
    console.log('signed in');
  } else if (authResult['error']) {
    // There was an error.
    // Possible error codes:
    //   "access_denied" - User denied access to your app
    //   "immediate_failed" - Could not automatically log in the user
    // console.log('There was an error: ' + authResult['error']);
  }
}
      </script>
     <!-- Place this asynchronous JavaScript just before your </body> tag -->
    <script type="text/javascript">
      (function() {
       var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
       po.src = 'https://apis.google.com/js/client:plusone.js';
       var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
     })();
    </script>
  </body>
</html>

最佳答案

我在尝试该代码示例时遇到了同样的问题。在试图弄清楚时,我发现了这篇文章:

https://groups.google.com/forum/?fromgroups#!topic/google-plus-developers/Ax3cMLhMR4Q

在 Google+ 开发者论坛中,这似乎表明这不是真正的“错误”,而是某种警告。如果我发现更多,我会在这里发布更新。

希望这可以帮助。

关于google-plus - Google Plus 登录 'Unknown RPC service: widget-interactive-I0_1370237493291',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16891212/

相关文章:

javascript - 使用 AngularJs 进行 Google+ 登录

android-intent - 从 Android 应用程序打开社交网络个人资料网址?

api - 从 google plus 页面获取帖子

android - 通过 Android 共享时 Google+ 应用程序显示错误的图片

android - Gmail 登录 : Google play service out of date

ios - 如何快速获取我的 gmail 联系人列表的电子邮件地址

google-plus - 在网页上显示 Google plus 社区帖子

ios - 从 Google+ SDK - iOS 仅访问有关用户的基本详细信息

javascript - gapi.client未定义-Firefox附加SDK

windows-phone-7 - 获取 Google+ 访问 token 以获取基本信息