Locations/ does not appear to work as expected
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
- If I go to the swagger ui at https://cwms-data.usace.army.mil/cwms-data/swagger-ui.html I can see the locations/ endpoint
- Since there are no required query params, I assume it is a valid query to not specify any
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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