deepl-python icon indicating copy to clipboard operation
deepl-python copied to clipboard

[BUG] - DeepL is not putting content in their original place, it's putting inside an HTML tag (it shouldn't)

Open patrickReiis opened this issue 1 year ago • 2 comments

I am using the free tier, but it happens with the paid tier as well.

Steps to reproduce in Postman: 1 - Copy and paste the following endpoint, with a method of POST:

https://api-free.deepl.com/v2/translate

2 - Put the body as JSON, and copy and paste the following:

{"text": ["<span class=\"recipients-inline\"><span class=\"h-card\"><a class=\"u-url mention\" href=\"http://localhost:4036/@npub1vxd0dfst8ljvwva2egrpc53ve8ru78v8aaxfpravchkexmfmmu3sqnrs50\" rel=\"ugc\">@<span>npub1vxd</span></a></span> </span>Notícia como essa me embrulha o estômago."], "target_lang": "EN", "split_sentences": "1", "tag_handling": "html"}

3 - Click Send

As you'll see in the response, the word News is inside the <span> tag, but it shouldn't be.

This is a big deal because it hides the word News in the frontend UI.

Response returned: postman-response.json

patrickReiis avatar Oct 16 '24 13:10 patrickReiis

I think this may be the root of the issue I am having, as well. I just opened a ticket earlier on our DeepL pro account but seems like this could be what's happening. My users are having lots of issues with this bug lately.

See here: https://spinster.xyz/@mk/posts/AtaNiQs8vSZqz35nUG

Any plan from the team to resolve this?

marykatefain avatar Apr 29 '25 15:04 marykatefain

I have also created the same issue here, some months ago, didn't get a reply:

https://github.com/DeepLcom/deepl-api-issues/issues/32

patrickReiis avatar Apr 29 '25 23:04 patrickReiis