Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client_search.rb in rets 1.7 #27

Open
treffiletti opened this issue Feb 13, 2012 · 0 comments
Open

Client_search.rb in rets 1.7 #27

treffiletti opened this issue Feb 13, 2012 · 0 comments

Comments

@treffiletti
Copy link

Im currently working with a rets 1.7 server and I'm walking through the code right now trying to figure out what you did here. I'm debating rewriting what you have to suit my application a bit better since im having a hard time getting one of the examples running under 1.7. If you tell me that this should work with RETS 1.7 and I could get the client search example to work then I would probably just say screw rewriting anything and use this...

Anyway - I'm running into the following issue I've change the yaml file so that my common settings have the right url, username, password and I changed the rets version to 1.7. I also had to add require 'rubygems' at the top of the file in order to get active support to load using rails 3. After that is done I run the client_search.rb and it comes back with the following error:

Macbook-Pro:josephholsten-rets4r-75109f9 TrefBookPro$ ruby examples/client_search.rb 
We successfully logged into the RETS server!
./lib/rets4r/client/parsers/compact_nokogiri.rb:111:in `handle_body_start': Server error. (RETS4R::Client::MiscellaneousSearchErrorException)
from ./lib/rets4r/client/parsers/compact_nokogiri.rb:61:in `start_element'
from /Library/Ruby/Gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/xml/sax/document.rb:116:in `start_element_namespace'
from /Library/Ruby/Gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/xml/sax/parser.rb:110:in `parse_with'
from /Library/Ruby/Gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/xml/sax/parser.rb:110:in `parse_memory'
from /Library/Ruby/Gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/xml/sax/parser.rb:83:in `parse'
from ./lib/rets4r/client/parsers/compact_nokogiri.rb:23:in `each'
from ./lib/rets4r/client.rb:374:in `search'
from examples/client_search.rb:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant