This project has moved. For the latest updates, please go here.
1
Vote

Error on flickr.PhotosSearch

description

Not always but on some calls to PhotoSearch i get an exception:
"Unexpected XML declaration. The XML declaration..."

Looking at the flickr.LastResponse value i can see a "\n" before the XML response:
"\n<?xml version="1.0" encoding="utf-8" ?>...".

If I redo the same search in a couple of seconds i get no exception and the "\n" disappears from the LastResponse:
"<?xml version="1.0" encoding="utf-8" ?>...".

Anyone with a similar issue?
Results are available on the XML, so if this line break be removed before reading the XML the response should be ok. is there a correction to this?

Thank you for your feedback.
Frederico

comments

samjudson wrote Oct 9, 2014 at 10:14 AM

Hi

Yes, I experienced this on Monday when I was doing some testing. It is definitely an issue at Flickr's end, which I have raised with them.

I have also included a hack (Trim() statement) in the latest release (3.15) which is on NuGet now.

Sam

bonesxpto wrote Oct 9, 2014 at 11:32 AM

Absolutely great!
Just updated the reference and error seems to have stopped.

Thank you Sam.