Received: from mail-qk1-f196.google.com (mail-qk1-f196.google.com [209.85.222.196]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id C8C27781E34 for <~alpine/infra@lists.alpinelinux.org>; Wed, 11 Mar 2020 03:09:55 +0000 (UTC) Received: by mail-qk1-f196.google.com with SMTP id p62so791075qkb.0 for <~alpine/infra@lists.alpinelinux.org>; Tue, 10 Mar 2020 20:09:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version :content-transfer-encoding; bh=6ZictOGtqyOnhGUbn4/A/nd44dbTtNZya1hYLxHMyEQ=; b=j0qRebysyxdscybg7SPB4aHz4Q0qt1JzfbZzEtW05H442/j9wy3bLxAdOgqgnh9eF1 rxyr/RG6Czv2LNDFVolz+KT7TJPGMbj5wHT8UcyL1o/Zj6qUJoQweIYlroWXtaKSV5nH 2S+ow1VA7+nNfzKvHZd0lJkbvJudxzF0Jcuu71uvcctgjLiB9pHSinmNdUl6BfQekHYj +oedo5UeQq9YgmyAnOBeAU6+xBCizQOYv4n0mDafBMPORveRxJOK+I223QyFvpuCFY4y oi9gXG2/OjSOV7DL51tcFMDyX6/AJPIVmQM55IO/EhakLElNuKgRmQYwtkFchdEHzRR2 cZQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-transfer-encoding; bh=6ZictOGtqyOnhGUbn4/A/nd44dbTtNZya1hYLxHMyEQ=; b=WmfesOVZMuaZNnGaT3NToRnxP5wZGeP1LfUCeHK8akrHhhULwXpiD+jkkzxuM/0Pav zwnfqLZX4pVCPNz/Mcg5AIuQfctwRYCMNqMtuac5osgiTFfpEAlar5zmgWn6Ui4r84Ty +NVbCT5QEVcbwDSHfKJJRUzBibXXq77i+2W+uRKcoVw4dxE0i1PkESjLakUBo0Mr0vDR OxTxO4iGkakcI6OwPpvetHttKnTgH0ITNF85l4yBm5nivae4N+koOfP06Bzoh4iGwm0w gWzgg9+b9fNvZtxPOWJlq5jVKSiXTcWRCHtufecXurTqZMWt59FVnKlzr/5O5mU/aeJR YXgg== X-Gm-Message-State: ANhLgQ0NwEx4GMubJ9xowtvHLNRj/6noRChwvLa5IPidLf4dsrVZHv8g /8qZneIHZ8U51VUKtrw/QZ1sTk0L X-Google-Smtp-Source: ADFU+vtnKiUu/pLWzDA0akBQybIyAOWCAdX8JP40JHiqxkachcV15ovp62jtqq+WNX6L8OVVh/edcA== X-Received: by 2002:a37:4e94:: with SMTP id c142mr783139qkb.13.1583896194147; Tue, 10 Mar 2020 20:09:54 -0700 (PDT) Received: from enterprise ([2804:431:cfcd:54ad:f804:78e:28fc:66bb]) by smtp.gmail.com with ESMTPSA id x74sm6138943qkb.40.2020.03.10.20.09.51 for <~alpine/infra@lists.alpinelinux.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Mar 2020 20:09:53 -0700 (PDT) Date: Wed, 11 Mar 2020 00:09:29 -0300 From: Leo To: ~alpine/infra@lists.alpinelinux.org Subject: Can't use Source Hut API to update patchset Message-ID: <20200311000929.5079b240@enterprise> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-alpine-linux-musl) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit I'm trying to use the SourceHut API for Mailing lists[1] to change the status of a patchset from "proposed" to "applied". I'm doing the following call with curl: $ echo '{"status":"approved"}' | curl -X PUT \ -H Authorization:"token " \ -H Content-Type:application/json \ -d @- \ https://lists.alpinelinux.org/api/user/~alpine/lists/aports/patchsets/3300 And i get the following response: 401 Unauthorized

Unauthorized

The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required.

* Connection #0 to host lists.alpinelinux.org left intact I can confirm the personal token can be used to perform a GET on the same API: $ curl \ -H Authorization:"token " \ https://lists.alpinelinux.org/api/user/~alpine/lists/aports/patchsets/3300 the response is a json blob: {"id": 3300, "created": "2020-03-10T21:01:01+00:00", "updated": "2020-03-10T21:01:01+00:00", "subject": "Add hotfix for running `hg archive` with gzip files on python 3.8.2+", "prefix": null, "version": 1, "status": "proposed"} [1] https://man.sr.ht/lists.sr.ht/api.md