hey compose to [email protected] publishes the post but reports 406 Not Acceptable (retries create duplicate posts)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 42/100
Direzione di ricerca
The payload names no source files. Start by reproducing with hey compose --to [email protected] -v and checking the redirect handling in the Go HTTP client code that sends the compose POST. Decide whether the 302 should count as success or the redirect should not be followed for this send, since the maintainer has not chosen. Done means a successful POST is reported as sent with ok: true, and a test covers the 302-then-406 sequence.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
hey compose to [email protected] (HEY World) publishes the post, but the CLI reports a failure:
{ "ok": false, "error": "API error: 406 Not Acceptable", "code": "api" }
Because the command says it failed, rerunning it publishes the post again. Three runs produced three identical public posts.
Steps to reproduce
hey compose --to [email protected] --subject "Test post" < body.md
Verbose output (-v)
http request method=POST
http response status=302
http request method=GET
http response status=406
The POST succeeds and redirects (302). The CLI follows the redirect with a GET that HEY answers with 406, and then reports the whole send as failed.
Expected
- Treat the 302 after the POST as success (or do not follow the redirect for this send), and report the post as sent/published.
- At minimum, do not report
ok: falsewhen the message was actually accepted, since scripts and agents will retry it and create duplicates.
Related: an idempotency key for compose (#477) would also prevent duplicate posts.
hey version 1.8.0
- Lingua principale
- Go
- Stelle
- 409
- Fork
- 49
- Merge medio
- 22h 16m
- PR unite (30g)
- 75
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di basecamp/hey-cli
-
TUI Calendar: Enter does nothing on a highlighted event (Day/Week), though the help bar shows "enter: open"Forse già presa @albertreig l’ha presa 34 giorni fa. ApertaCLI Only
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
I maintainer di solito rispondono entro 1 giorno
-
CLI Only
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
basecamp/hey-cli#408 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Installer canary failureApertainstaller-canary
Difficoltà 2/5 1-3 ore Idoneità per principianti 54/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di basecamp/hey-cli
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
Add SolentaForse già presa @sharmao07 l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
slavakurilyak/awesome-ai-agents#760 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
agent-review-finding bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
jordansmall/spindrift#5281 ·
I maintainer di solito rispondono entro 1 giorno