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

netlify status fails because of undefined full_name #3287

Closed
tbassetto opened this issue Sep 2, 2021 · 4 comments
Closed

netlify status fails because of undefined full_name #3287

tbassetto opened this issue Sep 2, 2021 · 4 comments
Labels
area: command: status good first issue type: bug code to address defects in shipped code

Comments

@tbassetto
Copy link

Describe the bug

I am a paying customer and I believe my profile on the website is complete. It does have my name in the settings. But this is the result of netlify status:
2021-09-02 09_04_30-PowerShell

To Reproduce

Steps to reproduce the behavior:

  1. For me it's just about netlify status

Configuration

CLI's version:

netlify-cli/6.8.4 win32-x64 node-v14.17.5

Expected behavior

Details about my profile :)

CLI Output

──────────────────────┐
 Current Netlify User │
──────────────────────┘
    TypeError: Cannot read property 'full_name' of undefined
@tbassetto tbassetto added the type: bug code to address defects in shipped code label Sep 2, 2021
@erezrokah
Copy link
Contributor

This is probably coming from

Name: user.full_name,

@tbassetto do you mind running with DEBUG=* netlify status so we can get additional information?

Also, can you try netlify logout and then netlify login? That should refresh the authentication token.

@tbassetto
Copy link
Author

2021-09-02 12_22_07-PowerShell

Logging out and in again solved it!

@erezrokah
Copy link
Contributor

Thanks @tbassetto! I'm keeping the issue open as I believe the error handling here:

if (error.status === 401) {

is missing some use cases, and at the very least we should exit with a generic error if we have an error but are unable to classify it.

@tinfoil-knight
Copy link
Contributor

Closing this issue since it has been resolved now.


Terminal output in various cases tested with netlify-cli/11.0.0

Without Logging In:

Not logged in. Please log in to see site status.

Login with "netlify login" command

Logged In but directory is not linked to a site

──────────────────────┐
 Current Netlify User │
──────────────────────┘
Email: keith.kevin99@yahoo.com
Teams:
  keith-kevin99's team: Collaborator
 ›   Warning: Did you run `netlify link` yet?
 ›   Error: You don't appear to be in a folder that is linked to a site

Logged In and directory is linked to a site

ncli status
──────────────────────┐
 Current Netlify User │
──────────────────────┘
Email: keith.kevin99@yahoo.com
Teams:
  keith-kevin99's team: Collaborator
────────────────────┐
 Netlify Site Info  │
────────────────────┘
Current site: super-cool-site-by-keith-kevin99-yahoo-com-7564d
Netlify TOML: /Users/kunal/Desktop/myfolder.nosync/oss/p-cli-test/with-redirects/netlify.toml
Admin URL:    https://app.netlify.com/sites/super-cool-site-by-keith-kevin99-yahoo-com-7564d
Site URL:     https://super-cool-site-by-keith-kevin99-yahoo-com-7564d.netlify.app
Site Id:      93f53f84-27c6-49f0-b342-6de3379bcdaa

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

No branches or pull requests

4 participants