hey compose to [email protected] publishes the post but reports 406 Not Acceptable (retries create duplicate posts)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 42/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Go
- Star
- 414
- Fork
- 53
- Merge trung bình
- 22 giờ 58 phút
- Pull request đã merge (30 ngày)
- 63
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của basecamp/hey-cli
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
TUI Calendar: Enter does nothing on a highlighted event (Day/Week), though the help bar shows "enter: open"Có thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởCLI Only
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Installer canary failureĐang mởinstaller-canary
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 50/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của basecamp/hey-cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
FootprintAI/Containarium#3182 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug from-studio
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
esengine/DeepSeek-Reasonix#14608 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
getarcaneapp/arcane#4590 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/frontend/library-panels automated-triage type/bug type/ux
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
elboletaire/manga-downloader#440 ·
Maintainer thường phản hồi trong vòng 1 ngày