Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with retrieving XML formatted data #974

Open
Brian-Cosgrove opened this issue Dec 11, 2024 · 2 comments
Open

Issue with retrieving XML formatted data #974

Brian-Cosgrove opened this issue Dec 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Brian-Cosgrove
Copy link

Brian-Cosgrove commented Dec 11, 2024

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

@MikeNeilson MikeNeilson added the bug Something isn't working label Dec 11, 2024
@rma-rripken
Copy link
Collaborator

<query-info> is something that gets generated from the legacy pl/sql calls. CDA recently switched the default to not call into the legacy pl/sql so Mike's suggestion was correct and that should have gotten you back to the previous output. I'm curious about the empty xml files. The results are completely empty? Are you not getting the old <query-info> and <requested-item> tags? Or you are getting those but the rest of the results are empty?

@rma-rripken
Copy link
Collaborator

Can you create a query similar to the one causing the bug against https://cwms-data-test.cwbi.us/cwms-data/ ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants