Make valid GraphQL error reply when Keystone backend is initializing #5923
MurzNN
started this conversation in
Feature requests
Replies: 1 comment
-
|
Thank you for the suggestion @MurzNN. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When the Keystone backend is offline (server is stopped), Admin UI shows the error:
That is ok, but when Keystone is initializing (that can spend long time), Admin UI shows the error:
because on
/api/graphqlit receives the HTML with "Keystone is loading..." instead of JSON-formatted reply.Maybe on initializing stage we can replace the HTML reply on GraphQL endpoint to some valid GraphQL reply with the same error text "Keystone is loading..."?
Beta Was this translation helpful? Give feedback.
All reactions