posit-dev / posit-dev/rsconnect-python
error when existing content gone
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 37
- Forks
- 28
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 7
Description
Create some content and deploy like:
mkdir some-test-content
cd some-test-content
echo "not interesting" > index.qmd
rsconnect deploy quarto index.qmd
This deploy command uses my CONNECT_SERVER and CONNECT_API_KEY to target a Connect server.
Remove that item from Connect.
Attempt to deploy again.
rsconnect deploy quarto index.qmd
This attempt fails:
[ERROR]: Posit Connect reported an error (calling /__api__/applications/f491690f-0e35-4950-a91d-5d0ce85a7566): The requested object does not exist. Try setting the --new flag to overwrite the previous deployment.
Error: Posit Connect reported an error (calling /__api__/applications/f491690f-0e35-4950-a91d-5d0ce85a7566): The requested object does not exist. Try setting the --new flag to overwrite the previous deployment.
The fact that the content is reported as not existing should give a signal to rsconnect that whatever on-disk record of the deployment is outdated. Deployment should proceed without requesting -N.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with the documented rsconnect deploy quarto commands, then inspect the deployment path that reuses the on-disk record and handles the Posit Connect “requested object does not exist” response. Add a regression test for a deleted remote item; done means a repeat deployment succeeds without requiring --new.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100