rsconnect-python icon indicating copy to clipboard operation
rsconnect-python copied to clipboard

error when existing content gone

Open aronatkins opened this issue 1 year ago • 0 comments

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.

aronatkins avatar Feb 01 '24 19:02 aronatkins