stokachu | anyone know if these GET methods work? https://api.launchpad.net/1.0.html#countries | 01:11 |
---|---|---|
stokachu | i get 404 errors when attempting to access it | 01:11 |
wgrant | stokachu: The URLs on that page are often inaccurate. In this case it's '+countries', not just 'countries'. What are you using it for? | 04:01 |
stokachu | wgrant: just writing some api bindings and was testing out the countries api | 04:02 |
stokachu | nothing major | 04:02 |
wgrant | Ah :) | 04:03 |
wgrant | You're not using the WADL? | 04:03 |
stokachu | wgrant: nah this is in perl | 04:04 |
wgrant | Oh | 04:04 |
wgrant | Oh dear :) | 04:04 |
stokachu | lol yea so i didn't want to draw to much attention | 04:04 |
stokachu | wgrant: cool that was it, tests work now thx | 04:06 |
wgrant | Great. | 04:06 |
wgrant | The correct URL is in the top-level collection definitions in the WADL. I'm not sure wy the docs are wrong, but the URLs for most objects are complicated and so slightly wrong in the docs anyway. | 04:07 |
stokachu | wgrant: where can i find those wadl information? | 04:07 |
stokachu | wgrant: https://metacpan.org/release/ADAMJS/Net-Launchpad-Client-1.2.1 if you're ever curious | 04:10 |
stokachu | it shouldnt make your eyes bleed too bad | 04:11 |
wgrant | stokachu: A GET to the API root with an Accept header of "application/vd.sun.wadl+xml". This is documented on https://help.launchpad.net/API/Hacking, fwiw. | 04:11 |
wgrant | Also, a GET to the application root itself will give you the root collects as JSON. | 04:12 |
wgrant | eg. https://api.launchpad.net/1.0//?ws.accept=application/json | 04:12 |
stokachu | ah ok nice | 04:12 |
wgrant | (ws.accept overrides the Accepts header, for easy poking in a browser) | 04:12 |
wgrant | The HTML docs are generated from the machine-readable WADL. You don't need to parse the WADL unless you want something like launchpadlib, where objects know about their methods, and check arguments automatically, etc. | 04:14 |
stokachu | ok cool thanks man | 04:14 |
stokachu | ah nice this root collections will help | 04:17 |
stokachu | dont have to worry about hardcoding those toplevel urls | 04:18 |
wgrant | Yep | 04:18 |
wgrant | There's no way to discover the methods or their parameters from the JSON, but if you know what you want then that's fine. | 04:19 |
stokachu | yea i think with this, the existing documentation, and just inspecting the return content should be good enough | 04:20 |
teward | is the process to request arm builds on a PPA documented anywhere | 12:44 |
wgrant | https://dev.launchpad.net/CommunityARMBuilds | 12:45 |
teward | wgrant: thanks | 12:45 |
ricotz | hi, is there something wrong with the ppa-builders, they are all in "Cleaning" mode but one, it seems some of those are doing that for quite some time, is this intended in this amount, thanks | 12:49 |
teward | wgrant: who do i poke if it looks like the ppa builders are all broken or stuck on something? | 12:59 |
wgrant | teward: Me. And indeed, something is up, let me see. | 13:01 |
wgrant | We're all in the US atm, so just waking up. | 13:01 |
teward | wgrant: i hear ya, I"m eastern US too... | 13:02 |
teward | the girlfriend kicking me in her sleep woke me up though :P | 13:02 |
teward | that's the unexpected-shock way of waking up xD | 13:02 |
wgrant | teward: It's coming back now. | 13:08 |
wgrant | Thanks for letting us know. | 13:08 |
teward | wgrant: you're welcome, actually, give ricotz the credit :) | 13:08 |
teward | i just did a targeted ping :) | 13:08 |
ricotz | wgrant, thanks! | 13:10 |
wgrant | ricotz: Thank you. | 13:10 |
wgrant | There was a glitch a couple of hours ago which knocked most of them out. | 13:11 |
ricotz | wgrant, i see, although looking at https://launchpad.net/builders/lcy01-01/+history indicates a long lasting problem | 13:11 |
wgrant | ricotz: lcy01 is extra special. | 13:12 |
wgrant | And sorta broken atm. | 13:12 |
ricotz | since it claims it handled the last build nearly a month ago | 13:12 |
wgrant | lgw01 is one datacentre, lcy01 is the other. | 13:12 |
wgrant | lcy01's cloud isn't quite stable yet. | 13:12 |
ricotz | ah alright | 13:12 |
wgrant | lgw01 provides more than enough capacity, fortunately. | 13:13 |
wgrant | When it's not all confused like it was just now. | 13:13 |
ricotz | i see, looking good now | 13:15 |
teward | wgrant: thanks for poking it :) | 13:16 |
cjwatson | wgrant: What did you do to fix up lgw01 (for my information)? | 13:40 |
wgrant | cjwatson: one of them was still alive, so I just manage-builders --virtual --disable, manage-builders --virtual --enable | 13:41 |
wgrant | I really need to add options to filter by status and VM host. | 13:41 |
wgrant | And perhaps to dirty in one hit. | 13:42 |
=== mhagedorn is now known as mwhagedorn | ||
ricotz | wgrant, are there still issues with e.g. publishing ppa-packages? | 15:34 |
ricotz | finished 53mins ago -- https://launchpad.net/~ricotz/+archive/ubuntu/testing/+sourcepub/4489809/+listing-archive-extra | 15:35 |
cjwatson | ricotz: yes, I'm tracking that down | 15:40 |
wgrant | Hm | 15:40 |
wgrant | cron.ppa must be hung. | 15:40 |
cjwatson | wgrant: (#webops) | 15:40 |
ricotz | cjwatson, thanks | 15:40 |
wgrant | Ah yeah | 15:40 |
wgrant | Stil cathing up; only just got back to IRC. | 15:40 |
wgrant | Thanks. | 15:40 |
ricotz | wgrant, all idle builders are "Cleaning" again ;) | 16:49 |
teward | wgrant: ppa builders all at 'cleaning' again, is something major going on? | 17:03 |
wgrant | teward, ricotz: yes, we're still working on the issue. | 17:10 |
teward | wgrant: ack. | 17:11 |
=== JanC is now known as Guest53977 | ||
=== JanC_ is now known as JanC | ||
rocketnine | hi | 21:34 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!