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

KeyError 'source' when uploading a .csv #5

Open
AlessandroSpallina opened this issue Jan 23, 2024 · 0 comments
Open

KeyError 'source' when uploading a .csv #5

AlessandroSpallina opened this issue Jan 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@AlessandroSpallina
Copy link
Owner

AlessandroSpallina commented Jan 23, 2024

Describe the bug
When uploading a CSV file I see the following logs:

cheshire_cat_core           | [2024-01-23 09:24:08.862] ERROR  cat.mad_hatter.mad_hatter.MadHatter.execute_hook::263 => 'Error in plugin ccat_dietician::before_rabbithole_splits_text'
cheshire_cat_core           | [2024-01-23 09:24:08.869] ERROR  cat.mad_hatter.mad_hatter.MadHatter.execute_hook::264 => KeyError('source')
cheshire_cat_core           | [2024-01-23 09:24:08.877] WARNING cat.mad_hatter.mad_hatter.MadHatter.execute_hook::266 => ('To resolve any problem related to Dietician plugin, contact the creator '
cheshire_cat_core           | [2024-01-23 09:24:08.877] WARNING cat.mad_hatter.mad_hatter.MadHatter.execute_hook::266 => 'using github issue at the link '
cheshire_cat_core           | [2024-01-23 09:24:08.877] WARNING cat.mad_hatter.mad_hatter.MadHatter.execute_hook::266 => 'https://github.com/AlessandroSpallina/ccat-dietician')
cheshire_cat_core           | Traceback (most recent call last):
cheshire_cat_core           |   File "/app/cat/mad_hatter/mad_hatter.py", line 254, in execute_hook
cheshire_cat_core           |     tea_spoon = hook.function(
cheshire_cat_core           |   File "/app/cat/plugins/ccat_dietician/dietician.py", line 66, in before_rabbithole_splits_text
cheshire_cat_core           |     'name': doc[0].metadata['source'],
cheshire_cat_core           | KeyError: 'source'

Activated Plugins

  • Ingest Anything
  • Dietician
@AlessandroSpallina AlessandroSpallina added the bug Something isn't working label Jan 23, 2024
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