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:
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:
Is there some setting that I'm missing here?
>> 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?
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Aubrey, we discovered this issue with 2.8.0. We have a correction for this in 2.8.1 which is currently in beta testing.
Would you consider trying the 2.8.1 beta?
You can install it from
http://newrelic.rubyforge.org/svn/bet...
The company and 1 other person say
this answers the question
-
Inappropriate?Hey Bill, I'm down with the beta, and it seems to be working fine. Thanks much for the help.
I’m happy,thankful,excited,confident
Loading Profile...



EMPLOYEE