Skip to content

Use v1 bootstrap endpoint, falling back to experimental - #879

Merged
nealrichardson merged 1 commit into
mainfrom
npr-594
Oct 23, 2026
Merged

nealrichardson merged 1 commit into
mainfrom
npr-594

Conversation

@nealrichardson

@nealrichardson nealrichardson commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #594

rsconnect bootstrap calls POST /__api__/v1/bootstrap (available since Connect 2024.05.0). If that returns 404, it retries the deprecated POST /__api__/v1/experimental/bootstrap, so bootstrap keeps working against older Connect versions. Unauthenticated requests can't read the server version, so the fallback is based on the 404 rather than a version check.

Tests:

  • Existing bootstrap tests target the v1 endpoint.
  • New test_bootstrap_experimental_fallback covers v1 404 → experimental success.
  • test_bootstrap_not_found_error returns 404 from both endpoints.

Integration tests passing confirms that it works across a range of Connect versions. They will bomb hard if it can't bootstrap.

Fixes #594

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-10-23 12:21 UTC

@github-actions

Copy link
Copy Markdown

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
10906 9553 88% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
rsconnect/api.py 89% 🟢
TOTAL 89% 🟢

updated for commit: d8ea6ce by action🐍

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.

Use v1/bootstrap if Connect version supports it

1 participant