[FEATURE REQUEST] "fastly log-tail" is ... brittle?
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 38/100
Línea de trabajo
Comienza con pkg/commands/logtail/root.go, especialmente con el manejo de 404 y 503 alrededor de las líneas 174-182, y revisa el endpoint de logs gestionado descrito en el issue. Reproduce el comportamiento de larga duración de fastly log-tail y rastrea qué solicitud emite el error 404 o de stream de HTTP/2. Se considera terminado cuando los fallos transitorios se gestionan de forma coherente sin exponer errores no recuperables confusos.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Is your feature request related to a problem? Please describe.
here is the output from having fastly log-tail up in a terminal for a few hours:
> fastly log-tail
INFO: Managed logging enabled on service 3wCN1FFZOpZsR30IqhSkpn
WARNING: error scanning response body: stream error: stream ID 101; PROTOCOL_ERROR; received from peer
stderr | 0331fdea | None?"/robots.txt"
stdout | 0331fdea | handled None?"/robots.txt" in 4350ns
stderr | 8083b6b5 | None?"/sitemap.xml"
stdout | 8083b6b5 | handled None?"/sitemap.xml" in 2787ns
stderr | 8083b6b5 | None?"/robots.txt"
stdout | 8083b6b5 | handled None?"/robots.txt" in 4616ns
WARNING: non-200 resp 404
ERROR: unrecoverable error, response code: 404.
If you believe this error is the result of a bug, please file an issue: https://github.com/fastly/cli/issues/new?labels=bug&template=bug_report.md
Describe the solution you'd like
The warning does not seem like something I should have to handle, and it's not clear to me if that's an API behavior related to my service's logs (though I assume it is not). eventually some API call here returned a 404 (but the API clearly does exist, since I can run this again with the same token and it's fine?)
I don't know what API semantics the log tailing endpoint has - is it a documented endpoint? /service/<sid>/log_stream/managed/instance_output doesn't seem to be. but I imagine the H2 stream error and outright 404 are part of just having a command like this; if there's a long-running request fetching logs, surely at some times the network will have a spurious reset because a server goes down for updates or something.
the CLI does handle 404, and 503 in some cases, so the fact that I get a 404 printed suggests that maybe there is some other API that returned a 404? honestly not sure what is happening in the output I've shared.
Describe alternatives you've considered
while true; do fastly log-tail --token $(cat ~/fastly.key); done
Additional context
this is part of what motivated me to open https://github.com/fastly/cli/issues/1789 but I realized I was on a very old CLI and updated first, then log tailed and waited for it to happen again. that would put this at about 3-hours-to-reproduce IME.
- Lenguaje dominante
- Go
- Estrellas
- 164
- Forks
- 80
- Merge medio
- 1 d 1 h
- PR fusionados (30 d)
- 25
Preparar el entorno
- Sin Dockerfile ni 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 fastly/cli
-
bug feature request
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
fastly/cli#1709 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
feature request
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
feature request
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
Los mantenedores suelen responder en 1 día
-
feature request
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
fastly/cli#1789 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
feature request
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
fastly/cli#1734 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de fastly/cli
Issues similares
-
documentation hacktoberfest priority: low skill: good first issue status: ready for dev
Dificultad 2/5 Medio día Aptitud para principiantes 85/100
hyperledger-labs/fabric-smart-client#2142 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
numberly/vault-db-injector#107 ·
Los mantenedores suelen responder en 1 día
-
area/import kind/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
[DOC] Wrong sg_egress_ports range in the Terraform Databricks Guide for AWS Hub & Spoke with Network FirewallPosiblemente ocupada @akhil9tiet la tomó hoy. Abiertodocs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
databricks/terraform-provider-databricks#6080 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
kind/documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
kubernetes-sigs/dra-driver-nvidia-gpu#1569 ·
Los mantenedores suelen responder en 1 día