josephholsten / rets4r

Bringing RETS to ruby
MIT License
52 stars 28 forks source link

Client#search, CompactNokogiriParser#each Should Recover from NoRecordsFoundException #11

Open josephholsten opened 13 years ago

josephholsten commented 13 years ago

It should certainly log more info.

From this issue in hoptoad: http://mobicentric.hoptoadapp.com/errors/2287869

Error Message: RETS4R::Client::NoRecordsFoundException: No Records Found

Where: lib/rets4r/client/parsers/compact_nokogiri.rb, line 79

Backtrace Summary:

.bundle/gems/ruby/1.8/bundler/gems/rets4r-1ef13955a443/lib/rets4r/client/parsers/compact_nokogiri.rb:79:in `handle_body_start'
.bundle/gems/ruby/1.8/bundler/gems/rets4r-1ef13955a443/lib/rets4r/client/parsers/compact_nokogiri.rb:41:in `start_element'
.bundle/gems/ruby/1.8/gems/nokogiri-1.4.3.1/lib/nokogiri/xml/sax/document.rb:114:in `start_element_namespace'
.bundle/gems/ruby/1.8/gems/nokogiri-1.4.3.1/lib/nokogiri/xml/sax/parser.rb:110:in `parse_with'
.bundle/gems/ruby/1.8/gems/nokogiri-1.4.3.1/lib/nokogiri/xml/sax/parser.rb:110:in `parse_memory'
.bundle/gems/ruby/1.8/gems/nokogiri-1.4.3.1/lib/nokogiri/xml/sax/parser.rb:83:in `parse'
.bundle/gems/ruby/1.8/bundler/gems/rets4r-1ef13955a443/lib/rets4r/client/parsers/compact_nokogiri.rb:19:in `each'
.bundle/gems/ruby/1.8/bundler/gems/rets4r-1ef13955a443/lib/rets4r/client.rb:400:in `search'
lib/rets_service/search_response.rb:45:in `each'
lib/job/photo_sync/two_pass_strategy.rb:6:in `map'
lib/job/photo_sync/two_pass_strategy.rb:6:in `sync_photos'
lib/job/photo_sync.rb:7:in `perform_without_newrelic_transaction_trace'
(eval):3:in `perform'