Gateway logs nothing when a Frames call fails, except on 401

Abierto Apto para principiantes
#124 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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

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.Connect or session.CallTool fails (:140, :152), the error is thrown away and failed is 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 as MsgFramesUnavailable with no log line.
  • The token-source failure and the two URL errors (:109, :113, :117) return MsgFramesUnavailable without 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

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de nebari-dev/tapas

Todos los issues de nebari-dev/tapas

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.