I came across an exception in the exception handler
ruby_odata-0.1.5/lib/ruby_odata/service.rb:371:in `handle_exception': undefined method `content' for nil:NilClass (NoMethodError)
from /Users/jlyman/.rvm/gems/ruby-2.0.0-p247/gems/ruby_odata-0.1.5/lib/ruby_odata/service.rb:102:in `rescue in execute'
from /Users/jlyman/.rvm/gems/ruby-2.0.0-p247/gems/ruby_odata-0.1.5/lib/ruby_odata/service.rb:99:in `execute'
from test.rb:8:in `<main>'
This was being caused by my execute query returning HTML stating unauthorized access instead of expected xml.
This should be handled better to display the exception response if parsing or pathing fails.
I came across an exception in the exception handler
This was being caused by my execute query returning HTML stating unauthorized access instead of expected xml.
This should be handled better to display the exception response if parsing or pathing fails.