X-Loop: help-debbugs@HIDDEN
Subject: bug#70613: Report GraphQL error when queried for non-existent bug
Resent-From: Arun Isaac <arunisaac@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-mumi@HIDDEN
Resent-Date: Sat, 27 Apr 2024 19:20:02 +0000
Resent-Message-ID: <handler.70613.B.171424555019858 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 70613
X-GNU-PR-Package: mumi
X-GNU-PR-Keywords:
To: 70613 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-mumi@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.171424555019858
(code B ref -1); Sat, 27 Apr 2024 19:20:02 +0000
Received: (at submit) by debbugs.gnu.org; 27 Apr 2024 19:19:10 +0000
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>
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-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---
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Arun Isaac <arunisaac@HIDDEN> Subject: bug#70613: Acknowledgement (Report GraphQL error when queried for non-existent bug) Message-ID: <handler.70613.B.171424555019858.ack <at> debbugs.gnu.org> References: <87zfted37k.fsf@HIDDEN> X-Gnu-PR-Message: ack 70613 X-Gnu-PR-Package: mumi Reply-To: 70613 <at> debbugs.gnu.org Date: Sat, 27 Apr 2024 19:20:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-mumi@HIDDEN If you wish to submit further information on this problem, please send it to 70613 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 70613: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D70613 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.