Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Command attempted
scw vpc private-network list vpc-id=<VPC_UUID>
Expected Behavior
The command should return the list of private networks attached to the specified VPC.
Actual Behavior
The command fails with:
{"error":"scaleway-sdk-go: could not parse application/json response body: scaleway-sdk-go: bad region format, available regions are: fr-par, nl-ams, pl-waw, it-mil"}
The issue occurs both with and without -o json.
The same error occurs when explicitly setting the region:
SCW_DEFAULT_REGION=fr-par scw vpc private-network list vpc-id=<VPC_UUID>
Regression
The same command works correctly with CLI 2.56.3 and fails after upgrading to 2.57.0.
More info
Failing version
Version 2.57.0
BuildDate 2026-06-15T11:34:40Z
GoVersion go1.26.4
GitBranch HEAD
GitCommit ff49623d
GoArch amd64
GoOS linux
UserAgentPrefix scaleway-cli
Working version
Working version
Version 2.56.3
BuildDate 2026-06-09T10:18:17Z
GoVersion go1.26.4
GitBranch HEAD
GitCommit 94a66f7a
GoArch amd64
GoOS linux
UserAgentPrefix scaleway-cli
Configuration
...
default_region: fr-par
default_zone: fr-par-1
Additional observations
Using the -D debug flag:
- The API request succeeds and returns a 200 OK response.
- The response body contains 4 entries in private_networks.
- All returned private_networks[*].region values are set to fr-par.
- Despite the successful API response, the command fails with a bad region format parsing error.
- The issue is reproducible on every execution.
Community Note
Command attempted
scw vpc private-network list vpc-id=<VPC_UUID>Expected Behavior
The command should return the list of private networks attached to the specified VPC.
Actual Behavior
The command fails with:
{"error":"scaleway-sdk-go: could not parse application/json response body: scaleway-sdk-go: bad region format, available regions are: fr-par, nl-ams, pl-waw, it-mil"}The issue occurs both with and without
-o json.The same error occurs when explicitly setting the region:
SCW_DEFAULT_REGION=fr-par scw vpc private-network list vpc-id=<VPC_UUID>Regression
The same command works correctly with CLI
2.56.3and fails after upgrading to2.57.0.More info
Failing version
Working version
Configuration
Additional observations
Using the
-Ddebug flag: