jruby woe

SyntaxError: /Users/packrd/dev/family-history-screen-saver/lib/flickr_photo.rb:15: dynamic constant assignment

OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE

 

meant “put the

OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE

¬†at the root level, not within a class, then it works”

One thought on “jruby woe”

  1. https://api.opencagedata.com/geocode/v1/json?q=kamas%20UT&key=
    OpenSSL::SSL::SSLError: Connection reset by peer
    connect at /usr/local/Cellar/jruby/9.2.11.0/libexec/lib/ruby/stdlib/net/http.rb:1002
    do_start at /usr/local/Cellar/jruby/9.2.11.0/libexec/lib/ruby/stdlib/net/http.rb:924
    start at /usr/local/Cellar/jruby/9.2.11.0/libexec/lib/ruby/stdlib/net/http.rb:913
    start at /usr/local/Cellar/jruby/9.2.11.0/libexec/lib/ruby/stdlib/net/http.rb:609
    get_response at /usr/local/Cellar/jruby/9.2.11.0/libexec/lib/ruby/stdlib/net/http.rb:485
    get at /usr/local/Cellar/jruby/9.2.11.0/libexec/lib/ruby/stdlib/net/http.rb:462

    at bad.rb:5

    meant “that server is actually bad”

    I got it with MRI as well:

    https://api.opencagedata.com/geocode/v1/json?q=kamas%20UT&key=
    Traceback (most recent call last):
    8: from bad.rb:5:in `


    7: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/net/http.rb:458:in `get’
    6: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/net/http.rb:481:in `get_response’
    5: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/net/http.rb:605:in `start’
    4: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/net/http.rb:919:in `start’
    3: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/net/http.rb:930:in `do_start’
    2: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/net/http.rb:996:in `connect’
    1: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/net/protocol.rb:44:in `ssl_socket_connect’
    /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/net/protocol.rb:44:in `connect_nonblock’: Connection reset by peer – SSL_connect (Errno::ECONNRESET)

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.