Response Content Type Error in getMultipleLeads

Anonymous
Not applicable

Response Content Type Error in getMultipleLeads

Hi all,

When calling getMultipleLeads() in C#, I get exception of response content type error.
My batch size was 1000, and after 260k records(260 batches) completed, when getting the next batch, I got exception with message as bellow.
    Client found response content type of 'text/html', but expected 'text/xml'. The request failed with the error message:--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xtml1-transitional.

What does this message mean? And how could I deal with it?

Best Regards,
Biao
Tags (1)
2 REPLIES 2
Anonymous
Not applicable

Re: Response Content Type Error in getMultipleLeads

It looks like a malformed call, unrelated to C-sharp and Marketo. It may be a wrong endpoint.

I would suggest using Fiddler to troubleshoot:

http://fiddler2.com/get-fiddler
Anonymous
Not applicable

Re: Response Content Type Error in getMultipleLeads

Hi bgomes,

I was using Fiddler for troubleshooting. But it can not be reproduced now.
I guess that's because my test data is changing at any time. But even I set the updated time to the point of my last test, I still can not reproduce it.
Is there any one else has meet my problem? Or could you pass me some details for Exceptions, that I could retry my request after catching them?

Thanks and Regards,
Biao