Skip to content

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

@cyclimse

Description

@cyclimse

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions