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

Project ID validation may fail with obscure error when SCW_DEFAULT_PROJECT_ID is not defined in Scaleway config #256

Open
cyclimse opened this issue Feb 5, 2025 · 0 comments

Comments

@cyclimse
Copy link
Contributor

cyclimse commented Feb 5, 2025

In the validation code, we assume that scw_project is defined to check for its length but this may not always be the case., leading to a crash with a fairly obscure error. We should instead return a clearer error like scw_project is not defined, please add it to your Scaleway config or via the provider settings.

Problematic code here:

this.provider.getScwProject().length !== 36

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

No branches or pull requests

1 participant