LoginSignup
1
1

More than 5 years have passed since last update.

Google api でinvalid_grantが発生したときの問題

Last updated at Posted at 2015-11-10
Message from application: Authorization failed.  Server message:
{
"error" : "invalid_grant"
} (Signet::AuthorizationError)
/rails/app/path/vendor/bundle/ruby/2.1.0/gems/signet-0.6.1/lib/signet/oauth_2/client.rb:966:in `fetch_access_token'
/rails/app/path/vendor/bundle/ruby/2.1.0/gems/signet-0.6.1/lib/signet/oauth_2/client.rb:983:in `fetch_access_token!'
/rails/app/path/vendor/bundle/ruby/2.1.0/gems/google-api-client-0.8.6/lib/google/api_client/auth/jwt_asserter.rb:105:in `authorize'

サーバの時間がずれていたので、ntpdateで時間を合わせた

/usr/sbin/ntpdate ntp1.jst.mfeed.ad.jp

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1