You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Describe the bug When attempting to translate an XLIFF file using the DeepL API with the provided code, the process fails, returning the error message:
{"document_id":"943F2A850142C982DB783AFB069BC892","status":"error","error_message":"Failed to open the uploaded document.","message":"Failed to open the uploaded document."}
To Reproduce
Steps to reproduce the behavior:
Prepare an XLIFF file (input.xlf) with the following content:
translateXLF();
3. Execute the script. node index.js
Observe the error message in the console output.
Request to DeepL API POST /v2/document
Request details: target_lang=es&source_lang=en&formality=default
DeepL API response POST /v2/document 200
Response details:, content = {"document_id":"XXX","document_key":"YYY"}
Request to DeepL API POST /v2/document/XXX
Request details: document_key=YYY
DeepL API response POST /v2/document/XXX 200
Response details:, content = {"document_id":"XXX","status":"error","error_message":"Failed to open the uploaded document.","message":"Failed to open the uploaded document."}
Desktop (please complete the following information):
OS: Windows 11
Browser Not applicable
Version: Node.js 22.3.0
Additional context
The error message "Failed to open the uploaded document" suggests that the DeepL API is unable to process the provided XLIFF file. Using the same script i'm able to translate .docx and .txt files by replacing the input file.
The text was updated successfully, but these errors were encountered:
Describe the bug
Describe the bug When attempting to translate an XLIFF file using the DeepL API with the provided code, the process fails, returning the error message:
{"document_id":"943F2A850142C982DB783AFB069BC892","status":"error","error_message":"Failed to open the uploaded document.","message":"Failed to open the uploaded document."}
To Reproduce
Steps to reproduce the behavior:
translateXLF();
3. Execute the script.
node index.js
Desktop (please complete the following information):
Additional context
The error message "Failed to open the uploaded document" suggests that the DeepL API is unable to process the provided XLIFF file. Using the same script i'm able to translate .docx and .txt files by replacing the input file.
The text was updated successfully, but these errors were encountered: