Error 400 (Bad request) when using "ppa wait"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ppa-dev-tools |
Triaged
|
Undecided
|
Unassigned |
Bug Description
Hi Bryce,
I was using "ppa wait" today in order to gate a mass-upload to a PPA and it crashed on me:
$ ppa wait ppa:ci-
* Still waiting on 4 build publications:
- slapi-dev 2.6.3+dfsg-
- slapi-dev 2.6.3+dfsg-
- slapi-dev 2.6.3+dfsg-
- slapi-dev 2.6.3+dfsg-
* Still waiting on 4 build publications:
- slapi-dev 2.6.3+dfsg-
- slapi-dev 2.6.3+dfsg-
- slapi-dev 2.6.3+dfsg-
- slapi-dev 2.6.3+dfsg-
Traceback (most recent call last):
File "/usr/bin/ppa", line 740, in <module>
retval = main(args)
File "/usr/bin/ppa", line 729, in main
return func(lp, config)
File "/usr/bin/ppa", line 567, in command_wait
waiting = ppa.has_
File "/usr/lib/
for binary_publication in self.get_
File "/usr/lib/
return self.archive.
File "/usr/lib/
response, content = self.root.
File "/usr/lib/
raise error
lazr.restfulcli
Response headers:
---
-content-encoding: gzip
cache-control: no-cache
connection: close
content-length: 90
content-type: text/html
date: Fri, 18 Nov 2022 22:23:39 GMT
server: Apache/2.4.18 (Ubuntu)
status: 400
vary: Accept-Encoding
---
Response body:
---
b'<html>
---
I haven't tried reproducing it yet (busy with other stuff), but I can try gathering more info if needed.
Thanks!
summary: |
- Crash when using "ppa wait" + Error 400 (Bad request) when using "ppa wait" |
Thanks Sergio,
Since the call to getPublishedBin aries() carried no input parameters, initial guess would be some sort of temporary load/resource issue on the Launchpad service side. If that's true, it's unlikely you'll reproduce this (except when LP is in the same bad state), and I just need to trap the exception.
If you do happen to reproduce it, one thing to look at would be the state of your builds in the PPA. Sometimes there are unexpected status text values or whatnot. I'll dig through the code at some point and try to see if I missed something.
Thanks for reporting the bug!