Overview
When calling PUT /document/pages, the confidence value is formatted incorrectly in the response: it uses a comma (,) instead of a period (.) as the decimal separator.
Symptoms
The response cannot be parsed correctly due to the incorrect JSON format.
Environment
DIS server all versions
Root Cause
The localization is configured incorrectly in DIS.
Resolution
When installing the DIS server with Docker Compose, make sure to configure the correct locale in the Dockerfile.
This issue occurred when the locale was changed to cs_CZ. To fix the problem, change the locale back to the default en_US:
# Set the locale
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8