Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when existing content gone #542

Open
aronatkins opened this issue Feb 1, 2024 · 0 comments
Open

error when existing content gone #542

aronatkins opened this issue Feb 1, 2024 · 0 comments

Comments

@aronatkins
Copy link
Collaborator

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.

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

No branches or pull requests

1 participant