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

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Dan Streetman
Solved:
Last query:
Last reply:
Revision history for this message
Dan Streetman (ddstreet) said :
#1
Revision history for this message
Colin Watson (cjwatson) said :
#2

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 :
#3

Thanks, that works