google / gdata-objectivec-client

Google Data APIs Objective-C Client Library
Apache License 2.0
181 stars 88 forks source link

Photos can't create album #200

Open mirkoevo opened 7 years ago

mirkoevo commented 7 years ago

Hi,

I have a new problem with Photos unders OS X/objc. Now it seems I can't create albums anymore, and I don't know if I can workaround the problem in some ways. This is the output:

2017-02-27 10:23:55.949 App[22136:11534254] serviceBase:<GDataServiceGooglePhotos: 0x6200001c1a40> objectFetcher:GTMHTTPFetcher 0x1036a8c80 (https://photos.googleapis.com/data/feed/api/user/114209999584000922529) failedWithStatus:501 data:Insert is no longer supported 2017-02-27 10:23:55.949 App[22136:11534254] Google Photos: Creating album failed: Error Domain=com.google.HTTPStatus Code=501 "(null)" UserInfo={data=<496e7365 72742069 73206e6f 206c6f6e 67657220 73757070 6f727465 64>}

Do you have any ideas why it returns "Insert is no longer supported" ? (tested with old/new auth token)

Thank you.

    GDataEntryPhotoAlbum *newAlbum = [GDataEntryPhotoAlbum albumEntry];

    [newAlbum setTitleWithString:albumName];
    [newAlbum setPhotoDescriptionWithString: [_album objectForKey: @"description"]];
    [newAlbum setLocation: [_album objectForKey: @"location"]];
    [newAlbum setAccess:access];

    NSURL *postLink = [[[_picasaController albumFeed] postLink] URL];

    [[_service mainThreadProxy] fetchEntryByInsertingEntry:newAlbum
                                                    forFeedURL:postLink
                                                      delegate:self
thomasvl commented 7 years ago

You'd likely need to use the support areas for the Picasa Web Albums API. But taking a quick peek there, it looks like there are several posts from folks using a variety of languages, that mutations started failing for some reason.