josephholsten / rets4r

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

Requester Should Check for Nil URLs #13

Open josephholsten opened 14 years ago

josephholsten commented 14 years ago

pretty obvious, really.

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

Error Message: NoMethodError: undefined method `host' for nil:NilClass

Where: .bundle/gems/ruby/1.8/bundler/gems/rets4r-1ef13955a443/lib/rets4r/client/requester.rb, line 70

Backtrace Summary:

.bundle/gems/ruby/1.8/bundler/gems/rets4r-1ef13955a443/lib/rets4r/client/requester.rb:70:in `request'
.bundle/gems/ruby/1.8/bundler/gems/rets4r-1ef13955a443/lib/rets4r/client.rb:461:in `request'
.bundle/gems/ruby/1.8/bundler/gems/rets4r-1ef13955a443/lib/rets4r/client.rb:394: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'