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

solr errors don't appear in exceptions #17

Open
GoogleCodeExporter opened this issue Mar 13, 2015 · 0 comments
Open

solr errors don't appear in exceptions #17

GoogleCodeExporter opened this issue Mar 13, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Add a document with a field that's not in the solr schema. Solr writes back
with something like "HTTP Status 400 - ERROR:unknown field 'username'", but
the python exception looks like this:


Traceback (most recent call last):
  File "demo", line 27, in <module>
    solr.add(**dict((str(k), unicode(v)) for k,v in row.items()))
  File "solr/core.py", line 585, in add
  File "solr/core.py", line 667, in _update
  File "solr/core.py", line 732, in _post
  File "solr/core.py", line 975, in check_response_status
<class 'solr.core.SolrException'>: HTTP code=400, reason=Bad Request


It would be helpful to see the "unknown field 'username'" message right in
the exception text. A workaround is to tail the solr log in another window.

solrpy 0.9, solr 1.4.0, python 2.5.1

Original issue reported on code.google.com by drewpca on 28 Jan 2010 at 10:50

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