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

Error when running tests with Solr 4.3.1 #90

Closed
anti-social opened this issue Jul 17, 2013 · 7 comments
Closed

Error when running tests with Solr 4.3.1 #90

anti-social opened this issue Jul 17, 2013 · 7 comments

Comments

@anti-social
Copy link
Contributor

$ nosetests tests                                      
..........................E...........
======================================================================
ERROR: test_extract (tests.SolrTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/alexk/projects/pysolr/tests/client.py", line 425, in test_extract
    extracted = self.solr.extract(fake_f)
  File "/home/alexk/projects/pysolr/pysolr.py", line 871, in extract
    files={'file': (file_obj.name, file_obj)})
  File "/home/alexk/projects/pysolr/pysolr.py", line 296, in _send_request
    raise SolrError(error_message)
SolrError: [Reason: None]
<response><lst name="responseHeader"><int name="status">400</int><int name="QTime">10</int></lst><lst name="error"><str name="msg">Document is missing mandatory uniqueKey field: id</str><int name="code">400</int></ls$
></response>
@toastdriven
Copy link
Collaborator

I don't have an answer on this one. @acdha did the content extraction bits & I still haven't gotten it setup. :/

@sicarrots
Copy link

I have the same problem on 4.4 and 4.5

@anti-social
Copy link
Contributor Author

With Solr 4.6 all tests are passed. So may want to close this issue?

@sicarrots
Copy link

@anti-social the latest stable version is 4.5.1, do you meant version compiled from sources?

@anti-social
Copy link
Contributor Author

Yes, I compiled branch_4x.

acdha added a commit to acdha/pysolr that referenced this issue Nov 12, 2013
Once django-haystack#90 is fixed we can
re-enable this test
tongwang added a commit to tongwang/pysolr that referenced this issue Dec 6, 2013
…ed test solr sever from 4.1.0 to 4.6.0. All tests pass
@tongwang
Copy link
Contributor

tongwang commented Dec 6, 2013

Interestingly, this issue is caused by the wrong Content-type header.

@galuszkak
Copy link

This issue should be closed as I believe it was fixed in #104 ;).

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

6 participants