Comments (7)
I am getting text contents from Azure web server with below code
from tika import parser
text = parser.from_file(file)--file is doc file
I am getting below error
HTTPConnectionPool(host='localhost', port=9998): Max retries exceeded with url: /rmeta/text (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions',))
from tika-python.
Hi Frank @fysteven were you doing lots of parallel connections?
from tika-python.
Hi Chris @chrismattmann , the following snippet is how I iterated the file list.
It failed around the 8181st detection of file.
Looks like the Tika Server would establish a new connection for each detection, right?
for idx, val in enumerate(file_list):
file_name = os.path.basename(val)
file_type = detector.from_file(''.join([base_directory, val]))
from tika-python.
hi @fysteven any update here? Are you still seeing this?
from tika-python.
closing since I never heard back. Please re-open if you still see this.
from tika-python.
Has anyone found a fix to the issue?
from tika-python.
The issue usually relates to:
- Your firewall doesn't allow incoming connections on localhost to 9998
- You already had your own Tika server running on 9998 (not started by Python) and something gets messed up - you need to kill that Tika server, and then let Python start it for you.
from tika-python.
Related Issues (20)
- 'charmap' codec can't decode byte 0x81 in position 279: character maps to <undefined> HOT 2
- Parsed text for EPUB mixes in metadata strings by default, and contains image tags + alt-text if service parameter is set to text HOT 3
- Airgap Environment Setup is unable to start Tika server HOT 6
- Help installing package on macOS M2 Ventura HOT 3
- Can tika extract "Marked Content" (tagged PDFs)? HOT 2
- Hi i am getting the same error HOT 1
- Timeline for tika 2.8 support HOT 3
- Increase retry duration in client only mode HOT 1
- Inclusion of PDF Metadata Title field in Extracted Content HOT 1
- Need to run tika server manualy but previously it works without tika HOT 1
- unable to run tika HOT 1
- Unable to start Tika server HOT 1
- Permission denied HOT 1
- How to fix ReadTimeout: HTTPConnectionPool(host='localhost', port=9998): Read timed out. (read timeout=60) HOT 1
- Can this receive a io[bytes] type? HOT 1
- Tika server 2.9.1 Pdf tesseract Ocr
- SSRF vulnerability: CVE-2022-46364
- Is there any way to preserve temp files?
- Any way to set IOUtils.setByteArrayMaxOverride(VALUE).
- `DeprecationWarning: pkg_resources is deprecated as an API`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tika-python.