mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-05 15:40:47 +00:00
fix: add actionable guidance to destroy_server failures and service timeouts (#959)
When server destruction fails, users are left with a bare error message and no indication that they may still be billed for a running server. This adds dashboard URLs and clear warnings to destroy_server errors across 9 clouds (Hetzner, UpCloud, Contabo, Netcup, RamNode, Hostinger, HOSTKEY, OVH, Latitude). Also improves error messages for Koyeb (app creation, service deployment, deployment timeout, instance ID), GitHub Codespaces (creation failure, readiness timeout), and E2B (sandbox creation failure). Agent: ux-engineer Co-authored-by: A <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
3c3c697ea5
commit
5ebe3e5a13
12 changed files with 107 additions and 17 deletions
|
|
@ -301,7 +301,11 @@ destroy_server() {
|
|||
response=$(netcup_api "deleteVServer" "{\"vserverid\": \"$server_id\"}")
|
||||
|
||||
if ! _netcup_is_success "$response"; then
|
||||
log_error "Failed to destroy VPS: $response"
|
||||
log_error "Failed to destroy VPS $server_id"
|
||||
log_error "API Error: $(_extract_json_field "$response" "d.get('longmessage','Unknown error')")"
|
||||
log_error ""
|
||||
log_error "The VPS may still be running and incurring charges."
|
||||
log_error "Delete it manually at: https://ccp.netcup.net/"
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue