GNU bug report logs - #70613
Report GraphQL error when queried for non-existent bug

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: mumi; Reported by: Arun Isaac <arunisaac@HIDDEN>; dated Sat, 27 Apr 2024 19:20:02 UTC; Maintainer for mumi is bug-mumi@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 27 Apr 2024 19:19:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 27 15:19:10 2024
Received: from localhost ([127.0.0.1]:49706 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s0nZm-0005AE-D5
	for submit <at> debbugs.gnu.org; Sat, 27 Apr 2024 15:19:10 -0400
Received: from lists.gnu.org ([2001:470:142::17]:51286)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <arunisaac@HIDDEN>) id 1s0nZk-0005A6-Oi
 for submit <at> debbugs.gnu.org; Sat, 27 Apr 2024 15:19:09 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <arunisaac@HIDDEN>)
 id 1s0nZL-0004j1-8E
 for bug-mumi@HIDDEN; Sat, 27 Apr 2024 15:18:43 -0400
Received: from mugam.systemreboot.net ([139.59.75.54])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <arunisaac@HIDDEN>)
 id 1s0nZI-0006Vu-6r
 for bug-mumi@HIDDEN; Sat, 27 Apr 2024 15:18:43 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=systemreboot.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date:
 Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=mWN1/F/XQu5msWgjrK0nxPEt0TUIuu7wMSP/b46Tdn4=; b=mXSDQxJzb/rfTm/lWLJkknVfaM
 7TxzZckDnLoSPilDQI6G+ydzlFR46xgzOCEOHFw7UEmmPSWbtehM8GdCelktb30E+vc470I2F9m4E
 JFQ6EzSXk1Y9lUDidoWIbMbVeZnsl+OocmSbWeZ4P+09VXXt59WBPPatxrVvr1BPFevIGERAq+ugF
 HnVKV+PePuKNfg7V8ITq0IWVUCHBdDOyTk3WOR13r71opB/gZlP/Mzjsi0KiFzNNqtzHTxl7XJ9n2
 stEo9E0AUt0auytx21sr2Btyk5KAoa1vSg8BcnpAyRxRKjVYtOa9W9ATywq9m4e3x8WBZKAvTGtQ9
 CARN9IbA==;
Received: from [192.168.2.1] (port=53764 helo=localhost)
 by systemreboot.net with esmtpsa (TLS1.3) tls
 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.1)
 (envelope-from <arunisaac@HIDDEN>) id 1s0nWJ-0002Em-2o
 for bug-mumi@HIDDEN; Sat, 27 Apr 2024 20:15:36 +0100
From: Arun Isaac <arunisaac@HIDDEN>
To: bug-mumi@HIDDEN
Subject: Report GraphQL error when queried for non-existent bug
Date: Sat, 27 Apr 2024 20:18:23 +0100
Message-ID: <87zfted37k.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=139.59.75.54;
 envelope-from=arunisaac@HIDDEN; helo=mugam.systemreboot.net
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)


When the mumi GraphQL endpoint is requested for a non-existent bug, it
should provide a clear error message in the response. At the moment, it
merely fails with an "Internal Server Error", and the user is left
groping in the darkness.

Here's a minimal failing example:

--8<---------------cut here---------------start------------->8---
(use-modules (kolam http)
             (ice-9 pretty-print))

(define %graphql-endpoint
  "https://issues.guix.gnu.org/graphql")

(pretty-print
 (graphql-http-get %graphql-endpoint
                   '(document
                     (query (#(issue #:number 2)
                             number
                             title
                             date
                             open)))))
--8<---------------cut here---------------end--------------->8---




Acknowledgement sent to Arun Isaac <arunisaac@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-mumi@HIDDEN. Full text available.
Report forwarded to bug-mumi@HIDDEN:
bug#70613; Package mumi. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 27 Apr 2024 19:30:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.