Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'forEach' of undefined #127

Open
Jlcasado opened this issue Jun 8, 2020 · 5 comments
Open

TypeError: Cannot read property 'forEach' of undefined #127

Jlcasado opened this issue Jun 8, 2020 · 5 comments

Comments

@Jlcasado
Copy link

Jlcasado commented Jun 8, 2020

After sucessfully logging into gitlab CE, I returned to the project in GA and I got the error:
TypeError: Cannot read property 'forEach' of undefined

Where can I find more details to troubleshoot the error?

I made the changes suggested in #117 to use our own gitlab CE instance.

@dimitri-vs
Copy link

What kind of error are you getting in the console log?

Try logging in and logging out, fixed it for me.

@andrewroberts
Copy link

Although my token was set to never expire, creating a new one fixed this for me.

@jmcmurry
Copy link

jmcmurry commented Sep 13, 2022

[github assistant] TypeError: Cannot read properties of undefined (reading 'forEach')

I tried logging out and into Google to no avail. The error is also very persistent: once it's there better to give up trying.

Interestingly, this message will persist even if the code is changed (eg. in my case forEach syntax to the
for (i = 0... style syntax.) I don't think it has anything to do with the code.

What fixed it for me was to uninstall the GitHub assistant chrome extension (chrome://extensions/) and to generate a new GitHub token (https://github.com/settings/keys), then reinstall the extension (https://chrome.google.com/webstore/detail/google-apps-script-github/lfjcgcmkmjjlieihflfhjopckgpelofo?hl=en) with that new token. That fix seems to last for a few weeks.

It is an annoying workaround, but to my knowledge, this extension is still this is the only game in town for this use case.

@andrewroberts
Copy link

I find that this error goes away after a few tries...

@bergerjacob
Copy link

If anyone has this problem again, it was a github token scope issue for me. You need to allow gist and repo access.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants