Recent activity
Subscribe to this feed
Aubrey Holland replied on January 27, 2009 00:54 to the question "URI::InvalidURIError when using the API." in New Relic:
Aubrey Holland marked one of Bill Kayser's replies in New Relic as useful. Bill Kayser replied to the question "URI::InvalidURIError when using the API.".
Aubrey Holland asked a question in New Relic on January 26, 2009 22:45:
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?
Loading Profile...
