BenzingaNewsDataDownloader: a page failing all retries is skipped, and the download never ends when every page fails (1 deployment, 0 users since 2026-11-28)
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 85/100
Línea de trabajo
Comienza con Download() en DataProcessing/BenzingaNewsDataDownloader.cs, centrándote en el bucle de reintentos de las líneas 85-146. Reproduce el problema con un stub local que devuelva 403 para cada solicitud y, cuando se agoten los reintentos, haz que se lance una excepción en lugar de avanzar a la página siguiente; además, registra el estado de la respuesta sin exponer el token. La corrección estará completa cuando el stub falle después de cinco intentos y una página que falla de forma temporal se reintente en lugar de omitirse.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Impact: 0 users, 1 deployment since 2026-11-28
Found: 2026-11-28, while checking the daily news downloads
What happens
BenzingaNewsDataDownloader.Download() fetches a day's news page by page and stops only when a page answers [] (DataProcessing/BenzingaNewsDataDownloader.cs:85-146). Each page is tried 5 times (_retryMaxCount); when all 5 throw, the catch logs Download failed. 0 retries remaining and the loop goes on to page++ anyway. Nothing ends the while (!finished) loop except a [] page, so:
- when the API keeps failing, such as answering
403 Forbiddento every request, the download never ends: it requests page after page, 5 attempts each, about one page every 2.5 seconds, until the process is stopped from outside. The conversion after it never runs and no error is returned; - when a single page fails 5 times and the next ones succeed, that page's articles are skipped silently and the run still succeeds.
On 2026-11-28 a download of 2026-11-27 got 403 Forbidden on every request from its start: after 15 minutes it was past page 348 (that day has a few pages at most) and still going. The same date's download with the same API key had succeeded about two hours earlier in a few seconds, so that day's files exist and no data is lost this time. A run hitting it with no earlier good run would leave the day missing, and keep calling the API about 2 times a second for hours.
Ruled out
- A code change: the downloader's last change was 2026-06-25, and every daily run from 2026-11-20 to 2026-11-28 finished in under 30 seconds.
- The paging itself: the loop is the same whatever the error; a 403 is only what exposed it.
Likely cause
The loop above (certain from the code). Why the API answered 403 isn't known: the response body isn't logged (hypothesis: the key's quota or a temporary block on the vendor's side).
Where a fix would go
Download() in DataProcessing/BenzingaNewsDataDownloader.cs (a suggestion; whoever fixes it picks the approach):
- once a page's retries run out, stop and fail the download (throw, so the program exits non-zero) instead of moving to the next page, so a failing day is reported rather than looping or skipped;
- log the status code and the start of the response body (never the token) on a failed attempt, so the next failure says what the API answered.
To reproduce: point the downloader at a local stub that answers 403 to every request and call Download(date, date): it never returns. A fix should make it fail after page 0's 5 attempts, and, with a stub that fails page 1 five times and then answers it, not succeed with page 1's articles missing.
The other paged news downloader in these data sources, Quiver Government Contracts, caps its pages and throws once its retries run out, so it doesn't have this bug.
- Lenguaje dominante
- C#
- Estrellas
- 3
- Forks
- 3
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 QuantConnect/Lean.DataSource.BenzingaNews
-
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
-
Adds Universe SelectionAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
Todos los issues de QuantConnect/Lean.DataSource.BenzingaNews
Issues similares
-
agentic-workflows
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
dotnet/maui#40788 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 92/100
erkamyaman/rust-anything#943 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
SixLabors/ImageSharp.Drawing#438 · 1 comentario ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
OrchardCMS/OrchardCore#20367 · 1 comentario ·
Los mantenedores suelen responder en 1 día