HydrologicEngineeringCenter / HydrologicEngineeringCenter/cwms-cli

Get USGS Timeseries not storing 15 minute data when original data is 5 minute.

Open
#103 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
2
Forks
4
Avg merge
19h 59m
Merged PRs (30d)
3

Description

CLI Script

getusgs-timeseries

Describe the bug

When attempting to download and store data that is natively 5 minute data from the USGS into a 15 minute pathname in CWMS fails. This works using the getUSGS_CDA.py script outside of cwms-cli.

REDACTED relevant log output
2026-01-23 07:56:00;INFO;Attempting to write values for ts_id -->  College Park.Stage.Inst.15Minutes.0.Raw-USGS,01649190.00065
2026-01-23 07:56:35;ERROR;FAIL Data could not be stored to CWMS database for -->  College Park.Stage.Inst.15Minutes.0.Raw-USGS,01649190.00065 CDA error = HTTPSConnectionPool(host='wm.nab.ds.usace.army.mil', port=8243): Max retries exceeded with url: /nab-data/timeseries?create-as-lrts=False&override-protection=False (Caused by ResponseError('too many 500 error responses'))
Steps to Reproduce

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the getusgs-timeseries CLI entry point and compare its USGS download and CWMS storage flow with getUSGS_CDA.py, which reportedly works outside cwms-cli. Reproduce the case using native 5-minute data written to a 15-minute pathname, then verify that the values are stored successfully rather than producing repeated CDA 500 errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.