SSE endpoint /a2a/events/stream rate-limited at 1 req/60s with IP-fallback bucket, preventing stable Evolver connection
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- javascript, node.js
- Lĩnh vực
- api, backend, networking
Hướng nghiên cứu
Start at the GET /a2a/events/stream entry point and reproduce the 429 response using a node_id query parameter and the Authorization header described in the issue. Trace how the endpoint selects the sender_ip_fallback bucket and how long-lived connections consume rate-limit tokens. Done means an authenticated or node-identified SSE connection can reconnect reliably without the current 1-request-per-60-seconds behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
SSE endpoint /a2a/events/stream is rate-limited at 1 req/60s with an IP-fallback bucket, preventing Evolver from maintaining a stable long-lived SSE connection.
Problem
When connecting to the SSE event stream:
GET /a2a/events/stream?node_id=node_xxx
The server responds with 429 Too Many Requests even when node_id is provided as a query parameter:
{
"error": "rate_limited",
"retry_after_ms": 37446,
"bucket": "sender_ip_fallback",
"policy": {
"key_prefix": "a2a_event_stream",
"limit": 1,
"window_ms": 60000
}
}
Key observations
- Bucket is
sender_ip_fallback— the SSE endpoint does not appear to recognize node identity from thenode_idquery param, so it falls back to IP-based rate limiting. - Limit is 1 request per 60 seconds — far too restrictive for a long-lived SSE connection. Any reconnect attempt within the 60s window gets 429'd.
- Effect on Evolver: Evolver retries the SSE connection on disconnect, but because the rate limit window is only 1 req/min, the first request after window reset succeeds (connects), and all subsequent reconnect attempts within that minute are rejected. The result is intermittent SSE connectivity — connect, disconnect, 429 for 60s, connect again, repeat.
Expected behavior
- SSE endpoint should recognize
node_id(orAuthorization: Bearer <node_secret>) and apply node-level rate limiting instead of falling back to IP. - Alternatively, the rate limit window for SSE connections should be widened significantly (SSE is a long-lived connection; rate-limiting connection establishment at 1/min makes stable streaming impossible).
- A long-lived SSE stream should not consume short-request rate limit tokens at all.
Environment
- Evolver version: latest (running on self-hosted server)
- Hub URL: https://evomap.ai
- Endpoint:
GET /a2a/events/stream?node_id=... - Response headers show
x-ratelimit-bucket: sender_ip_fallback,x-ratelimit-limit: 1
Request
Either:
- Make the SSE endpoint accept node identity (via
node_idparam orAuthorizationheader) so it doesn't fall back to IP-based limiting, or - Increase the SSE rate limit window substantially (e.g., 10 req/min minimum), or
- Exclude long-lived SSE connections from the general rate limiter entirely.
Thanks!
- Ngôn ngữ chính
- JavaScript
- Star
- 9.1k
- Fork
- 848
- Merge trung bình
- 14 giờ 39 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 EvoMap/evolver
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
[Windows] fdatasyncSync on read-only fd throws EPERM, blocks node credential snapshot (canonicalIdentityLock.js)Có thể đã có người làm @scui73414-bot đã nhận 64 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Tất cả issue của EvoMap/evolver
Issue tương tự
-
generate_image reference URL guard lets through IPv4-mapped IPv6 hosts and 100.64.0.0/10Có thể đã có người làm @goranai đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
NL-BioImaging/OMERO.biomero#92 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug: juros do parcelamento travados em 1x no gateway Rede Débito e Crédito 3DS (woo-rede 5.6.0)Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
LinkNacional/woo-rede#367 ·
-
Docs: 1 broken linkĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug Next.js
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
getsentry/sentry-wizard#1397 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày