Skip to content

GitHub Enterprise: TypeError: Cannot read property 'map' of undefined #574

Description

@Justin-Credible
  • Extension version: 0.2.0
  • VSCode Version: 1.28.1 (3368db6750222d319c851f6d90eb619d886e08f5)
  • OS: macOS 10.12.6

Steps to Reproduce:

  1. Add github.hosts entry to workspace config
  2. Open Source Control panel in VSCode
  3. Expand GitHub Pull Requests pane
  4. Expand any items in tree

Result: Fetching all pull requests failed: TypeError: Cannot read property 'map' of undefined

Output from extension shows:

Looking for git repository
Git repository found, initializing review manager and pr tree view.
No GitHub remotes found
Found GitHub remote
Review> no matching pull request metadata found for current branch feature/xxxxxxxxxxxxxxxx
GitHubRepository> Fetching all pull requests failed: TypeError: Cannot read property 'map' of undefined
GitHubRepository> Fetching all pull requests failed: TypeError: Cannot read property 'map' of undefined

Workspace settings:

    "github.hosts": [
        {
            "host": "https://git.company-name.com",
            "username": "justin-unterreiner",
            "token": "xxxxxxxxxxxxxxxxxxxx"
        }
    ]

Additional information:

  • Our GitHub instance does not use a self-signed certificate, it is a valid certificate signed by GoDaddy.
  • I am able to use the GitLense VSCode extension with our enterprise GitHub instance by setting gitlens.remotes in the workspace settings

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions