USACE / USACE/cwms-data-api

Locations/ does not appear to work as expected

Open
#1,077 1 comment 0 reactions 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

Hello, thank you for your work on this great API

I am looking to programmatically get a list of all locations that are present in the cwms-data-api

However, if I run curl:

curl -X 'GET' \
  'https://cwms-data.usace.army.mil/cwms-data/locations' \
  -H 'accept: application/json;version=2'

I get a 500 status error that does not give any context on the issue

{
  "message": "failed to process request",
  "incidentIdentifier": "1416418667159794292",
  "details": {}
}

It also does not work if I specify an office name such as LRD

curl -X 'GET' \
  'https://cwms-data.usace.army.mil/cwms-data/locations?office=LRD' \
  -H 'accept: application/json;version=2'
{
  "message": "failed to process request",
  "incidentIdentifier": "1387004630766519654",
  "details": {}
}

I was wondering if you could provide any guidance on this.
Thank you very much

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 by reproducing the GET /cwms-data/locations requests shown in the issue, both without parameters and with office=LRD. Trace the locations endpoint and use the reported incident identifiers to find the server-side failure. Done means the endpoint returns the expected location list or a useful error for these requests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, openapi
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.