This project has moved and is read-only. For the latest updates, please go here.

Error on flickr.PhotosSearch


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.


samjudson wrote Oct 9, 2014 at 11:14 AM


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.


bonesxpto wrote Oct 9, 2014 at 12:32 PM

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

Thank you Sam.