Skip to content

Improve missing preset project errors - #4229

Closed
SiluPanda wants to merge 1 commit into
dstackai:masterfrom
SiluPanda:issue_4222_missing_project_error
Closed

Improve missing preset project errors#4229
SiluPanda wants to merge 1 commit into
dstackai:masterfrom
SiluPanda:issue_4222_missing_project_error

Conversation

@SiluPanda

Copy link
Copy Markdown

Summary

  • disambiguate a missing registry route from a missing project after a preset request returns 404
  • report Project '…' does not exist for nonexistent projects while preserving the existing unsupported-registry error for servers whose project still resolves
  • cover the missing-project path without changing the existing 404/405 compatibility behavior

Verification

  • uv run pytest src/tests/_internal/cli/services/presets/test_registry.py -q — 47 passed
  • uv run pre-commit run --files src/dstack/_internal/cli/services/presets/registry.py src/tests/_internal/cli/services/presets/test_registry.py
  • git diff --check

AI assistance

OpenAI Codex was used to implement and validate this change.

Fixes #4222

@r4victor r4victor closed this Sep 1, 2026
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

Successfully merging this pull request may close these issues.

[Bug]: Misleading error when pulling a preset from a nonexistent project

2 participants