5

このような初心者の質問で申し訳ありません。

google plus signin の 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>
4

1 に答える 1

2

そのコード サンプルを試していたときに、同じ問題が発生しました。それを理解しようとしているとき、私はこの記事を見つけました:

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

これは、実際には「エラー」ではなく、ある種の警告であることを示しているようです。詳細がわかったら、ここに最新情報を投稿します。

お役に立てれば。

于 2013-06-08T04:14:52.787 に答える