question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Did not get HTTP 200 back from the endpoint

See original GitHub issue

I 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:open
  • Created 4 years ago
  • Reactions:4
  • Comments:6

github_iconTop GitHub Comments

5reactions
onx2commented, May 17, 2019

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.

1reaction
1hsuncommented, Jun 10, 2019

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.

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found