Access Denied: Failed to check GitHub access

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I’m trying to setup cloud agents but cannot get passed the first step “Connect Github” in setup UI even though Github is integrated correctly and working (Even Bugbot is working).

Access Denied: Failed to check GitHub access (Request ID: XXX-XXX-XXX-XXX-XXX)

Steps to Reproduce

  • Open command pallete
  • Enter >Cursor: Start Cloud Agent Setup
  • Access Denied: Failed to check GitHub access (Request ID: XXX-XXX-XXX-XXX-XXX)

Expected Behavior

Pass the first step in the cloud agent setup

Operating System

MacOS

Version Information

Version: 2.4.28
VSCode Version: 1.105.1
Commit: f3f5cec40024283013878b50c4f9be4002e0b580
Date: 2026-02-03T00:56:18.293Z
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: Darwin arm64 24.5.0

Additional Information

I did notice this error in the DevTool Git enterprise instance not found for hostname: github-XXX. Please set up the enterprise instance in ... but I didn’t see any mention about having to have Github enterprise for cloud agents..

My state:

  • We are on team plan
  • We are not paying for Github
  • I have 2 Github accounts logged in in my browser (I need to choose one when I perform the integration between Cursor and Github)
  • Github integration with Cursor has access to the correct repo

I have tried the following:

  • Logged out from Cursor IDE and signed in again - didn’t work
  • Logged out from both the IDE and web, then signed in again - didn’t work.
  • Uninstalled Cursor Github app, and installed again - didn’t work.

This is the error I see in Cursor DevTools:

[transport] Connect error in unary AI connect ConnectError: [invalid_argument] Error
    at t (workbench.desktop.main.js:11433:34181)
    at async Object.getGithubAccessTokenForRepos (workbench.desktop.main.js:637:32043)
    at async I (workbench.desktop.main.js:34076:14050)
    at async Object.x (workbench.desktop.main.js:34076:13910) {
    "arch": "arm64",
    "platform": "darwin",
    "channel": "stable",
    "client_version": "2.4.28",
    "error": {
        "message": "Error",
        "stack": "ConnectError: [invalid_argument] Error\n    at t (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:11433:34181)\n    at async Object.getGithubAccessTokenForRepos (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:637:32043)\n    at async I (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:34076:14050)\n    at async Object.x (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:34076:13910)",
        "kind": "ConnectError",
        "code": 3
    },
    "errorDetailsDebug": "{\"error\":\"ERROR_BAD_REQUEST\",\"details\":{\"title\":\"Bad Request\",\"detail\":\"Git enterprise instance not found for hostname: github-XXX. Please set up the enterprise instance in Settings.\",\"isRetryable\":false},\"isExpected\":true}",
    "service": "aiserver.v1.BackgroundComposerService",
    "method": "GetGithubAccessTokenForRepos",
    "requestId": "XXX-XXX-XXX-XXX-XXX",
    "code": 3,
    "errorName": "ConnectError",
    "errorDetails": [
        {
            "type": "aiserver.v1.ErrorDetails",
            "value": {
                "0": 8,
                "1": 36,
                "2": 18,
                "3": 129,
                "4": 1,
                "5": 10,
                "6": 11,
                "7": 66,
                "8": 97,
                "9": 100,
                "10": 32,
                "11": 82,
                "12": 101,
                "13": 113,
                "14": 117,
                "15": 101,
                "16": 115,
                "17": 116,
                "18": 18,
                "19": 112,
                "20": 71,
                "21": 105,
                "22": 116,
                "23": 32,
                "24": 101,
                "25": 110,
                "26": 116,
                "27": 101,
                "28": 114,
                "29": 112,
                "30": 114,
                "31": 105,
                "32": 115,
                "33": 101,
                "34": 32,
                "35": 105,
                "36": 110,
                "37": 115,
                "38": 116,
                "39": 97,
                "40": 110,
                "41": 99,
                "42": 101,
                "43": 32,
                "44": 110,
                "45": 111,
                "46": 116,
                "47": 32,
                "48": 102,
                "49": 111,
                "50": 117,
                "51": 110,
                "52": 100,
                "53": 32,
                "54": 102,
                "55": 111,
                "56": 114,
                "57": 32,
                "58": 104,
                "59": 111,
                "60": 115,
                "61": 116,
                "62": 110,
                "63": 97,
                "64": 109,
                "65": 101,
                "66": 58,
                "67": 32,
                "68": 103,
                "69": 105,
                "70": 116,
                "71": 104,
                "72": 117,
                "73": 98,
                "74": 45,
                "75": 109,
                "76": 105,
                "77": 108,
                "78": 101,
                "79": 121,
                "80": 46,
                "81": 32,
                "82": 80,
                "83": 108,
                "84": 101,
                "85": 97,
                "86": 115,
                "87": 101,
                "88": 32,
                "89": 115,
                "90": 101,
                "91": 116,
                "92": 32,
                "93": 117,
                "94": 112,
                "95": 32,
                "96": 116,
                "97": 104,
                "98": 101,
                "99": 32,
                "100": 101,
                "101": 110,
                "102": 116,
                "103": 101,
                "104": 114,
                "105": 112,
                "106": 114,
                "107": 105,
                "108": 115,
                "109": 101,
                "110": 32,
                "111": 105,
                "112": 110,
                "113": 115,
                "114": 116,
                "115": 97,
                "116": 110,
                "117": 99,
                "118": 101,
                "119": 32,
                "120": 105,
                "121": 110,
                "122": 32,
                "123": 83,
                "124": 101,
                "125": 116,
                "126": 116,
                "127": 105,
                "128": 110,
                "129": 103,
                "130": 115,
                "131": 46,
                "132": 32,
                "133": 0,
                "134": 24,
                "135": 1
            },
            "debug": {
                "error": "ERROR_BAD_REQUEST",
                "details": {
                    "title": "Bad Request",
                    "detail": "Git enterprise instance not found for hostname: github-miley. Please set up the enterprise instance in Settings.",
                    "isRetryable": false
                },
                "isExpected": true
            }
        }
    ],
    "timeoutMs": "undefined"
}

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey there!

This Request ID isn’t sensitive. Can you share it here?

Are you using GitHub.com? Or self-hosting (if there’s a free self-hosted option of GitHub, that’s news to me).

Here is the request ID:

b9e56981-e7ef-4b8c-a388-b709dd93f7ca

We are using github.com not self hosted

Thanks!

What have you redacted here then? Does it not say GitHub.com?

That’s our organization slug in github

Colin, let me help you. In DevTools it’s clearly showing this error:

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

Is cloud agent supported on Github Enterprise only? if not, why am I getting this?

Ok I found the issue. It was because of my local ssh config. Because I’m working on multiple github account through my machine I’ve configured aliases in my ssh config (~/.ssh/config). And this repo was using an alias in the git remote instead of github.com, it caused Cursor to think I am using github enterprise - this is where the github-xxx came from

1 Like