From unknown Tue Jun 17 20:18:03 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#70613 <70613@debbugs.gnu.org> To: bug#70613 <70613@debbugs.gnu.org> Subject: Status: Report GraphQL error when queried for non-existent bug Reply-To: bug#70613 <70613@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:18:03 +0000 retitle 70613 Report GraphQL error when queried for non-existent bug reassign 70613 mumi submitter 70613 Arun Isaac severity 70613 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 27 15:19:10 2024 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 ) id 1s0nZm-0005AE-D5 for submit@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 ) id 1s0nZk-0005A6-Oi for submit@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 ) id 1s0nZL-0004j1-8E for bug-mumi@gnu.org; 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 ) id 1s0nZI-0006Vu-6r for bug-mumi@gnu.org; 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 ) id 1s0nWJ-0002Em-2o for bug-mumi@gnu.org; Sat, 27 Apr 2024 20:15:36 +0100 From: Arun Isaac To: bug-mumi@gnu.org Subject: Report GraphQL error when queried for non-existent bug Date: Sat, 27 Apr 2024 20:18:23 +0100 Message-ID: <87zfted37k.fsf@systemreboot.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=139.59.75.54; envelope-from=arunisaac@systemreboot.net; 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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---