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

Runtime error: Slice bounds out of range #39

Closed
mraerino opened this issue Sep 23, 2019 · 7 comments · May be fixed by #40
Closed

Runtime error: Slice bounds out of range #39

mraerino opened this issue Sep 23, 2019 · 7 comments · May be fixed by #40

Comments

@mraerino
Copy link
Member

mraerino commented Sep 23, 2019

Actions

yarn global add netlify-cli
netlify plugins:install netlify-lm-plugin
netlify lm:install
git clone myrepo-with-lm

Output

panic: runtime error: slice bounds out of range

goroutine 1 [running]:
github.com/netlify/netlify-credential-helper/credentials.getCredentials(0x17696e0, 0xc00000c010, 0x1769720, 0xc00000c018, 0xc0005ffe38, 0xc000088840)
	/home/david/src/github.com/netlify/netlify-credential-helper/credentials/credentials.go:126 +0xd36
github.com/netlify/netlify-credential-helper/credentials.handleCommand(0x7ffeefbff7d1, 0x3, 0x17696e0, 0xc00000c010, 0x1769720, 0xc00000c018, 0x18, 0x165e200)
	/home/david/src/github.com/netlify/netlify-credential-helper/credentials/credentials.go:65 +0x127
github.com/netlify/netlify-credential-helper/credentials.HandleCommand()
	/home/david/src/github.com/netlify/netlify-credential-helper/credentials/credentials.go:52 +0x2db
main.main()
	/home/david/src/github.com/netlify/netlify-credential-helper/cmd/netlify-credential-helper/main.go:6 +0x20

This might be due to the fact that I'm not logged in. In that case that should be handled and documented better.

@djurosaur
Copy link

I have a same issue, both if im logged in, or logged out (Windows 10)

@swayhead
Copy link

Same problem here on MacOS

@erezrokah
Copy link
Contributor

Hi @djurosaur and @swayhead, can you make sure you're running the latest CLI version v3.8.3 by running npm install netlify-cli -g?

Then try

netlify logout
netlify login
netlify lm:install
netlify lm:setup

@swayhead
Copy link

Hi @erezrokah,
that was obiously the point. After updating the CLI yesterday the clone went smoothly. Also, no asking for credentials regarding the Large Media stuff.
Thanks

@djurosaur
Copy link

hi @erezrokah ,
Works great now!
Thank you

@Nixinova
Copy link

This is a really bad error message, why do I get the stack trace of some other person's computer?

@mraerino
Copy link
Member Author

i think multiple people reported this as fixed?

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

Successfully merging a pull request may close this issue.

5 participants