Unknown attribute value: page=1

Topics: Developer Forum
Jun 14, 2013 at 10:43 PM
Hi,
I'm getting an error when I try to get the collection of sets with this code:

PhotosetCollection myPhotosetCollection = new PhotosetCollection();
myPhotosetCollection = flickr.PhotosetsGetList(@"<myuserID>"); I get a FlickrNet.ParsingException, {"Unknown attribute value: page=1"}

Here is my stack trace:

at FlickrNet.PhotosetCollection.FlickrNet.IFlickrParsable.Load(XmlReader reader)
at FlickrNet.Flickr.GetResponse[T](Dictionary2 parameters, TimeSpan cacheTimeout)
at FlickrNet.Flickr.GetResponseCache[T](Dictionary
2 parameters)
at FlickrNet.Flickr.PhotosetsGetList(String userId)

Any information on why this is happening would be appreciated.

Thanks!

Rafa
Coordinator
Jun 15, 2013 at 7:24 AM
You would only get an error like that is you are using a debug version of the code, and the latest version (and versions going back some time) handle the page attribute fine. Try installing the nuget package to make sure you've got the latest version.

I am assuming you are making an authenticated call, in which case you don't even need to send the empty string to the PhotosetsGetList method, just call flickr.PhotosetsGetList().

Sam
Jun 17, 2013 at 2:06 AM
Thanks! I was not using the NuGet package. Now it works like a charm.

thanks again,

Rafa