USACE / USACE/cwms-data-api

Issue with retrieving XML formatted data

Open
#974 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

We have an ingest process whereby we retrieve xml-formatted USACE data for use with the NWM. We recently encountered an issue with this usual USACE cwms data download/ingest. A few days ago, we noticed that two tags disappeared from the incoming data files: <query-info> and <requested-item>.

We added (req = urllib.request.Request(request_str, headers={"accept": "application/xml;version=1"}) into the python download script but it creates empty xml files. Per our email exchange, Mike, I'm entering this as a new issue.

Thanks,
Brian

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 Python download script and the request for USACE CWMS XML data, comparing responses with and without the accept: application/xml;version=1 header. Investigate why the response files are empty or omit <query-info> and <requested-item>; done means the download produces non-empty XML with the expected tags.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, data-engineering
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.