Unpredictable upload failures
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
launchpadlib |
New
|
Undecided
|
Unassigned |
Bug Description
I have a script that automates the process of uploading files for a new release in a project I maintain. It has worked fine in the past, for numerous releases, but it has now become unpredictable and often fails with this error:
Traceback (most recent call last):
File "./shipit.py", line 409, in lp_upload_file
file_
File "/usr/local/
extra_
File "/usr/local/
raise error
BadRequest: HTTP Error 400: Bad Request
Response headers:
---
connection: close
content-length: 61
content-type: text/plain;
date: Mon, 30 Apr 2018 09:36:00 GMT
server: zope.server.http (HTTP)
status: 400
strict-
vary: Accept
x-content-
x-frame-options: SAMEORIGIN
x-launchpad-
x-lazr-
x-powered-by: Zope (www.zope.org), Python (www.python.org)
x-xss-protection: 1; mode=block
---
Response body:
---
signature_content: Cannot upload files larger than 1024 bytes
---
The files I try to upload are all larger than 1K and smaller than 4MB, and I can manually upload them to the release without problem. The signature content is only 522 bytes. I've tried this both on staging.
This is the call in my script that fails:
My launchpadlib version is 1.10.6, installed with pip.