lighthouse-api
lighthouse-api copied to clipboard
Inconsistent parsing => REXML::ParseException
on console...seeing inconsistent parsing behavior. first three times it returned all 100+ projects we have. waited 15 sec, tried again, got exception. example below.
irb(main):022:0> Lighthouse.account = LH_ACCOUNT
irb(main):022:0> Lighthouse.token = LH_TOKEN
irb(main):022:0> Lighthouse::Project.find(:all)
REXML::ParseException: #<REXML::ParseException: #<NoMethodError: undefined method []' for nil:NilClass> /opt/local/lib/ruby/1.8/rexml/parsers/baseparser.rb:330:in
pull'
/opt/local/lib/ruby/1.8/rexml/parsers/treeparser.rb:22:inparse' /opt/local/lib/ruby/1.8/rexml/document.rb:227:in
build'
/opt/local/lib/ruby/1.8/rexml/document.rb:43:ininitialize' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini/rexml.rb:17:in
new'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini/rexml.rb:17:inparse' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini.rb:12:in
send'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini.rb:12:inparse' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/hash/conversions.rb:164:in
from_xml'
/opt/local/lib/ruby/gems/1.8/gems/activeresource-2.3.5/lib/active_resource/formats/xml_format.rb:19:indecode' /opt/local/lib/ruby/gems/1.8/gems/activeresource-2.3.5/lib/active_resource/connection.rb:138:in
get'
/opt/local/lib/ruby/gems/1.8/gems/activeresource-2.3.5/lib/active_resource/base.rb:639:infind_every' /opt/local/lib/ruby/gems/1.8/gems/activeresource-2.3.5/lib/active_resource/base.rb:582:in
find'
(irb):22:inirb_binding' /opt/local/lib/ruby/1.8/irb/workspace.rb:52:in
irb_binding'
:0
...
Exception parsing
Line:
Position:
Last 80 unconsumed characters:
/opt/local/lib/ruby/1.8/rexml/parsers/baseparser.rb:418:inpull' /opt/local/lib/ruby/1.8/rexml/parsers/treeparser.rb:22:in
parse'
/opt/local/lib/ruby/1.8/rexml/document.rb:227:inbuild' /opt/local/lib/ruby/1.8/rexml/document.rb:43:in
initialize'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini/rexml.rb:17:innew' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini/rexml.rb:17:in
parse'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini.rb:12:in**send**' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini.rb:12:in
parse'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/hash/conversions.rb:164:infrom_xml' /opt/local/lib/ruby/gems/1.8/gems/activeresource-2.3.5/lib/active_resource/formats/xml_format.rb:19:in
decode'
/opt/local/lib/ruby/gems/1.8/gems/activeresource-2.3.5/lib/active_resource/connection.rb:138:inget' /opt/local/lib/ruby/gems/1.8/gems/activeresource-2.3.5/lib/active_resource/base.rb:639:in
find_every'
/opt/local/lib/ruby/gems/1.8/gems/activeresource-2.3.5/lib/active_resource/base.rb:582:infind' (irb):22:in
irb_binding'
/opt/local/lib/ruby/1.8/irb/workspace.rb:52:in`irb_binding'
:0
-- truncated --
Exception parsing
Line:
Position:
Last 80 unconsumed characters:
</default-assigned-user
Line:
Position:
Last 80 unconsumed characters:
</default-assigned-user
from /opt/local/lib/ruby/1.8/rexml/parsers/treeparser.rb:92:in parse' from /opt/local/lib/ruby/1.8/rexml/document.rb:227:in
build'
from /opt/local/lib/ruby/1.8/rexml/document.rb:43:in initialize' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini/rexml.rb:17:in
new'
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini/rexml.rb:17:in parse' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini.rb:12:in
send'
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini.rb:12:in parse' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/hash/conversions.rb:164:in
from_xml'
from /opt/local/lib/ruby/gems/1.8/gems/activeresource-2.3.5/lib/active_resource/formats/xml_format.rb:19:in decode' from /opt/local/lib/ruby/gems/1.8/gems/activeresource-2.3.5/lib/active_resource/connection.rb:138:in
get'
from /opt/local/lib/ruby/gems/1.8/gems/activeresource-2.3.5/lib/active_resource/base.rb:639:in find_every' from /opt/local/lib/ruby/gems/1.8/gems/activeresource-2.3.5/lib/active_resource/base.rb:582:in
find'
from (irb):22
from :0