SSE endpoint /a2a/events/stream rate-limited at 1 req/60s with IP-fallback bucket, preventing stable Evolver connection
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- javascript, node.js
- 领域
- api, backend, networking
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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!
- 主要语言
- JavaScript
- 星标
- 9.1k
- 派生
- 848
- 平均合并
- 14 小时 39 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
EvoMap/evolver 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 62/100
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 68/100
-
[Windows] fdatasyncSync on read-only fd throws EPERM, blocks node credential snapshot (canonicalIdentityLock.js)可能已有人在做 @scui73414-bot 于 64 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
相似的 Issue
-
generate_image reference URL guard lets through IPv4-mapped IPv6 hosts and 100.64.0.0/10可能已有人在做 @goranai 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100
NL-BioImaging/OMERO.biomero#92 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
LinkNacional/woo-rede#367 ·
-
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复
-
bug Next.js
难度 2/5 1-3 小时 新手友好度 76/100
getsentry/sentry-wizard#1397 · 1 条评论 ·
维护者通常 1 天内回复