Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status "Internal server error." when translating .srt file with single space wrapped in html <i> </i> #44

Open
polarbearing opened this issue Mar 6, 2025 · 0 comments

Comments

@polarbearing
Copy link

When translating .srt files with some html markup for italics, I get status "Internal server error." while the file upload still gives HTTP code was 200.

The upload request returns a document_id and document_key, however when checking the status of the translation, it responds:
{"document_id":"4A7977F8FCF75CCD30FF8350E4F2E6A4","status":"error","error_message":"Internal server error.","message":"Internal server error."}

The offending construct were single spaces wrapped in html like previous word<i> </i>next word

Test .srt file:

1
00:07:04,880 --> 00:07:08,320
There is some pointless html tagging around a single space<i> </i>here.

2
00:07:15,520 --> 00:07:16,720
This <i>Example</i> works fine.

When I remove the tags in statement 1 it works fine:
{"document_id":"BD19DE252546E8FE610A3E74A285D2AA","status":"done","billed_characters":92}

1
00:07:04,880 --> 00:07:08,320
Hier gibt es einige sinnlose HTML-Tags um 
ein einzelnes Leerzeichen herum. 

2
00:07:15,520 --> 00:07:16,720
Dieses <i>Beispiel </i> funktioniert gut 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant