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

[BUG] Error ingesting simple wiki using simple_wiki_demo script #828

Open
supertramp01 opened this issue May 4, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@supertramp01
Copy link

Describe the bug

Indexing/ingesting docs from simple wiki fails

To Reproduce
Follow steps outlined in this page: https://github.com/marqo-ai/marqo/tree/mainline/examples/SimpleWiki

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots

2024-05-04 01:38:12,396 logger:'marqo' INFO add_documents batch 2875: took 1.505s for Marqo to process & index 50 docs. Roundtrip time: 1.515s.
2024-05-04 01:38:14,077 logger:'marqo' INFO add_documents batch 2876: took 1.673s for Marqo to process & index 50 docs. Roundtrip time: 1.681s.
2024-05-04 01:38:15,881 logger:'marqo' INFO add_documents batch 2877: took 1.789s for Marqo to process & index 50 docs. Roundtrip time: 1.804s.
Traceback (most recent call last):
File "/Users/supertramp/repos/marqo/venv/lib/python3.11/site-packages/marqo/_httprequests.py", line 141, in _validate
request.raise_for_status()
File "/Users/supertramp/repos/marqo/venv/lib/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:8882/indexes/marqo-simplewiki-demo-all/documents?refresh=false

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/Users/supertramp/repos/marqo/examples/SimpleWiki/simple_wiki_demo.py", line 95, in
responses = client.index(index_name).add_documents(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/supertramp/repos/marqo/venv/lib/python3.11/site-packages/marqo/index.py", line 503, in add_documents
return self._add_docs_organiser(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/supertramp/repos/marqo/venv/lib/python3.11/site-packages/marqo/index.py", line 553, in _add_docs_organiser
res = self._batch_request(
^^^^^^^^^^^^^^^^^^^^
File "/Users/supertramp/repos/marqo/venv/lib/python3.11/site-packages/marqo/index.py", line 807, in _batch_request
results = [verbosely_add_docs(i, docs) for i, docs in enumerate(batched)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/supertramp/repos/marqo/venv/lib/python3.11/site-packages/marqo/index.py", line 807, in
results = [verbosely_add_docs(i, docs) for i, docs in enumerate(batched)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/supertramp/repos/marqo/venv/lib/python3.11/site-packages/marqo/index.py", line 762, in verbosely_add_docs
res = self.http.post(path=path_with_query_str, body=body, index_name=self.index_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/supertramp/repos/marqo/venv/lib/python3.11/site-packages/marqo/_httprequests.py", line 101, in post
return self.send_request('post', path, body, content_type, index_name=index_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/supertramp/repos/marqo/venv/lib/python3.11/site-packages/marqo/_httprequests.py", line 75, in send_request
return self._validate(response)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/supertramp/repos/marqo/venv/lib/python3.11/site-packages/marqo/_httprequests.py", line 144, in _validate
convert_to_marqo_error_and_raise(response=request, err=err)
File "/Users/supertramp/repos/marqo/venv/lib/python3.11/site-packages/marqo/_httprequests.py", line 158, in convert_to_marqo_error_and_raise
raise MarqoWebError(message=response_msg, code=code, error_type=error_type,
marqo.errors.MarqoWebError: MarqoWebError: MarqoWebError Error message: {'message': "Marqo encountered an unexpected internal error.\nPlease create an issue on Marqo's GitHub repo (https://github.com/marqo-ai/marqo/issues) if this problem persists.", 'code': None, 'type': None, 'link': ''}
status_code: 500, type: None, code: None, link:

  • OS: MacOS 14.4.1 Sonoma
@supertramp01 supertramp01 added the bug Something isn't working label May 4, 2024
@farshidz
Copy link
Collaborator

farshidz commented May 6, 2024

Hi @supertramp01 . These are your client logs. Could you please post your Marqo logs (printed out by the Marqo container) so we can investigate this better?

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

2 participants