gas-github icon indicating copy to clipboard operation
gas-github copied to clipboard

TypeError: Cannot read property 'forEach' of undefined

Open Jlcasado opened this issue 4 years ago • 5 comments

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.

Jlcasado avatar Jun 08 '20 10:06 Jlcasado

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

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

dimitri-vs avatar Nov 17 '20 23:11 dimitri-vs

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

andrewroberts avatar Jun 09 '22 09:06 andrewroberts

[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.

jmcmurry avatar Sep 13 '22 06:09 jmcmurry

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

andrewroberts avatar Sep 13 '22 07:09 andrewroberts