You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "beamliu (Jira)" <ji...@apache.org> on 2022/04/05 03:55:00 UTC
[jira] [Created] (TIKA-3713) exception log is missing when server 500
beamliu created TIKA-3713:
-----------------------------
Summary: exception log is missing when server 500
Key: TIKA-3713
URL: https://issues.apache.org/jira/browse/TIKA-3713
Project: Tika
Issue Type: Bug
Components: server
Affects Versions: 2.3.0
Environment: local tika server using tika-config.xml
{code:java}
<fetchers>
<fetcher class="org.apache.tika.pipes.fetcher.fs.FileSystemFetcher">
<params>
<name>minio-data</name>
<basePath>/root/emop/minio-data</basePath>
</params>
</fetcher>
</fetchers> {code}
then call a rest
{code:java}
curl --verbose -X PUT http://localhost:9998/detect/stream -H "fetcherName: minio-data" -H "fetchKey: none-existing.docx" {code}
Reporter: beamliu
Attachments: image-2022-04-05-11-42-45-082.png, image-2022-04-05-11-53-03-961.png
Produce: call a rest which will produce an exception, the fetchKey give a not existing file name
{code:java}
curl --verbose -X PUT http://localhost:9998/detect/stream -H "fetcherName: minio-data" -H "fetchKey: none-existing.docx" {code}
!image-2022-04-05-11-37-24-080.png!
In the console, only one INFO output, no exception neither stacktrace
!image-2022-04-05-11-42-45-082.png!
The actual exception should be "java.nio.file.NoSuchFileException: /root/emop/minio-data/none-existing.docx"
[https://github.com/apache/tika/compare/main...BeamLiu:patch-1]
!image-2022-04-05-11-53-03-961.png!
Pay attention, same as other rest endpoints, similar problem.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)