=== chihchun_afk is now known as chihchun | ||
mvo | hey, I was trying to enable automatic builds on branch changes for https://code.launchpad.net/~mvo/+snap/base-18/ - but the checkbox "Automatically build when branch changes" and hit update snap package I get a "Uh oh!" error page with no oops ( Technically, the load balancer took too long to connect to an application server.) | 07:58 |
---|---|---|
wgrant | mvo: Is that reproducible? | 08:08 |
wgrant | That suggests the store took too long to reply to LP, but it's working okay for me now. | 08:10 |
mvo | wgrant: for me it is reproducible, I get it everytime (just tried again 10sec ago) | 08:11 |
wgrant | mvo: Very weird. I'll keep digging, but hopefully cjwatson will have some ideas when he arrives. | 08:23 |
wgrant | We're not getting OOPSes, which doesn't make much sense. | 08:24 |
mvo | wgrant: ok, please let me know if I can help in any way. note its not super urgent yet, there is a bit of time before we really need base-18 :) but its puzzling | 08:25 |
wgrant | mvo: I suppose you couldn't be convinced to namespace base-16 and base-18 a bit? | 08:26 |
wgrant | The names are a little unclear today. | 08:26 |
wgrant | When I first saw base-16 in the project list I assumed someone had written a new hexadecimal calculator. | 08:27 |
mvo | wgrant: happy to do that | 08:27 |
mvo | wgrant: haha | 08:27 |
mvo | wgrant: snap-base-18 ? | 08:27 |
wgrant | That'd be much clearer IMO | 08:28 |
mvo | ok | 08:30 |
mvo | I will delete the other names and rename | 08:30 |
wgrant | mvo: I can rename | 08:30 |
mvo | wgrant: great, please do, for both base-16 and base-18 | 08:30 |
wgrant | mvo: Done. Thanks. | 08:31 |
mvo | wgrant: and thank you! | 08:31 |
wgrant | mvo: Still digging in logs for your authorisation issue. It's very unusual that we don't get a soft timeout or something. | 08:31 |
wgrant | Well, very unusual that you don't get a very obvious OOPS ID. Even less usual than we don't seem to get an OOPS even internally. | 08:31 |
* mvo nods | 08:32 | |
ahasenack | hi there, I need some help in fetching an attachment from LP. It has a funny name (incorrectly encoded I bet) and launchpad gives me a 404 | 11:18 |
ahasenack | it's in this comment: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1730311/comments/3 | 11:18 |
ubot5 | Launchpad bug 1730311 in samba (Ubuntu) "package libnss-winbind:i386 2:4.3.11+dfsg-0ubuntu0.16.04.11 failed to install/upgrade: problèmes de dépendances - laissé non configuré" [Undecided,Incomplete] | 11:18 |
cjwatson | certainly looks like an encoding issue, but the exception makes no sense | 11:29 |
cjwatson | NotFound: Object: <BugAttachment at 0x7f8d942abc90>, name: u'=' | 11:29 |
cjwatson | there's no '=' segment in that URL | 11:29 |
cjwatson | I guess something must be decoding the %3F too early | 11:30 |
wgrant | https://bugs.launchpad.net/launchpad/+bug/983766 | 11:30 |
ubot5 | Launchpad bug 983766 in Launchpad itself "Error when uploading screenshot incl. a question mark in url" [Critical,Triaged] | 11:30 |
wgrant | Apache being evil | 11:30 |
wgrant | Basically an unavoidable mod_rewrite misfeature IIRC | 11:31 |
wgrant | But it's been half a decade, maybe it's been fixed :) | 11:31 |
wgrant | You can get the raw librarian URLs from the API if you really need access to that attachment | 11:32 |
Nafallo | wgrant: found /msg yet? ;-) | 11:40 |
wgrant | Nafallo: Oops, apparently my window columns overflowed. | 11:41 |
=== chihchun is now known as chihchun_afk | ||
ahasenack | cjwatson: wgrant: that guy is adding attachments to the bug via email :/ | 13:09 |
ahasenack | https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1730311/comments/5 | 13:09 |
ubot5 | Launchpad bug 1730311 in samba (Ubuntu) "package libnss-winbind:i386 2:4.3.11+dfsg-0ubuntu0.16.04.11 failed to install/upgrade: problèmes de dépendances - laissé non configuré" [Undecided,Incomplete] | 13:09 |
alai | hi, what user should be login to get the subscriptions list? | 21:42 |
alai | it gives this error: lazr.restfulclient.errors.Unauthorized: HTTP Error 401: Unauthorized | 21:42 |
alai | (<Person at 0x7f6b8ed76890 canonical-is (Canonical IS)>, 'name', 'launchpad.LimitedView') | 21:42 |
alai | I login using Launchpad.login_anonymously | 21:43 |
alai | and get a list of bugs using launchpad.bugs.searchTasks() | 21:43 |
wgrant | alai: What is the exact statement that is failing? | 21:44 |
alai | and a for loop to get to each subscriptions | 21:44 |
alai | wgrant, for x in task.bug.subscriptions: | 21:44 |
wgrant | alai: Which bug is it? | 21:45 |
alai | let me print out bug number | 21:45 |
alai | wgrant, 1723480 | 21:47 |
wgrant | alai: Ah, so this is a bit of weirdness in some permissions. You have to options: either catch the exception and ignore the private subscriber, or log in as any user at all and you'll be able to see limited details (mostly just the name). | 21:48 |
wgrant | This is one of two places where permissions differ between anonymous and arbitrary users. | 21:48 |
alai | ah ok | 21:51 |
alai | so to login using name i can just do Launchpad.login('username') ? | 21:51 |
alai | i read somewhere that says Launchpad.login is deprecated | 21:51 |
alai | i can test it out also | 21:51 |
wgrant | alai: Just replace Launchpad.login_anonymously with Launchpad.login_with. It'll open your browser or give you a URL to authorise. | 21:52 |
alai | wgrant, i need to have it in a script and we run a cron job to pull bugs every hour. Is there a better option for login ? | 21:53 |
wgrant | alai: I'd probably just catch the Unauthorized and skip the subscription. https://help.launchpad.net/API/launchpadlib#Authenticated_access_for_website_integration describes how to use a manual credentials file, though. | 21:55 |
alai | cool yeah i think catching an exception is best here | 21:55 |
alai | wgrant, thanks | 21:55 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!