USACE / USACE/cwms-data-api

Need a better error message when requesting too much data

Open
#821 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
28
Forks
25
Avg merge
4d 22h
Merged PRs (30d)
20

Description

I'm querying hourly data, and once I request 59 or more days ~1400 values, I get a generic error "System Error" without any details.

A message that indicates something like 'your request was too large' would be helpful.

Here is an example:

https://cwms-data.usace.army.mil/cwms-data/timeseries?name=TULA.Flow.Inst.1Hour.0.Ccp-Rev&office=SWT&begin=2024-06-02T15%3A34%3A27.308382&end=2024-07-31T15%3A34%3A27.308382

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

Reproduce the example timeseries request against the CWMS Data API, varying the requested date range around 59 days, and trace where the generic "System Error" response is produced. Identify the request-size handling and its existing error-response path; done means oversized requests return a clear message explaining that the request is too large rather than the generic error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.