Did not get HTTP 200 back from the endpoint
See original GitHub issueI already installed graphql-docs (globally) and now when I run below command
graphql-docs-gen MY-GRAPHQL-ENDPOINT doc.html
It returns with Did not get
HTTP 200 back from the endpoint error message.
Any idea how to fix it?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:6
Top Results From Across the Web
Returning http 200 OK with error within response body
No, it's very incorrect to send 200 with a error body. HTTP is an application protocol. 200 implies that the response contains a...
Read more >200 OK - HTTP - MDN Web Docs
The HTTP 200 OK success status response code indicates that the request has succeeded. A 200 response is cacheable by default.
Read more >Empty list, HTTP status code 200 vs 204 vs 404 - API Handyman
While 200 OK being a valid and the most common answer, returning a 204 No Content could make sense as there is absolutely...
Read more >API calls and HTTP Status codes - ITNEXT
What status code should the server return? · 200 The request is successful as the endpoint does exist and makes some internal validation,...
Read more >HTTP Status 200 (OK) - REST
The HTTP Status 200 (OK) status code indicates that the request has been processed successfully on the server. The response payload depends ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I ran the following and received the same error.
$ graphql-docs-gen https://fakerql.com/graphql documentation.html
@aminconnectngo @rodriguise Give this tool a try: https://www.npmjs.com/package/@graphidocs/docs
$ graphidocs -e https://fakerql.com/graphql -o ./doc/schema
I was able to produce the docs from that fake graphql api using it.
After parsing the errors, file ‘/lib/introspectionQuery.txt’ is having field named ‘onOperation’, ‘onFragment’ and ‘onField’, which might not contained in your query/schema field. In my case, It will works when you eliminated them.