Revieve following error from the read-source-and-build-index Lambda function when I try to upload attached .txt file to the source materials bucket. Able to execute with a pdf instead allergies_faq.txt
[ERROR] TypeError: __init__() takes 1 positional argument but 2 were givenTraceback (most recent call last): File "/var/task/index_creation_app.py", line 63, in handler documents = [Document(t) for t in text_list] File "/var/task/index_creation_app.py", line 63, in <listcomp> documents = [Document(t) for t in text_list] | [ERROR] TypeError: __init__() takes 1 positional argument but 2 were given Traceback (most recent call last): File "/var/task/index_creation_app.py", line 63, in handler documents = [Document(t) for t in text_list] File "/var/task/index_creation_app.py", line 63, in <listcomp> documents = [Document(t) for t in text_list]
-- | --
Revieve following error from the read-source-and-build-index Lambda function when I try to upload attached .txt file to the source materials bucket. Able to execute with a pdf instead
allergies_faq.txt