LP API person.getArchiveSubscriptionURL() doesn't work

Asked by Dan Streetman

When I call getArchiveSubscriptionURL(archive=) for a private ppa I have access to, but don't yet have a token for, it doesn't correctly generate the password and return the URL, it just returns a JSON object for lp.me

Am I doing something wrong or does lp.me.getArchiveSubscriptionURL() just not work at all?

Question information

English Edit question
Launchpad itself Edit question
No assignee Edit question
Solved by:
Dan Streetman
Last query:
Last reply:
Revision history for this message
Dan Streetman (ddstreet) said :
Revision history for this message
Colin Watson (cjwatson) said :

This isn't a problem with `getArchiveSubscriptionURL`; it's a problem with `lp.me`, specifically https://bugs.launchpad.net/launchpadlib/+bug/504297. You can work around it by resolving the redirect manually using `lp.load(lp.me.self_link)` and calling named operations on the result of that rather than directly on `lp.me`.

Revision history for this message
Dan Streetman (ddstreet) said :

Thanks, that works