GithubHelp home page GithubHelp logo

gplus's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gplus's Issues

api requests are not working, bad request

We're try to use gplus, but after a successfull oauth process, the normal api requests are not working:

Gplus Client: #<Gplus::Client:0x6aa9780 @oauth_client=#<OAuth2::Client:0x6aa95c8 @site="https://www.googleapis.com/plus", @id="XXX", @secret="XXX", @options={:token_method=>:post, :connection_opts=>{}, :connection_build=>nil, :max_redirects=>5, :raise_errors=>true, :authorize_url=>"https://accounts.google.com/o/oauth2/auth", :token_url=>"https://accounts.google.com/o/oauth2/token"}>, @token_expires_at=1325083620, @token="XXX, @redirect_uri="XXX", @refresh_token="XXX", @client_secret="XXX", @client_id="XXX", @api_version="v1", @endpoint="https://www.googleapis.com/plus", @api_key=nil>

Gplus access token: MISSING!

Oauth error: #<OAuth2::Error: OAuth2::Error>

Oauth response: #<OAuth2::Response:0x6a97a58 @error=#<OAuth2::Error: OAuth2::Error>, @parsed={"error"=>{"code"=>400, "errors"=>[{"domain"=>"global", "reason"=>"badRequest", "message"=>"Bad Request"}], "message"=>"Bad Request"}}, @response=#<Faraday::Response:0x6a97a80 @env={:response=>#<Faraday::Response:0x6a97a80 ...>, :response_headers=>{"x-content-type-options"=>"nosniff", "x-frame-options"=>"SAMEORIGIN", "expires"=>"Wed, 28 Dec 2011 14:09:57 GMT", "content-type"=>"application/json; charset=UTF-8", "connection"=>"close", "date"=>"Wed, 28 Dec 2011 14:09:57 GMT", "x-xss-protection"=>"1; mode=block", "server"=>"GSE", "cache-control"=>"private, max-age=0"}, :request_headers=>{}, :status=>400, :request=>{:proxy=>nil}, :method=>:get, :parallel_manager=>nil, :url=>#<Addressable::URI:0x355221c URI:https://www.googleapis.com/plus/v1/people/115135253293279523949?key=>, :ssl=>{}, :body=>"{\n "error": {\n "errors": [\n {\n "domain": "global",\n "reason": "badRequest",\n "message": "Bad Request"\n }\n ],\n "code": 400,\n "message": "Bad Request"\n }\n}\n"}, @on_complete_callbacks=[]>, @options={:parse=>nil}>

May be the API has changed?

Thanks,
Tamas

Gplus needs better debugging output

OAuth2 only raises OAuth2::Error exceptions. While this is the correct behavior (it's a general purpose tool and shouldn't have to know anything about specific Google+ errors), it makes debugging a real pain in Gplus.

Gplus needs to raise sensible, Google+ specific exceptions, including the error messages returned from Google+.

@tompata, you mentioned in #1 that "debugging is very difficult now". How are you currently debugging Gplus, and is it more difficult in 2.0.0? Would Gplus raising specific exceptions (instead of not catching OAuth2::Errors) be helpful?

wrong file permissions in gem (tar)

in the gem data.tar.gz, where all the (lib) files are located, there's wrong file permissions.
there's only RW permissions for the owner, but all the other read permissions are missing! (0600)

that's why in our server the gplus gem is unavailable: uninitialized constant Gplus

the expected, correct file permissions would be:
0644

please modify the file permissions before build the next gem version!

thanks,
Tamas

Can't fetch "plusoners", "resharers" on post

An activity carries the count for comments, pluses and reshares, but all of those also provide a URI to fetch the actual comments or reshares. The gem currently provides a way to fetch comments, but nothing for plusoners / resharers -- would be great to have!

automatic token refresh does not work

When the token expires, gplus should refresh the token automatically.

But actually I've got the following oauth error:

Oauth error: #
Oauth response: #, @parsed={"error"=>{"code"=>401, "errors"=>[{"location"=>"Authorization", "domain"=>"global", "locationType"=>"header", "reason"=>"authError", "message"=>"Invalid Credentials"}], "message"=>"Invalid Credentials"}}, @response=##, :status=>401, :request=>{:proxy=>nil}, :parallel_manager=>nil, :method=>:get, :response_headers=>{"x-content-type-options"=>"nosniff", "x-frame-options"=>"SAMEORIGIN", "expires"=>"Tue, 03 Jan 2012 13:48:19 GMT", "content-type"=>"application/json; charset=UTF-8", "connection"=>"close", "www-authenticate"=>"AuthSub realm=\"https://www.google.com/accounts/AuthSubRequest\" allowed-scopes=\"https://www.googleapis.com/auth/userinfo.email,https://www.googleapis.com/auth/plus.me,https://www.googleapis.com/auth/plus.people.recommended\"", "date"=>"Tue, 03 Jan 2012 13:48:19 GMT", "x-xss-protection"=>"1; mode=block", "server"=>"GSE", "cache-control"=>"private, max-age=0"}, :url=>#, :request_headers=>{"Authorization"=>"Bearer ya29.AHES6ZQZV22ZSbd23he23pcufyUifj0kE_FecvCJAel-1vixl_kduw"}, :ssl=>{}, :body=>"{\n \"error\": {\n  \"errors\": [\n   {\n    \"domain\": \"global\",\n    \"reason\": \"authError\",\n    \"message\": \"Invalid Credentials\",\n    \"locationType\": \"header\",\n    \"location\": \"Authorization\"\n   }\n  ],\n  \"code\": 401,\n  \"message\": \"Invalid Credentials\"\n }\n}\n"}, @on_complete_callbacks=[]>, @options={:parse=>nil}>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.