Gateway logs nothing when a Frames call fails, except on 401
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 82/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- go
- Área
- backend, observability
Línea de trabajo
Empieza en internal/frames/framesmcp/server.go y céntrate en las rutas de session.Connect, session.CallTool, failed, la fuente del token y los errores de URL mencionadas en el issue. Compara su registro con la advertencia memory.recall_failed y mantén los tokens y los cuerpos de las solicitudes fuera de los registros. El trabajo estará completo cuando cada ruta de error emita un WARN con su causa y el contexto pertinente, incluido un mensaje específico para los errores de la fuente del token.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
When Frames is down, the gateway logs nothing. An operator has no line to find, and the only sign anything is wrong is an agent telling the person that Frames didn't respond.
I tested this on the powershift demo cluster by scaling Frames to 0 for about nine minutes (v0.4.0). Home chat behaved well: it said Frames didn't respond after several tries, didn't make up an answer, and suggested trying again later. On the gateway side, Tempo shows eight /frames/mcp calls, all HTTP 200 in 1-58 ms, because the forwarder returns the failure as an MCP tool error. The gateway log has no line at all for them.
Memory doesn't have this gap. With mem0 at 0 in the same test, every failed call got a WARN with the cause (memory.recall_failed ... mem0: POST /search: dial tcp ...:8000: connect: connection refused), so it was obvious what was down and why.
On main (e493830), in internal/frames/framesmcp/server.go:
- When
session.Connectorsession.CallToolfails (:140,:152), the error is thrown away andfailedis called.failed(:160) logs only when Frames answered 401 (frames.token_refused,:165). A connection refused, a timeout, a 5xx or a protocol error all come back asMsgFramesUnavailablewith no log line. - The token-source failure and the two URL errors (
:109,:113,:117) returnMsgFramesUnavailablewithout logging either.
We should log each of these at WARN, the way memory does: a frames.call_failed with the cause, the Frames URL and the tool name, and never the token or body (as frames.token_refused already does). The token-source failure needs its own message so it isn't mistaken for Frames being down.
#119 covers the tool name missing from traces. This is the other half: even without a trace backend, the log should say Frames is unreachable.
- Lenguaje dominante
- Go
- Estrellas
- 5
- Forks
- 0
- Merge medio
- 21 h 13 min
- PR fusionados (30 d)
- 53
Preparar el entorno
- Incluye un Dockerfile o un 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 nebari-dev/tapas
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
nebari-dev/tapas#121 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
nebari-dev/tapas#32 ·
Los mantenedores suelen responder en 1 día
-
Suggest saving a memory when a chat message holds something worth rememberingPosiblemente ocupada @jbouder la tomó hoy. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
nebari-dev/tapas#137 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 54/100
nebari-dev/tapas#136 ·
Los mantenedores suelen responder en 1 día
-
type: enhancement 💅🏼
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
nebari-dev/tapas#133 ·
Los mantenedores suelen responder en 1 día
Todos los issues de nebari-dev/tapas
Issues similares
-
--auto-tier: hashing, dedup, resume validation and DVC/git reads still update atime on LinuxAbiertoarea: pipeline priority: low type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
prime-radiant-inc/evener#8335 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
-
ui: OnTextKey on SearchField never sees keys (it does not reach the inner input)Posiblemente ocupada @szluyu99 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100