all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Arun Isaac <arunisaac@systemreboot.net>
To: 70613@debbugs.gnu.org
Subject: bug#70613: Report GraphQL error when queried for non-existent bug
Date: Sat, 27 Apr 2024 20:18:23 +0100	[thread overview]
Message-ID: <87zfted37k.fsf@systemreboot.net> (raw)


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---




                 reply	other threads:[~2024-04-27 19:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zfted37k.fsf@systemreboot.net \
    --to=arunisaac@systemreboot.net \
    --cc=70613@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.