Get your own customer support community
 

URI::InvalidURIError when using the API.

I'm trying to use the new API, and when I make a request I get an error like this:


>> NewRelicApi::Account.find(:first).applications(:params => {:conditions => {:name => 'Production'}})
URI::InvalidURIError: bad URI(is not URI?): https://:
from /usr/lib64/ruby/1.8/uri/common.rb:436:in `split'
from /usr/lib64/ruby/1.8/uri/common.rb:485:in `parse'
from /usr/lib64/ruby/gems/1.8/gems/activeresource-2.1.1/lib/active_resource/base.rb:598:in `create_site_uri_from'
from /usr/lib64/ruby/gems/1.8/gems/activeresource-2.1.1/lib/active_resource/base.rb:235:in `site='
from /data/polar/releases/20090126222647/vendor/plugins/newrelic_rpm/lib/new_relic_api.rb:134


I found that if I set the host in my newrelic.yml file to rpm.newrelic.com, it will fix the problem in development mode, but when I deploy with this setting, I get errors like this in my newrelic logs, and reporting stops working:


[01/26/09 14:02:13 (14310)] INFO : Unable to establish connection with New Relic RPM Service at rpm.newrelic.com:443
[01/26/09 14:02:13 (14310)] ERROR : wrong status line: "<html>"
[01/26/09 14:02:14 (14310)] INFO : Will re-attempt in 1 minute
[01/26/09 14:03:14 (14310)] INFO : Unable to establish connection with New Relic RPM Service at rpm.newrelic.com:443
</html>


Is there some setting that I'm missing here?
 
sad I’m frustrated
Inappropriate?
1 person has this question

User_default_medium