Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dput-ng
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • DebianDebian
  • dput-ng
  • Merge requests
  • !1

http.py: print error messages

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Alexandre Viau requested to merge print-http-error-messages into master Jun 01, 2018
  • Overview 6
  • Commits 1
  • Pipelines 0
  • Changes 1

Closes #900546

I am building a service that accepts http uploads via dput.

My service does a number of checks when it receives uploads and it can return 4XX errors with messages.

I would love it if these messages made it to the user!

Example output:

130|aviau@cranberry:~/git/debian-pkg/build-area$ dput autodeb golang-github-xlab-treeprint_0.0~git20180324.505f0ee-1_amd64.changes
Uploading golang-github-xlab-treeprint using http to autodeb (host: localhost:8071; directory: /upload)
running allowed-distribution: check whether a local profile permits uploads to the target distribution
running checksum: verify checksums before uploading
running suite-mismatch: check the target distribution for common errors
running gpg: check GnuPG signatures before the upload
Not checking GPG signature due to allow_unsigned_uploads being set.
Uploading golang-github-xlab-treeprint_0.0~git20180324.505f0ee-1.dsc
Uploading golang-github-xlab-treeprint_0.0~git20180324.505f0ee.orig.tar.xz
Uploading golang-github-xlab-treeprint_0.0~git20180324.505f0ee-1.debian.tar.xz
Uploading golang-github-xlab-treeprint-dev_0.0~git20180324.505f0ee-1_all.deb
HTTP error message: {"message":"only source uploads are accepted"}
HTTP Error 400: Bad Request
Edited Jun 01, 2018 by Alexandre Viau
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: print-http-error-messages