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

Ingestion pipeline got an error #33

Open
NicholasStC opened this issue May 30, 2024 · 1 comment
Open

Ingestion pipeline got an error #33

NicholasStC opened this issue May 30, 2024 · 1 comment

Comments

@NicholasStC
Copy link
Collaborator

NicholasStC commented May 30, 2024

Error while ingesting data.
I ran these commands:

  1. docker exec -it haa-ingestion /bin/bash
  2. python3 ingest.py

Version observed: commit: 5b91e00

URL https://stage.hapi-humdata-org.ahconu.org//api/v1/metadata/currency/?limit=1000&offset=1000&app_identifier=ZGF0YS1yZWNpcGVzLWFpLXN0YzpuaWNob2xhcy5kcmFib3dza2lAc2F2ZXRoZWNoaWxkcmVuLm9yZw%3D%3D [] 127 0 127 Before DF 127 After DF Saved ./api/hapi//api_v1_metadata_currency.csv /api/v1/util/version https://stage.hapi-humdata-org.ahconu.org//api/v1/util/version URL https://stage.hapi-humdata-org.ahconu.org//api/v1/util/version/?limit=1000&offset=0&app_identifier=ZGF0YS1yZWNpcGVzLWFpLXN0YzpuaWNob2xhcy5kcmFib3dza2lAc2F2ZXRoZWNoaWxkcmVuLm9yZw%3D%3D Traceback (most recent call last): File "/app/ingest.py", line 432, in <module> main() File "/app/ingest.py", line 408, in main download_openapi_data( File "/app/ingest.py", line 128, in download_openapi_data output = get_api_data(url, query, data_node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/ingest.py", line 70, in get_api_data data = data[data_node] ~~~~^^^^^^^^^^^ KeyError: 'data' root@48ee003f3007:/app#

@dividor
Copy link
Contributor

dividor commented Jun 16, 2024

Thanks! This should be resolved now. It was a new metadata endpoint introduced in the API which didn't have a 'data' node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants