![]() Request = 'application/json'Īnd this is the execution of the request: github_request = RequestDouble.new('')ĭoes anyone see why I'm getting the above SocketError message? Does anyone know how I can successfully make the GET request in ruby? This request works just fine in postman and in my browser./Users/travis/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/net/http.rb:906:in `rescue in block in connect': Failed to open TCP connection to :443 (getaddrinfo: nodename nor servname provided, or not known) (Faraday::ConnectionFailed)įrom /Users/travis/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/net/http.rb:903:in `block in connect'įrom /Users/travis/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'įrom /Users/travis/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/timeout.rb:103:in `timeout'įrom /Users/travis/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/net/http.rb:902:in `connect'įrom /Users/travis/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/net/http.rb:887:in `do_start'įrom /Users/travis/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/net/http.rb:876:in `start'įrom /Users/travis/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/net/http.rb:1407:in `request'įrom /Users/travis/.rvm/gems/ruby-2.4.2/gems/faraday-0.13.1/lib/faraday/adapter/net_http.rb:80:in `perform_request'įrom /Users/travis/.rvm/gems/ruby-2.4.2/gems/faraday-0.13.1/lib/faraday/adapter/net_http.rb:38:in `block in call'įrom /Users/travis/.rvm/gems/ruby-2.4.2/gems/faraday-0.13.1/lib/faraday/adapter/net_http.rb:85:in `with_net_http_connection'įrom /Users/travis/.rvm/gems/ruby-2.4.2/gems/faraday-0.13.1/lib/faraday/adapter/net_http.rb:33:in `call'įrom /Users/travis/.rvm/gems/ruby-2.4.2/gems/faraday-0.13.1/lib/faraday/response.rb:8:in `call'įrom /Users/travis/.rvm/gems/ruby-2.4.2/gems/octokit-4.6.2/lib/octokit/middleware/follow_redirects.rb:73:in `perform_with_redirection'įrom /Users/travis/.rvm/gems/ruby-2.4.2/gems/octokit-4.6.2/lib/octokit/middleware/follow_redirects.rb:61:in `call'įrom /Users/travis/.rvm/gems/ruby-2.4.2/gems/faraday-0.13.1/lib/faraday/rack_builder.rb:141:in `build_response'įrom /Users/travis/.rvm/gems/ruby-2.4.2/gems/faraday-0.13.1/lib/faraday/connection.rb:387:in `run_request'įrom /Users/travis/.rvm/gems/ruby-2.4.2/gems/faraday-0.13.1/lib/faraday/connection.rb:174:in `post'įrom /Users/travis/.rvm/gems/ruby-2.4.2/gems/sawyer-0.8.1/lib/sawyer/agent.rb:94:in `call'įrom /Users/travis/.rvm/gems/ruby-2.4.2/gems/octokit-4.6.2/lib/octokit/connection.rb:154:in `request'įrom /Users/travis/.rvm/gems/ruby-2.4.2/gems/octokit-4.6.2/lib/octokit/connection.rb:28:in `post'įrom /Users/travis/.rvm/gems/ruby-2.4.2/gems/octokit-4.6.2/lib/octokit/client/releases.rb:32:in `create_release'įrom /Users/travis/.rvm/gems/ruby-2.4.2/gems/dpl-releases-1.9.7/lib/dpl/provider/releases.rb:106:in `push_app'įrom /Users/travis/.rvm/gems/ruby-2.4.2/gems/dpl-1.9.7/lib/dpl/provider.rb:195:in `block in deploy'įrom /Users/travis/.rvm/gems/ruby-2.4.2/gems/dpl-1.9.7/lib/dpl/cli.rb:41:in `fold'įrom /Users/travis/.rvm/gems/ruby-2.4.2/gems/dpl-1.9.7/lib/dpl/provider.rb:195:in `deploy'įrom /Users/travis/.rvm/gems/ruby-2.4.2/gems/dpl-1.9.7/lib/dpl/cli.rb:32:in `run'įrom /Users/travis/.rvm/gems/ruby-2.4.2/gems/dpl-1.9.7/lib/dpl/cli.rb:7:in `run'įrom /Users/travis/.rvm/gems/ruby-2.4.2/gems/dpl-1.9.7/bin/dpl:5:in `'įrom /Users/travis/.rvm/gems/ruby-2.4.2/bin/dpl:23:in `load'įrom /Users/travis/.rvm/gems/ruby-2.4. Older versions need to install the Devkit manually. ![]() ![]() We only cover RubyInstaller-2.4 and newer here. RubyInstaller is a self-contained Windows-based installer that includes the Ruby language, an execution environment, important documentation, and more. Https = Net::HTTP.new(url.host, url.port) The easiest way to install Ruby and Jekyll is by using the RubyInstaller for Windows. Right now I am currently running into this error message while making a simple GET request in ruby: # ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |