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.

GraphQL API endpoint is incorrect for Github Enterprise

See original GitHub issue

My company’s deployment of GHE does not have an “api.hostname/graphql” API endpoint - rather, it does not have the “api.domain” subdomain.

According to the documentation here the correct endpoint for the GraphQL API endpoint in Github Enterprise is https://hostname/api/graphql

I’ve patched dinghy locally to test using this endpoint and it works perfectly against GHE.

Note 1: if you select “Free, Pro & Team” from the dropdown selector at the top of the documentation page above, you’ll see that indeed for githu.com the endpoint is https://api.github.com/graphql as referenced in Dinghy, but for any hosted GHE instance, the documented endpoint is http(s)://[hostname]/api/graphql

Note 2: some GHE instances might ship with the “api.hostname” subdomain registered. My company’s own GHE server does not though, as it’s deployment follow the docs more strictly.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nedbatcommented, Jul 29, 2022

OK, I’ve released this as part of dinghy 0.13.0.

0reactions
hecklercommented, Jul 28, 2022

Just tested api_root using the latest digest.py from master and it worked just fine, LGTM 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Graphql endpoint errors out for v3 github API · Issue #66
The endpoint is incorrect; per docs, it should be http(s)://[hostname]/api/graphql . What is the value of github.host in your repository?
Read more >
Incorrect GraphQL URL for github enterprise #1381
This is caused by invalid graphQL URL for the enterprise version. The reason is that this function will fallback to /api/v3 for URL...
Read more >
GitHub Enterprise support. · Issue #23 · shurcooL/githubv4
GitHub Enterprise has support for GitHub GraphQL API as of 2.10: ... The root GraphQL endpoint for GitHub Enterprise is custom: ...
Read more >
Incorrect Github Enterprise endpoint: https://github.company.com/api ...
Not getting release notes anymore for projects hosted in our Github Enterprise Server. I was on vacation for more than a month, and...
Read more >
Show a message saying invalid graphql endpoint if it ... - GitHub
Expectation: Invalid GraphQL endpoint. The text was updated successfully, but these errors were encountered: ...
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