Skip to content

scaleway-sdk-go: precondition failed #4827

Open
@talset

Description

@talset

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 instance server start XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX zone=fr-par-1
scaleway-sdk-go: precondition failed:

Expected Behavior

1/ error message should be more helpful or with more detail. (display the precondition message ?)
We can only see the detail with debug mode:

---------- Scaleway SDK RESPONSE 1 (583dd6a4) : ----------
HTTP/2.0 412 Precondition Failed
Content-Length: 70
Content-Security-Policy: default-src 'none'; frame-ancestors 'none'
Content-Type: application/json
Date: Mon, 16 Jun 2025 08:58:04 GMT
Server: Scaleway API Gateway (fr-par-3;edge02)
Strict-Transport-Security: max-age=63072000
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-Request-Id: 5de3849a-0759-4386-9855-fd66736c6d61

{"message": "server should be stopped", "type": "precondition_failed"}
----------------------------------------------------------
scaleway-sdk-go: precondition failed: 

2/ This one is more a question, in this case action is "poweron" server, and it fail because the server is "on".
The command exit code is 1. Should it be 0 ?

3/ scaleway-sdk-go: precondition failed seems to be a "global" issue that also need to be fixed on terraform provider.

Actual Behavior

scaleway-sdk-go: precondition failed:

More info

cli version

scw version
Version          2.40.0
BuildDate        2025-06-12T01:51:07PM
GoVersion        go1.24.4
GitBranch        HEAD
GitCommit        1fcde324
GoArch           amd64
GoOS             linux
UserAgentPrefix  scaleway-cli

terraform provider version

registry.terraform.io/scaleway/scaleway v2.55.0

Metadata

Metadata

Assignees

Labels

buginstanceInstance issues, bugs and feature requestspriority:lowLow priority such as UX improvements and esthetics

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions