all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#70613: Report GraphQL error when queried for non-existent bug
@ 2024-04-27 19:18 Arun Isaac
  0 siblings, 0 replies; only message in thread
From: Arun Isaac @ 2024-04-27 19:18 UTC (permalink / raw)
  To: 70613


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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-27 19:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-27 19:18 bug#70613: Report GraphQL error when queried for non-existent bug Arun Isaac

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.