Skip to content

SocketError: Failed to open TCP connection to download.finance.yahoo.com:80 #12

@Victorcorcos

Description

@Victorcorcos

Steps to reproduce 🦮

  1. Add gem "ystock", "~> 0.4.14" to Gemfile
  2. bundle install
  3. rails c
  4. execute this...
Ystock.quote("aapl")

The result 🪲

SocketError: Failed to open TCP connection to download.finance.yahoo.com:80 (getaddrinfo: nodename nor servname provided, or not known)
from /Users/victorcosta/.rvm/rubies/ruby-2.5.5/lib/ruby/2.5.0/net/http.rb:939:in `rescue in block in connect'
Caused by SocketError: getaddrinfo: nodename nor servname provided, or not known
from /Users/victorcosta/.rvm/rubies/ruby-2.5.5/lib/ruby/2.5.0/net/http.rb:937:in `initialize'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions