posit-dev / posit-dev/rsconnect-python

error when existing content gone

Offen
#542 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
Python
Sterne
37
Forks
28
Ø Merge
1 T. 3 Std.
Gemergte PRs (30 T.)
7

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Reproduziere den Fehler mit den dokumentierten rsconnect deploy quarto-Befehlen und untersuche anschließend den Bereitstellungspfad, der den auf der Festplatte gespeicherten Datensatz wiederverwendet und die Posit Connect-Antwort „requested object does not exist“ verarbeitet. Füge einen Regressionstest für ein gelöschtes Remote-Element hinzu; fertig ist die Änderung, wenn eine erneute Bereitstellung ohne --new erfolgreich ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
api, cli
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.