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 using commitWithin parameter #62

Merged
merged 1 commit into from Nov 1, 2012
Merged

Error when using commitWithin parameter #62

merged 1 commit into from Nov 1, 2012

Conversation

pankajkgarg
Copy link
Contributor

sunburnt throws an error, when commitWithin parameter is provided, while adding a new document.

For example

import sunburnt
si = sunburnt.SolrInterface("http://localhost:8983/solr/")
si.add({"id": 432, "text": "Hello World!"}, commitWithin=10000)

The error message thrown is

SolrError: ({'transfer-encoding': 'chunked', 'status': '400', 'content-type': 'application/xml; charset=UTF-8'}, '\n\n4000For input string: "10000.0"400\n\n')

This is happening because commitWithin parameter is converted to float before the request is sent.

tow added a commit that referenced this pull request Nov 1, 2012
Error when using commitWithin parameter
@tow tow merged commit 0556bed into tow:master Nov 1, 2012
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

Successfully merging this pull request may close these issues.

None yet

2 participants