Batch translation error reading the translations

Issue #1063 new
Herko van Bergen created an issue

Hello,

Calling a python script for Deepl produces this error. The trg html in /tmp contains a correct translation of the source html and the html structure remained exactly the same. So the Deepl side must be functioning. What could be done about the reading error?

I’m running Okapi on Linux amd64 5.8.0-3, Java version 11.0.10.

Rainbow log:

=== Start process
Input: /home/herko/Downloads/pdf2word/TestText.txt
BOM not found. Now trying to guess document encoding.
Command line: python3 /home/herko/deepl-py/deepl-okapi.py /tmp/~okapi-47_hft_15890776123450966273.html
Entries sent to translation = 2
ERROR: Error when processing a file.
Source='file:/tmp/~okapi-47_hft_15890776123450966273.html'
Target='file:/tmp/~okapi-47_hft_15890776123450966273.trg.html'
Error reading the translations.
Source='file:/tmp/~okapi-47_hft_15890776123450966273.html'
Target='file:/tmp/~okapi-47_hft_15890776123450966273.trg.html'

Error count: 1, Warning count: 0
Process duration: 0h 0m 3s 455ms
=== End process