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

[CLI] error during authentication: Warning: GitHub error: 404 { Deprecation: [@octokit/request-error] error.code is deprecated, use error.status #632

Closed
swyxio opened this issue Dec 5, 2019 · 3 comments
Labels
area: command: init area: github type: bug code to address defects in shipped code

Comments

@swyxio
Copy link
Contributor

swyxio commented Dec 5, 2019

- Do you want to request a feature or report a bug?
bug

- What is the current behavior?
bad error msg when correct permissions aren't set up

- If the current behavior is a bug, please provide the steps to reproduce.

try to deploy a site from a GH repo that you dont have permissions to deploy

- What is the expected behavior?

a nice error message

What happens instead?

rk-community-site   master  ntl init         
? What would you like to do? +  Create & configure a new site
? Team: swyxteam
Choose a unique site name (e.g. the-great-sw-yx-site.netlify.com) or leave it blank for a random name. You can update 
the site name later.
? Site name (optional): rk-community-site-fork

Site Created

Admin URL: https://app.netlify.com/sites/rk-community-site-fork
URL:       https://rk-community-site-fork.netlify.com
Site ID:   2a6515bb-e72c-41be-88b3-7c598dde8f02

? Netlify CLI needs access to your GitHub account to configure Webhooks and Deploy Keys. What would you like to do? Au
thorize with GitHub through app.netlify.com
 ›   Warning: GitHub error: 404
{ Deprecation: [@octokit/request-error] `error.code` is deprecated, use `error.status`.
    at RequestError.get (/Users/swyx/.nvm/versions/node/v10.17.0/lib/node_modules/netlify-cli/node_modules/@octokit/request-error/dist-node/index.js:29:17)
    at InitCommand.run (/Users/swyx/.nvm/versions/node/v10.17.0/lib/node_modules/netlify-cli/src/commands/init.js:215:19)
    at process._tickCallback (internal/process/next_tick.js:68:7) name: 'Deprecation' }
 ›   Error: Does the repository react-knowledgeable/rk-community-site exist and do you have the correct permissions 
 ›   to set up deploy keys?
@jamesgrubb
Copy link

Having the same issue

@swyxio
Copy link
Contributor Author

swyxio commented Jan 17, 2020

to resolve your issue, check the permissions on your GH repo.

@sarahetter
Copy link
Contributor

Closing as stale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: command: init area: github type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

4 participants