[libRETS-users] Odd error from Python client

16 views
Skip to first unread message

Michael Sparr

unread,
Aug 25, 2016, 10:10:53 AM8/25/16
to libret...@groups.realtors.org
ERROR: in method 'new_GetObjectRequest', argument 2 of type ‘std::string’

Error trying to get photos [in method 'new_GetObjectRequest', argument 2 of type 'std::string']


USAGE:

ptype = “Property”  (default, otherwise passed value in function)
otype = “Photo”  (default, otherwise passed value in function)
request = librets.GetObjectRequest(ptype, otype)

...


QUESTION:

Pulling photos working in most markets but for at least one I’m seeing these errors in logs (in brackets is Exception thrown by librets). Any ideas on cause/conditions and if a string formatting issue, what type (Python) is it expecting?


Thanks!

Mike



Chris Paul

unread,
Aug 25, 2016, 4:24:48 PM8/25/16
to libret...@groups.realtors.org

Hello Mike,        

                Seems strange that doesn’t work for you. I am not crazy versed in python but I’ll see what I can dig up and get back to you.

 

Chris Paul

MLS & Information Technology Manager

Duluth Area Association of REALTORS®

Superior Area Association of REALTORS®

Direct: (218) 722-6051 or (877)-550-5994

Fax: (866) 392-7950

sup...@daar.com

 

Join Us ‘FORE’ the 2016 REALTORS® as Neighbors Golf Fundraiser on Monday, September 19th at Ridgeview Country Club

Michael Sparr

unread,
Aug 25, 2016, 4:27:23 PM8/25/16
to libret...@groups.realtors.org
Thanks Chris.

I don’t think it’s a Python thing and more a librets GetObjectRequest.  We see it happening with all major MLS vendors, and both Property and Agent resources. I’m just curious what that particular error is implying when trying to retrieve photos so we can prevent/solve.

Mike

Chris Paul

unread,
Aug 25, 2016, 4:32:08 PM8/25/16
to libret...@groups.realtors.org

Ah gotch ya! Ok that I may be able to get some info from our vendor. Ill reach out to him and see what he thinks and Ill get back to you when he responds.

Michael Sparr

unread,
Aug 25, 2016, 4:36:08 PM8/25/16
to libret...@groups.realtors.org
This question is for the librets user group (developers/users of librets library maintained by NAR CRT), and not the MLS system vendors per se. Using that library, results in this particular error, so we are wondering what parameters it expects or how to troubleshoot why the error.

Example is if we pass “Property”, “Photo” to the GetObjectRequest and perhaps for Agent resource it should be “Agent”, “AgentPhoto” or something. The error message doesn’t explain enough and no RetsExceptions were thrown so it’s difficult to diagnose.

Thanks,

Mike

Chris Paul

unread,
Aug 25, 2016, 4:51:24 PM8/25/16
to libret...@groups.realtors.org

I see here are some of the system names for photos.

 

Within the property resource and pulling in either SF_1, MF_2, FR_3, LD_4, and CI_5 (single family, mulit family, farms, land, commercial) you can pull the following in regards to photos.

Table Id

Phy Num

System Name

Field Name

105011401201202000

253

LM_char5_2

 

Allow Interior Photos

105000001301096000

494

L_FirstPhotoAddDt

 

First Photo Add Timestamp

105000001301064000

-1

L_PictureCount

 

Photo Count

105000001301065000

-1

L_Last_Photo_updt

 

PhotoTimestamp

 

For Agent resource and agent class the following:

301000003801079000        U_Photos                         User Photos Code

 

Is this useful?

 

Chris Paul

MLS & Information Technology Manager

Duluth Area Association of REALTORS®

Superior Area Association of REALTORS®

Direct: (218) 722-6051 or (877)-550-5994

Fax: (866) 392-7950

sup...@daar.com

 

Join Us ‘FORE’ the 2016 REALTORS® as Neighbors Golf Fundraiser on Monday, September 19th at Ridgeview Country Club

 

 

Chris Paul

MLS & Information Technology Manager

Duluth Area Association of REALTORS®

Superior Area Association of REALTORS®

Direct: (218) 722-6051 or (877)-550-5994

Fax: (866) 392-7950

sup...@daar.com

 

Join Us ‘FORE’ the 2016 REALTORS® as Neighbors Golf Fundraiser on Monday, September 19th at Ridgeview Country Club

 

From: Michael Sparr [mailto:mi...@goomzee.com]

Sent: Thursday, August 25, 2016 3:27 PM
To: libret...@groups.realtors.org

Michael Sparr

unread,
Aug 25, 2016, 5:26:45 PM8/25/16
to libret...@groups.realtors.org
No, it’s a coding issue with C library provided by CRT, not an MLS system question … thanks though!

Chris Paul

unread,
Aug 25, 2016, 5:37:50 PM8/25/16
to libret...@groups.realtors.org

Ah, sorry, I’m new to the association here and rets in general. Wish I was more help, good luck!

Reply all
Reply to author
Forward
0 new messages