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

vip @<app-id>.<env> config envvar get-all crashes when the logged in user doesn't have sufficient permissions #2053

Closed
dero opened this issue Oct 14, 2024 · 0 comments · Fixed by #2059

Comments

@dero
Copy link

dero commented Oct 14, 2024

Running vip @<app-id>.<env> config envvar get-all crashes the script execution with:

✕ Please contact VIP Support with the following information:
TypeError: Cannot read properties of null (reading 'toString')
    at /home/dero/.nvm/versions/node/v18.13.0/lib/node_modules/@automattic/vip/dist/lib/cli/format.js:75:50
    at Array.map (<anonymous>)
    at /home/dero/.nvm/versions/node/v18.13.0/lib/node_modules/@automattic/vip/dist/lib/cli/format.js:75:24
    at Array.forEach (<anonymous>)
    at table (/home/dero/.nvm/versions/node/v18.13.0/lib/node_modules/@automattic/vip/dist/lib/cli/format.js:74:8)
    at formatData (/home/dero/.nvm/versions/node/v18.13.0/lib/node_modules/@automattic/vip/dist/lib/cli/format.js:37:14)
    at getAllEnvVarsCommand (/home/dero/.nvm/versions/node/v18.13.0/lib/node_modules/@automattic/vip/dist/bin/vip-config-envvar-get-all.js:73:38)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async _args.default.argv (/home/dero/.nvm/versions/node/v18.13.0/lib/node_modules/@automattic/vip/dist/lib/cli/command.js:461:11)
Error:  Unexpected error
Debug:  VIP-CLI v3.8.4, Node v18.13.0, linux 5.15.153.1-microsoft-standard-WSL2 x64

This has been encountered by multiple members of our team on multiple environments.

I believe this is due to insufficient permissions to read env variable values. The experience should be fixed.

Also, I don't know of a way to check my role in a given app, so I can't even be sure if it's due to insufficient permissions, or something else.

@sjinks sjinks linked a pull request Oct 19, 2024 that will close this issue
7 tasks
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.

1 participant