I am using the Infusionsoft Ruby API Wrapper. I put
gem 'infusionsoft'
in my gemfile.
I added my API key and URL as environment variables, which are loaded into the initializer as follows:
Infusionsoft.configure do |config| config.api_url = ENV['INFUSIONSOFT_URL']
But when I test the add contact service in my rails console, I get this error:
SocketError: getaddrinfo: nodename nor servname provided, or not known from /Users/Justus/.rbenv/versions/2.1.2/lib/ruby/2.1.0/net/http.rb:879:in `initialize'
Does anyone know of a fix for this?
source share