First time here? Check out the FAQ!
0

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:inblock 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:inread' 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:inblock 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:inread_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:inbody' 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:intransport_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:inrequest_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:instart' 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:insearch' from hl_feed_update.rb:86:in block in <main>' from hl_feed_update.rb:71:ineach' from hl_feed_update.rb:71:in `<main>'

Let me know if any one can help me to get it fixed.

Thanks

atxwebdesigner's avatar
atxwebdesigner
asked 2018-01-17 08:43:15 -0500
edit flag offensive 0 remove flag close merge delete

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.

bwolven's avatar bwolven (2018-01-17 10:48:07 -0500) edit

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

atxwebdesigner's avatar atxwebdesigner (2018-01-17 12:09:05 -0500) edit
add a comment see more comments

1 Answer

0

From our logs it looks like you are successfully pulling data now. I see successful data pulls from "Ruby RETS/v2.0.8' Can you verify that it is working now?

bwolven's avatar
bwolven
answered 2018-01-17 14:36:55 -0500, updated 2018-01-18 11:55:49 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer