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

Missing Key Causes Error #156

Open
jermnelson opened this issue Aug 24, 2022 · 0 comments
Open

Missing Key Causes Error #156

jermnelson opened this issue Aug 24, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@jermnelson
Copy link
Contributor

In the process_folio.build-folio task is generating the following error when trying to convert https://api.stage.sinopia.io/resource/fe08ef73-11d6-484e-910b-fd3ec05c9fee:

[2022-08-24, 15:27:40 UTC] {taskinstance.py:1703} ERROR - Task failed with exception
Traceback (most recent call last):
  File "/home/airflow/.local/lib/python3.9/site-packages/airflow/models/taskinstance.py", line 1332, in _run_raw_task
    self._execute_task_with_callbacks(context)
  File "/home/airflow/.local/lib/python3.9/site-packages/airflow/models/taskinstance.py", line 1458, in _execute_task_with_callbacks
    result = self._execute_task(context, self.task)
  File "/home/airflow/.local/lib/python3.9/site-packages/airflow/models/taskinstance.py", line 1514, in _execute_task
    result = execute_callable(context=context)
  File "/home/airflow/.local/lib/python3.9/site-packages/airflow/operators/python.py", line 151, in execute
    return_value = self.execute_callable()
  File "/home/airflow/.local/lib/python3.9/site-packages/airflow/operators/python.py", line 162, in execute_callable
    return self.python_callable(*self.op_args, **self.op_kwargs)
  File "/home/airflow/.local/lib/python3.9/site-packages/ils_middleware/tasks/folio/build.py", line 302, in build_records
    inventory_rec = _inventory_record(
  File "/home/airflow/.local/lib/python3.9/site-packages/ils_middleware/tasks/folio/build.py", line 278, in _inventory_record
    record_field, values = post_processing(
  File "/home/airflow/.local/lib/python3.9/site-packages/ils_middleware/tasks/folio/build.py", line 53, in _primary_contributor
    return _contributors(primary=True, contrib_name="Personal name", **kwargs)
  File "/home/airflow/.local/lib/python3.9/site-packages/ils_middleware/tasks/folio/build.py", line 42, in _contributors
    "contributorTypeId": lookup_contrib_id[row[1]],
KeyError: 'author'
@jermnelson jermnelson added the bug Something isn't working label Aug 24, 2022
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

1 participant