jpfielding / gorets Goto Github PK
View Code? Open in Web Editor NEWRETS client in Go
License: GNU General Public License v3.0
RETS client in Go
License: GNU General Public License v3.0
hi, im doing some request to a rest service and after some time i get this error
Post http://imls.rets.fnismls.com/rets/fnisrets.aspx/IMLS/search: http: ContentLength=766 with Body length
Hi,
I tried to run Gorets both in Appengine and Ubuntu but I get an error which seems like a missing function? Kindly let me know what you think I missed to do? By the way, I used the given sample code in the main readme page of gorets; do I need to update anything on the given sample code?
./gorets.go:76: undefined: client.GetMetadata
./gorets.go:80: unknown client.MetadataRequest field 'Id' in struct literal
./gorets.go:93: undefined: client.COUNT_AFTER
./gorets.go:97: undefined: client.Search
./gorets.go:111: too many arguments to conversion to client.GetObject: client.GetObject(session, ctx, client.GetObjectRequest literal)
./gorets.go:127: too many arguments to conversion to client.GetObject: client.GetObject(session, ctx, client.GetObjectRequest literal)
Thanks a lot!
-Edwin
Hello, cheers! I am facing a repetitive problem while am pulling data using gorets. I don't know if it's gorets related, HTTP or my implementation. The problem is that in some request after I make a SearchCompact then am getting unexpected EOF
The logs of the search is as follows:
POST /rets/Search.ashx HTTP/1.1
Host: matrixrets.pcmls.com
User-Agent: Threewide/1.0
Content-Length: 156
Accept: */*
Authorization: Digest username="15551", realm="MATRIX", nonce="MjAxOC0xMS0xNCAwMDo1MDoyNS43Njg", uri="/rets/Search.ashx", response="3a56c08963b6dfaa0af0f663079ba12f", qop=auth, nc=0000000b, cnonce=$
Content-Type: application/x-www-form-urlencoded
Cookie: AWSALB=8jcZi34A2hw558yRHgYqEYWUeolxTzRWvfLCZPURLN8V30A8VjzjS6F2H/WP1ih+qNDKB6afLP3TkobiAeLIlaDzqL15IuW3x+8xo201jC8uA9dK/xQTIdI9; ASP.NET_SessionId=sjytbucm0vy1jhmnosyznn5t
Rets-Version: RETS/1.8
Class=Listing&Count=1&Format=COMPACT&Limit=500&Offset=20000&Query=%28LastChangeTimestamp%3D2015-01-01T00%3A00%3A00%2B%29&QueryType=DMQL2&SearchType=PropertyHTTP/1.1 200 OK
Date: Tue, 13 Nov 2018 23:50:45 GMT
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Set-Cookie: AWSALB=9QcBTCKmkFqw7HpAdZNTJbookeq3AldZQp9ZdruLsC+Yf622RVSXT02WNtTMneiP4eZy/amSgUE6m5999y3YS8DqS47Msn6wNxc5uskKlJQGr3p8Yas2GHfgZjSK; Expires=Tue, 20 Nov 2018 23:50:45 GMT; Path=/
Cache-Control: private
Server: Microsoft-IIS/8.0
RETS-Version: RETS/1.8
X-AspNet-Version: 4.0.30319
X-UA-Compatible: IE=Edge
X-Content-Type-Options: nosniff
And the last data retrieved is as follows https://pastebin.com/raw/7ck2ndgs
So, where may I be failing? or how can I avoid this and get all the data?
hi,
im trying to connect to http://testing.reso.org but i have a problem, always give me 401 - Unauthorized: Access is denied due to invalid credentials.
also i ran gorets explore but get the same message
i ran unsing the following credentials
Login URL: http://testing.reso.org:9080/Login.asmx/Login
User Name: leonardoo
Password: leonardoo
User Agent: ResoTestingClient/1.0
User Agent Password: ResoCompl
RETS Version: RETS/1.7.2
also i did a test using https://retsmd.com/ and it work ok and got all the metadata
Thanks
rets 1.8 - 8.x
basically hand back whatever response the server offers
I found that the AsStandard.Convert() function does not seem to include the ForeignKeys. Looking at the wirelog I found its a xml deserialize error it seems, the name in the log has an s
and by adding the s
in the code to be METADATA-FOREIGN_KEYS
fixed the issue, I could open a PR for this but I really have only one server to test this against, and don't want to make braking changes for others.
Hi,
I'm trying to persist connection configs.
Tried, creating a json and map it in docker launch but no joy
-v ./gorets-explorer/config.json:/opt/explorer/config.json:rw
Any suggestions?
need to investigate supporting https
Hello
I'm trying to install RET-MD on my own hosting site but I keep getting the following error returned:
RETS M.D.
Error
There was an issue communicating with the RETS server:
HTTP (0)
thanks
Brian
digest auth works and passes unit tests, but needs a less ugly nc and cnonce calc along with making the processing more idiomatic.
The link to the Go Docs now returns a 404. Someone removed your docs!
When trying to build the gorets
library with Go 1.6, I get the following error.
rets/get.go:7:2: cannot find package "context" in any of:
/Users/me/workspaces/go/src/github.com/jpfielding/gorets/vendor/context (vendor tree)
/usr/local/go/src/context (from $GOROOT)
/Users/me/workspaces/go/src/context (from $GOPATH)
make: *** [test] Error 1
If I replace the "content"
import by "golang.net/x/net/context"
then it works.
PS: This is a great library, by the way. Kudos JP!!
currently any response is ignored. process any data provided. see rets 1.8 - 6.4
Heya, trying to work out how to use this package outside of the CMD and Explorer functionalities, and I'm sort of for want of docs around how to accomplish some basic interactions.
For simple comparison, I'm currently using estately/rets (though I am looking to get off of Ruby)
In their repo, there's a brief examples
directory that, while very unhelpful for more complicated interactions, does give some idea for how to start using things.
An example of this would be here: https://github.com/estately/rets/blob/master/example/connect.rb
I'm not a terribly experienced Go developer, so these issues I'm having might just be related to this... though it would be nice to see a relatively straight-forward script that takes in some auth values and a url and gives back a usable session.
Any help around this would be appreciated.
Thanks.
does any server actually support this? if so, testing would be a nightmare.
split is a bit too naive to use in this case. it doesnt fail for every vendor but it does fail at edge cases.
http://rets.server.com/login?rets=1.5 as a login url causes issues when constructing the urls for the other capability end points.
Not sure what it was that changed in this particular commit (labelled issue #52 where intereality server challenges both basic and digest, but only accepts digest
) but it broke my ability to log into my RETS server.
This is observable in the gorets tool, when running search:
search: unable to parse capabilites response: failed to read urls
I know this is not an issue, it actually a question? Is anyone using this gorets client on Heroku?
thanks
Brian
need to hand back http and rets response codes as return params. some mls' return 404 and we start the xml processing too late to notice.
investigate a common processor for compact data between metadata and search if possible
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.