chrismattmann / tika-python

Tika-Python is a Python binding to the Apache Tika™ REST services allowing Tika to be called natively in the Python community.
Apache License 2.0
1.49k stars 234 forks source link

Running server API on localhost #59

Closed imclaren closed 9 years ago

imclaren commented 9 years ago

If we run the tika rest server on localhost, a call such as the following will not try to use the tika rest server, but will instead attempt to download the tika jar file from http://search.maven.org ...:

parser.from_buffer(fileString, 'http://localhost:9998/tika')

The following works as expected (i.e. accesses the tika rest server on localhost):

parser.from_buffer(fileString, 'http://127.0.0.1:9998/tika')

I recommend that you either update the documentation to make this difference clear, or update the code to attempt to call the rest server on localhost before falling back to downloading the tika jar file.

Thanks!

chrismattmann commented 9 years ago

thanks @imclaren I'll take a shot at fixing this.

chrismattmann commented 9 years ago

Can you pull https://github.com/chrismattmann/tika-python/commit/df1411f0d41bc601fa493043b4f92d62865d1990 @imclaren and see if this fixes it for you? Thanks for the report!

imclaren commented 9 years ago

Thanks for updating the library.  So sorry for my very tardy response.  I wanted to wait until I had the chance to pull and test the new version.  As soon as I have done so I will get back to you.  But thanks for providing and supporting this library and for your rapid response to my feature request!

— +61 417 059 214

On Sat, Aug 15, 2015 at 5:36 PM, Chris Mattmann notifications@github.com wrote:

Can you pull https://github.com/chrismattmann/tika-python/commit/df1411f0d41bc601fa493043b4f92d62865d1990 @imclaren and see if this fixes it for you? Thanks for the report!

Reply to this email directly or view it on GitHub: https://github.com/chrismattmann/tika-python/issues/59#issuecomment-131302620