error when existing content gone

未關閉
#542 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
45/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
python
領域
api, cli

研究方向

使用文件中記載的 rsconnect deploy quarto 命令重現此失敗,然後檢查會重複使用磁碟上的記錄並處理 Posit Connect「requested object does not exist」回應的部署路徑。為已刪除的遠端項目新增回歸測試;完成條件是無需 --new,重複部署即可成功。

由索引模型根據 Issue 內容生成。

描述

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.

主要語言
Python
星號
38
分支
28
平均合併
1 天 4 小時
30 天內合併 PR
59

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

posit-dev/rsconnect-python 的其他 Issue

查看 posit-dev/rsconnect-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。