Error using graph object on windows

92 views
Skip to first unread message

Mahboob Hussain

unread,
Aug 19, 2012, 6:00:51 AM8/19/12
to koala...@googlegroups.com
Hi,


When I run my Ruby code -
@graph = Koala::Facebook::API.new('access_token_which_is_quite_ling')
@graph.get_object("me")
@graph.put_wall_post("I'm updating status from my Ruby program!")

I got the following error:
C:/Ruby193/lib/ruby/1.9.1/net/http.rb:799:in `connect': SSL_connect returned=1 e
rrno=0 state=SSLv3 read server certificate B: certificate verify failed (Faraday
::Error::ConnectionFailed)
        from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:799:in `block in connect'
        from C:/Ruby193/lib/ruby/1.9.1/timeout.rb:54:in `timeout'
        from C:/Ruby193/lib/ruby/1.9.1/timeout.rb:99:in `timeout'
        from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:799:in `connect'
        from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:755:in `do_start'
        from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:744:in `start'
        from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:1284:in `request'
        from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:1026:in `get'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/faraday-0.8.4/lib/faraday/adapt
er/net_http.rb:72:in `perform_request'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/faraday-0.8.4/lib/faraday/adapt
er/net_http.rb:37:in `call'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/faraday-0.8.4/lib/faraday/reque
st/url_encoded.rb:14:in `call'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/faraday-0.8.4/lib/faraday/reque
st/multipart.rb:13:in `call'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/faraday-0.8.4/lib/faraday/conne
ction.rb:226:in `run_request'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/faraday-0.8.4/lib/faraday/conne
ction.rb:87:in `get'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/koala-1.5.0/lib/koala/http_serv
ice.rb:78:in `make_request'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/koala-1.5.0/lib/koala.rb:52:in
`make_request'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/koala-1.5.0/lib/koala/api.rb:51
:in `api'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/koala-1.5.0/lib/koala/api/graph
_api.rb:424:in `graph_call'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/koala-1.5.0/lib/koala/api/graph
_api.rb:49:in `get_object'
        from multi-social-post.rb:23:in `<main>'

Please let me know how to resolve this.

-- Mahboob

Alex Koppel

unread,
Aug 29, 2012, 3:02:29 AM8/29/12
to koala...@googlegroups.com
Hey Mahboob,

It looks like you're seeing the same problem some people saw in Unix and OS X before -- check out the bottom of https://github.com/arsduo/koala/wiki/HTTP-Services.  Unfortunately I don't know where SSL certificates are stored on Windows, but a bit of Googling turned up http://stackoverflow.com/questions/5720484/how-to-solve-certificate-verify-failed-on-windows, which might help (or point you in the right direction).

Best,

Alex
--
You received this message because you are subscribed to the Google Groups "Koala & The Facebook Graph API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/koala-users/-/p7WDjdp1v4YJ.
To post to this group, send email to koala...@googlegroups.com.
To unsubscribe from this group, send email to koala-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/koala-users?hl=en.

Henrique Utsch

unread,
Mar 5, 2013, 12:21:33 PM3/5/13
to koala...@googlegroups.com
Add this

require 'rubygems'
require 'Koala'

graph = Koala::Facebook::API.new('access_token")
Koala.http_service.http_options = {
  ssl: {
    verify: false
  }
}
@graph.get_object("me")
@graph.put_wall_post("I'm updating status from my Ruby program!")


Reply all
Reply to author
Forward
0 new messages