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)
まだ誰も着手していません。
評価
調査の方向性
DataProcessing/BenzingaNewsDataDownloader.cs の Download() から始め、85-146行目の再試行ループに注目します。すべてのリクエストに対して 403 を返すローカルスタブで再現し、再試行を使い切った場合は次のページへ進まずに例外をスローするようにして、トークンを公開せずにレスポンスのステータスをログに記録します。修正の完了は、スタブが5回の試行後に失敗し、一時的に失敗したページがスキップされるのではなく再試行されることで判断します。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- C#
- スター
- 3
- フォーク
- 3
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
QuantConnect/Lean.DataSource.BenzingaNews のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
QuantConnect/Lean.DataSource.BenzingaNews の issue をすべて見る
似ている issue
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
dotnet/maui#40788 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
erkamyaman/rust-anything#943 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
SixLabors/ImageSharp.Drawing#438 · コメント 1 件 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
OrchardCMS/OrchardCore#20367 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信