hey compose to [email protected] publishes the post but reports 406 Not Acceptable (retries create duplicate posts)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 42/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Go
- Estrellas
- 409
- Forks
- 49
- Merge medio
- 22 h 16 min
- PR fusionados (30 d)
- 75
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de basecamp/hey-cli
-
TUI Calendar: Enter does nothing on a highlighted event (Day/Week), though the help bar shows "enter: open"Posiblemente ocupada @albertreig la tomó hace 33 días. AbiertoCLI Only
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
Los mantenedores suelen responder en 1 día
-
CLI Only
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
basecamp/hey-cli#408 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Installer canary failureAbiertoinstaller-canary
Dificultad 2/5 1-3 horas Aptitud para principiantes 54/100
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
Los mantenedores suelen responder en 1 día
Todos los issues de basecamp/hey-cli
Issues similares
-
automation models
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
microsoft/TypeScript#64758 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
SocialGouv/iterion#2369 ·
Los mantenedores suelen responder en 1 día
-
daemon/cluster: imageWithDigestString returns the mirror error even when upstream resolves the tagAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
area/ci bug priority/p3
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día