[libRETS-users] Error Logging In

179 views
Skip to first unread message

Dan Flood

unread,
Oct 12, 2012, 10:18:16 AM10/12/12
to libret...@crt.realtors.org
Hi, I read through some old posts regarding this, but didn't find anything specific to my problem... Most likely a newbie thing.

Stepping myself through the librets documentation in C# I fail at the line : 

if(!session.login(user,pass))
{
     ......

With this error:
The data stream ended before the XML parser could parse everything.
This can happen if the network connection terminates before all the data has been received.

Using Visual Studio 2010
Latest LibRets x64, App is targeted to x64
Tried targeting both .net 3.5 and 4.0

I can understand receiving this with a large dataset but on a login... I'm confused  :-)

Thanks for any guidance in advance!

Rob Overman

unread,
Oct 12, 2012, 10:33:55 AM10/12/12
to d...@danflood.com, For discussion and help for and by the users of the libRETS C++ library, libret...@crt.realtors.org
Sounds to me like a failed login that is mishandled by the server. The server response is cut midstream or just malformed.

Using Fiddler or a similar packet viewer may help see exactly what (if anything) is being returned by the server.

Rob Overman
Founder, Managing Director
nōshun software
http://twitter.com/roverman
http://noshun.net

> _______________________________________________
> libRETS-users mailing list
> libRET...@crt.realtors.org
> http://mail.crt.realtors.org/mailman/listinfo/librets-users
_______________________________________________
libRETS-users mailing list
libRET...@crt.realtors.org
http://mail.crt.realtors.org/mailman/listinfo/librets-users

Keith T. Garner

unread,
Oct 12, 2012, 10:59:31 AM10/12/12
to For discussion and help for and by the users of the libRETS C++ library, d...@danflood.com

On Oct 12, 2012, at 9:33 AM, Rob Overman <codeim...@gmail.com> wrote:

> Sounds to me like a failed login that is mishandled by the server. The server response is cut midstream or just malformed.
>
> Using Fiddler or a similar packet viewer may help see exactly what (if anything) is being returned by the server.

The http logging built into libRETS will also get you similar information. (I love me a packet sniffer, but it may not be warranted.)

Keith


--
Keith T. Garner - kga...@realtors.org - 312-329-3294 - http://realtor.org/
National Association of REALTORS® - VP - Information Technology Services

Dan Flood

unread,
Oct 12, 2012, 12:13:54 PM10/12/12
to Keith T. Garner, For discussion and help for and by the users of the libRETS C++ library
Ah - it seems I had a trailing /  at the end of my url which confused the library ......... all fixed now.

Thank you both :-)
Reply all
Reply to author
Forward
0 new messages