I am getting (Zlib::DataError) when I use search
Hi I am having problem in my ruby script when I am doing search.
The following is the query I am doing client.search(:search_type => :Property, :class => 'RL_5', :query => "(ListDate=1990-01-01+)")
After running from command prompt I am getting following error
/usr/local/rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/net/http/response.rb:380:in inflate': incorrect header check (Zlib::DataError)
from /usr/local/rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/net/http/response.rb:380:in
block in inflate_adapter'
from /usr/local/rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/net/protocol.rb:411:in call_block'
from /usr/local/rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/net/protocol.rb:402:in
<<'
from /usr/local/rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/net/protocol.rb:108:in read'
from /usr/local/rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/net/http/response.rb:402:in
read'
from /usr/local/rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/net/http/response.rb:319:in read_chunked'
from /usr/local/rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/net/http/response.rb:283:in
block in read_body_0'
from /usr/local/rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/net/http/response.rb:262:in inflater'
from /usr/local/rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/net/http/response.rb:281:in
read_body_0'
from /usr/local/rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/net/http/response.rb:202:in read_body'
from /usr/local/rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/net/http/response.rb:227:in
body'
from /usr/local/rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/net/http/response.rb:164:in reading_body'
from /usr/local/rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/net/http.rb:1445:in
transport_request'
from /usr/local/rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/net/http.rb:1407:in request'
from /usr/local/rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/net/http.rb:1308:in
request_get'
from /usr/local/rvm/gems/ruby-2.3.4/gems/ruby-rets-2.0.8/lib/rets/http.rb:208:in block in request'
from /usr/local/rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/net/http.rb:853:in
start'
from /usr/local/rvm/gems/ruby-2.3.4/gems/ruby-rets-2.0.8/lib/rets/http.rb:207:in request'
from /usr/local/rvm/gems/ruby-2.3.4/gems/ruby-rets-2.0.8/lib/rets/base/core.rb:268:in
search'
from hl_feed_update.rb:86:in block in <main>'
from hl_feed_update.rb:71:in
each'
from hl_feed_update.rb:71:in `<main>'
Let me know if any one can help me to get it fixed.
Thanks
Comments
I'm not familiar with ruby, but I see the search request in our logs, but it shows the "remote host closed the connection". Note: Make sure to logout (client.logout) when finished.I'm assuming HLMLS since you didn't put your connection URL.
In 1.5 version the following query is used to work. But now it is not working in 1.8. Can you help me the fix to work on 1.8?
client.search(:search_type => :Property, :class => 'RL_5', :query => "(L_IdxInclude=0)", :select => [rets_index, "L_UpdateDate", "L_StatusDate", "L_Last_Photo_updt"]) do |da