"Access Denied: Failed to check GitHub access" "Git enterprise instance not found for hostname: ..."

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When I attempt to refresh the available Github access, I get an error in the Cursor IDE. I have Github access configured, the issue is somehow with Cursor’s ability to retrieve the access settings.

Error message in the UI: Access Denied: Failed to check GitHub access
In the dev console, error message:

{
  "error": "ERROR_BAD_REQUEST",
  "details": {
    "title": "Bad Request",
    "detail": "Git enterprise instance not found for hostname: ... Please set up the enterprise instance in Settings.",
    "isRetryable": false
  },
  "isExpected": true
}

OS:

$ lsb_release -a
Distributor ID: Ubuntu
Description:    Ubuntu 25.10
Release:        25.10
Codename:       questing

Steps to Reproduce

  1. Configure a Github app to connect Cursor to Github
  2. Load Cursor Settings to see the Github connect
  3. Open the dev console
  4. Click the refresh button

Expected Behavior

I expect that the status of these Github connections would be updated.

Instead, the status update fails and I can see an error in the Cursor console.

Screenshots / Screen Recordings

Operating System

Linux

Version Information

Version: 2.4.22
VSCode Version: 1.105.1
Commit: 618c607a249dd7fd2ffc662c6531143833bebd40
Date: 2026-01-26T22:51:47.692Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Linux x64 6.17.0-8-generic

For AI issues: add Request ID with privacy disabled

Request ID: b632cb00-597f-4083-ab89-1dccffc7596c

Additional Information

I have my Github repos connected correctly to my Cursor account via the Github App. I will post a screenshot in the first comment (I can only upload one screenshot in the OP).

This is stopping me from running background agents locally. I want to run background agents from my local IDE but I cannot gain access to them.

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

I have access to the github repos in Cursor, it’s just the IDE can’t query them.


My parent organization is an enterprise org in Github (I think?), but we don’t have a special github URL or anything like that; we’re running in the default github “cloud” (github.com).

Hey, thanks for the report. I can see that Cloud Agents on cursor.com can see your repos (memfault, nRFCloud), but the IDE shows an error saying “enterprise instance not found”.

It looks like the system is incorrectly trying to find enterprise instance settings when you’re on regular github.com. Is your org on GitHub Enterprise Cloud by any chance?

A couple things:

  1. Can you click the arrow next to errorDetailsDebug in the console to expand the object fully? I need to see what hostname is listed there (right now it’s cut off to “…”). Or right click and choose Copy object.

  2. Try re-authing. Cursor Settings → General → Log Out, then log in again and see if that helps.

I’ll pass your request ID to the team.

Is your org on GitHub Enterprise Cloud by any chance?

I am a member of an enterprise that is hosted on Github Cloud (Sign in to GitHub · GitHub). The orgs that I’m trying to access (Memfault · GitHub) are “under” that enterprise account, but I’m not sure if that makes it an enterprise org. The org certainly didn’t start as an enterprise org but I’m not sure how this works post-acquisition by a larger company. Sorry I can’t be more helpful here.

Can you expand errorDetailsDebug?

That’s the whole value. There is nothing cut off.

{"error":"ERROR_BAD_REQUEST","details":{"title":"Bad Request","detail":"Git enterprise instance not found for hostname: ... Please set up the enterprise instance in Settings.","isRetryable":false},"isExpected":true}

I have tried re-authing unsuccessfully.

I had a coworker (on the same Team plan) confirm they’re having the same issue.

I had the same issue. Fixed it by updating the remote to use github instead of my custom alias i had setup in my ~/.ssh/config file.

Before:
$ git remote -v
origin karnik_github:karnik/my-repo.git (fetch)

Now:
$ git remote -v
origin [email protected]:karnik/my-repo.git (fetch)

Seems like Cursor checks your remote and if it isn’t [email protected] it assumes you’re on enterprise instance or something