Five of six outbound fetches cannot time out
Los mantenedores suelen responder en 2 días
@decrypted-dev ya está trabajando en esto.
Desde el 16/10/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Background
src/alerts/delivery.ts gets this right:
res = await fetch(url, {
method: 'POST',
headers: { 'Content-Type': 'application/json', 'X-Lens-Signature': signature },
body: payload,
signal: AbortSignal.timeout(10_000),
})
Every other outbound call in the service omits the signal entirely:
src/ingest/venues/aquarius.ts:54 await fetch(`${apiUrl}?${params.toString()}`)
src/ingesters/amm.ts:36 await fetch(`${horizon}/liquidity_pools?…`)
src/ingesters/amm.ts:133 await fetch(…)
src/ingesters/soroswap.ts:75 await fetch(tokenListUrl)
src/mcp/server.ts:83 await fetch(endpoint)
fetch has no default timeout in Node. A TCP connection that is accepted and
then never answered — which is exactly what a hung upstream or a dropped NAT
mapping looks like — leaves that await pending forever. The ingester holding
it does not crash, so restartIngester never fires: the venue simply stops
producing prices, silently, until someone redeploys.
What to build
- A single helper that wraps
fetchwith a deadline, used by all five sites.
Keep the existingAbortSignal.timeoutapproach — the point is one
convention, not a new one. - A timeout must be distinguishable from an empty response at the call site, so
that L163's work can report it. Throw rather than returning a falsy value. - The deadline should be configurable per call, because an MCP tool call and a
Horizon page fetch do not deserve the same budget. Give it a sensible default.
Acceptance criteria
- No
fetch(call insrc/is without a timeout - One helper is used by every call site;
delivery.tskeeps working - A test proves a hung server causes a rejected promise within the deadline, not a pending one
- The timeout value is configurable and documented in
.env.exampleif it becomes an env var
Drips Wave · Complexity: Intermediate · 150 points
Repo: Divinity-Labs/Lens. Node + TypeScript, Fastify, Prisma on Postgres,
Redis for queues, Prometheus via prom-client.
Run the tests: npm test. The tests are vitest, not jest. Running jest
against this repo reports "66 suites, 0 tests" and means nothing. A single file
is npx vitest run src/__tests__/yourfile.test.ts.
Load test (prices) is already failing on main and has been for some
time. It is not your PR that broke it. Every other check should be green.
This service prices real assets on Stellar mainnet. A number that is wrong
is worse than a number that is missing, because a caller cannot tell the
difference. Prefer failing loudly over returning a plausible value.
Never elide an address, a contract id or a key in code, a comment or a test
fixture. A previous batch wrote a shortened contract id in an issue text and
five contributors invented plausible-looking ids to fill the gap. Write the
whole thing or do not write it at all.
The house pattern for an outbound deadline already exists — see
src/alerts/delivery.ts, which passes signal: AbortSignal.timeout(10_000) to
fetch. Where an issue below asks for a timeout, copy that, do not invent a
second convention.
Required: Before submitting, join the contributor Telegram so your work can be tracked and counted toward the Stellar Wave: https://t.me/+fxHXq8f1SwlkZDBk
- Lenguaje dominante
- TypeScript
- Estrellas
- 4
- Forks
- 71
- Merge medio
- 2 d 20 h
- PR fusionados (30 d)
- 127
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una 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 Divinity-Labs/Lens
-
Webhook retries have no jitter, so failures synchronisePosiblemente ocupada @Richard-tobi la tomó hace 8 días. Abiertoarea:reliability difficulty:easy help wanted points:100 Stellar Wave
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
Divinity-Labs/Lens#341 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
GraphQL queries bypass the per-route scope their REST equivalents requirePosiblemente ocupada @sparkysolutions10-pixel la tomó hace 1 día. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Divinity-Labs/Lens#618 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Live Service Spec Drift ReportAbiertoarea:tests automated live-spec-report
Dificultad 4/5 3-5 días Aptitud para principiantes 28/100
Divinity-Labs/Lens#606 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
The key is accepted only as a bearer token, and nothing says soPosiblemente ocupada @krsnak la tomó hace 7 días. Abiertoarea:docs difficulty:easy help wanted points:100 Stellar Wave
Divinity-Labs/Lens#512 · 4 comentarios · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
The admin surface has no testsPosiblemente ocupada @krsnak la tomó hace 7 días. Abiertoarea:testing difficulty:intermediate help wanted points:150 Stellar Wave
Divinity-Labs/Lens#510 · 5 comentarios · 1 asignado ·
Los mantenedores suelen responder en 2 días
Todos los issues de Divinity-Labs/Lens
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
awesome-dsh-plugin/awesome-dsh-plugin#9184 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
farion1231/cc-switch#8829 ·
Los mantenedores suelen responder en 1 día
-
[core-client] Remove unused hand-maintained transport helpers after the definition-table cutoverAbiertodoc-audit enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100