seejohnrun / google_plus

Google+ Ruby Gem
163 stars 31 forks source link

RestClient::InternalServerError: 500 Internal Server Error #17

Closed ikaiser closed 5 years ago

ikaiser commented 10 years ago

Hy i have an question:

i try this script: GooglePlus.api_key = Rails.application.secrets.google_plus['app_api_key'] person = GooglePlus::Person.get(u_id, :key => Rails.application.secrets.google_plus['app_api_key'])

    unless person.blank?

    cursor = person.list_activities
      cursor.each do |post|
        p = Post.where(:id_ref => post.attributes['id']).first
        if p.blank?
          Google.import post, user
        else
          Google.update post, user, p

end end end end

and i receive this message:

RestClient::InternalServerError: 500 Internal Server Error

i have some User connected with google + and after 2minutes i receive this error and not contue to import post.