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.

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

See original GitHub issue
  • 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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:11
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
thetaylormcraecommented, Dec 9, 2018

Glad I’m not the only one. GitHub Enterprise with VSCode seems to be a general pain. 😕

3reactions
im-philbrantcommented, Oct 18, 2018

I also have this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read property 'map' of undefined #24 - GitHub
When I try to use this action with pull_request on: pull_request: types: [closed] branches: [master] I receive this error TypeError: Cannot ...
Read more >
"TypeError: Cannot read property 'map' of undefined ... - GitHub
"TypeError: Cannot read property 'map' of undefined at asCompletionResult" occurs when a file is editted before the extension fully activates #2807.
Read more >
TypeError: Cannot read property 'map' of undefined #30382
Got this message. Description I just creact fresh new project.Build it then got this error.I dont even touch a single line of code...
Read more >
TypeError: Cannot read property 'map' of undefined ... - GitHub
TypeError : Cannot read property 'map' of undefined. the api comes from a graphql response. and here my code: /pages/index.tsx.
Read more >
Cannot read property 'map' of undefined · Issue #3304 - GitHub
Describe the bug When adding a component that contains an index.js and index.d.ts it's sometimes error'ing on the index.d.ts with Cannot ...
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