T
Todd Breiholz
I'm getting the following error when executing in Ruby 1.8.4 (tried it
both on Windows and OS X). I did not see this problem in 1.8.2.
Here is the code:
def init_server(url)
@url =3D URI.parse(url)
@server =3D Net::HTTP.new(@url.host, @url.port)
@server.use_ssl =3D @url.scheme =3D=3D 'https'
@server.verify_mode =3D OpenSSL::SSL::VERIFY_NONE
# run ruby with -d to see SOAP wiredumps.
@server.set_debug_output $stderr if show_debug
end
And here is the error:
NoMethodError: You have a nil object when you didn't expect it!
The error occured while evaluating nil.verify_mode
from e:/ruby/lib/ruby/1.8/net/http.rb:565:in `connect'
from e:/ruby/lib/ruby/1.8/net/http.rb:555:in `do_start'
from e:/ruby/lib/ruby/1.8/net/http.rb:544:in `start'
from e:/ruby/lib/ruby/1.8/net/http.rb:1031:in `request'
from e:/ruby/lib/ruby/1.8/net/http.rb:988:in `post2'
from e:/ruby/lib/ruby/gems/1.8/gems/activesalesforce-0.2.2/lib/rfor=
ce.rb:230:in
`call_remote'
from e:/ruby/lib/ruby/gems/1.8/gems/activesalesforce-0.2.2/lib/rfor=
ce.rb:185:in
`login'
from e:/ruby/lib/ruby/gems/1.8/gems/activesalesforce-0.2.2/lib/sale=
sforce_connection_adapter.rb:72:in
`activesalesforce_connection'
from e:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_=
record/connection_adapters/abstract/connection_specification.rb:145:in
`connection_without_query_cache=3D'
from e:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_=
record/query_cache.rb:54:in
`connection=3D'
from e:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_=
record/connection_adapters/abstract/connection_specification.rb:106:in
`retrieve_connection'
from e:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_=
record/connection_adapters/abstract/connection_specification.rb:20:in
`connection'
from e:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_=
record/base.rb:931:in
`add_limit!'
from e:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_=
record/base.rb:924:in
`construct_finder_sql'
from e:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_=
record/base.rb:395:in
`find'
I found a reference to the same problem on a Debian bug list
(http://www.mail-archive.com/[email protected]/msg149314.ht=
ml)
but no resolution.
Did something change between 1.8.2 and 1.8.4 in regards to handling
HTTPS connections?
Thanks!
Todd Breiholz
both on Windows and OS X). I did not see this problem in 1.8.2.
Here is the code:
def init_server(url)
@url =3D URI.parse(url)
@server =3D Net::HTTP.new(@url.host, @url.port)
@server.use_ssl =3D @url.scheme =3D=3D 'https'
@server.verify_mode =3D OpenSSL::SSL::VERIFY_NONE
# run ruby with -d to see SOAP wiredumps.
@server.set_debug_output $stderr if show_debug
end
And here is the error:
NoMethodError: You have a nil object when you didn't expect it!
The error occured while evaluating nil.verify_mode
from e:/ruby/lib/ruby/1.8/net/http.rb:565:in `connect'
from e:/ruby/lib/ruby/1.8/net/http.rb:555:in `do_start'
from e:/ruby/lib/ruby/1.8/net/http.rb:544:in `start'
from e:/ruby/lib/ruby/1.8/net/http.rb:1031:in `request'
from e:/ruby/lib/ruby/1.8/net/http.rb:988:in `post2'
from e:/ruby/lib/ruby/gems/1.8/gems/activesalesforce-0.2.2/lib/rfor=
ce.rb:230:in
`call_remote'
from e:/ruby/lib/ruby/gems/1.8/gems/activesalesforce-0.2.2/lib/rfor=
ce.rb:185:in
`login'
from e:/ruby/lib/ruby/gems/1.8/gems/activesalesforce-0.2.2/lib/sale=
sforce_connection_adapter.rb:72:in
`activesalesforce_connection'
from e:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_=
record/connection_adapters/abstract/connection_specification.rb:145:in
`connection_without_query_cache=3D'
from e:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_=
record/query_cache.rb:54:in
`connection=3D'
from e:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_=
record/connection_adapters/abstract/connection_specification.rb:106:in
`retrieve_connection'
from e:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_=
record/connection_adapters/abstract/connection_specification.rb:20:in
`connection'
from e:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_=
record/base.rb:931:in
`add_limit!'
from e:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_=
record/base.rb:924:in
`construct_finder_sql'
from e:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_=
record/base.rb:395:in
`find'
I found a reference to the same problem on a Debian bug list
(http://www.mail-archive.com/[email protected]/msg149314.ht=
ml)
but no resolution.
Did something change between 1.8.2 and 1.8.4 in regards to handling
HTTPS connections?
Thanks!
Todd Breiholz