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

Unittest test_warc (test_enhance_warc.Test_enhance_warc) fails due to bug in pysolr #154

Open
opensemanticsearch opened this issue Dec 27, 2021 · 0 comments

Comments

@opensemanticsearch
Copy link
Owner

Unittest fails because it can not delete the indexed document after the test:

======================================================================
ERROR: test_warc (test_enhance_warc.Test_enhance_warc)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/opensemanticetl/test_enhance_warc.py", line 31, in test_warc
    etl_delete.delete(contained_doc_id)
  File "/usr/lib/python3/dist-packages/opensemanticetl/etl_delete.py", line 60, in delete
    self.connector.delete(parameters=self.config, docid=uri)
  File "/usr/lib/python3/dist-packages/opensemanticetl/export_solr.py", line 351, in delete
    result = solr.delete(id=docid)
  File "/usr/lib/python3/dist-packages/pysolr.py", line 960, in delete
    return self._update(m, commit=commit, softCommit=softCommit, waitFlush=waitFlush, waitSearcher=waitSearcher, handler=handler)
  File "/usr/lib/python3/dist-packages/pysolr.py", line 500, in _update
    return self._send_request('post', path, message, {'Content-type': 'text/xml; charset=utf-8'})
  File "/usr/lib/python3/dist-packages/pysolr.py", line 412, in _send_request
    raise SolrError(error_message % (resp.status_code, solr_message))
pysolr.SolrError: Solr responded with an error (HTTP 400): [Reason: Unexpected character ':' (code 58) excepted space, or '>' or "/>"
 at [row,col {unknown-source}]: [1,41]]

Reason: django-haystack/pysolr#368

Seems we have to wait for new release in python repo: django-haystack/pysolr#373

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

1 participant