No error raised on multithreaded store failure

オープン
#277 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
python
領域
api

調査の方向性

multithreaded store_timeseries エントリポイントから開始し、そのエラーハンドリングを ApiError を送出する single-chunk パスと比較します。ログに示されている失敗ケースを使って multithreaded パスを実行し、呼び出し元がログを調べる必要なく、いずれかの chunk が失敗したことを検出できることを確認します。

索引モデルが issue の本文から書いたものです。

説明

If using multithreaded store_timeseries, there's no way to determine if there was an error.

The ApiError exception used in the single chunk case is not raised in the multithreaded case.

I don't necessarily need to know what the specific error(s) are, but I'd like to know if there was any error that occurred. The only way to know that currently is to look at the log.

Example log entries I've seen:

2026-03-20 13:21:38,321 - ERROR - Error storing chunk from 1569803400000 to 1569888900000: Object of type function is not JSON serializable
...
2026-03-20 13:21:46,873 - ERROR - CDA Error: response=<Response [400]>
2026-03-20 13:21:46,876 - ERROR - Error storing chunk from 1569803400000 to 1569888900000: CWMS API Error (https://wm.spk.ds.usace.army.mil/spk-data/timeseries?create-as-lrts=False&store-rule=Do+Not+Replace&override-protection=False) 400. Check that your parameters are correct. Bad Request
主要言語
Python
スター
16
フォーク
11
平均マージ
7時間 35分
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

HydrologicEngineeringCenter/cwms-python のほかの issue

HydrologicEngineeringCenter/cwms-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。