DeepL free API translation not working (forbidden)

Created on 31 March 2025, 17 days ago

Problem/Motivation

The DeepL (free) backend does not seem to work properly.
I get
"Translation API error: Client error: `POST https://api-free.deepl.com/v2/translate` resulted in a `403 Forbidden` response"
when trying to add a translation.

Steps to reproduce

Install auto_translation
Configure to use DeepL backend; a token seems to be pre-filled and it cannot be removed/left empty
Do not check the "Use DeepL Pro API" checkbox
Add a translation for a node.
Get error mentioned above.

๐Ÿ› Bug report
Status

Active

Version

1.4

Component

Code

Created by

๐Ÿ‡ฆ๐Ÿ‡นAustria tgoeg

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @tgoeg
  • ๐Ÿ‡ฎ๐Ÿ‡นItaly bigbabert Milano, Italy

    Hi @tgoeg,

    please read the flag description, if you check the flag then you have to configure API Pro on DeepL, if you leave the flag unchecked you need to fill the API Key with one for Free plan from DeepL.
    About to Configure to use DeepL backend; a token seems to be pre-filled and it cannot be removed/left empty; maybe to you have some settings with auto_translation_api_key value in your settings.php?

    This will not be fixed since it is working as expected.

    BR

  • ๐Ÿ‡ฆ๐Ÿ‡นAustria tgoeg

    Below "API Key" there's only
    "Geb Sie Ihren API-Schlรผssen ein." (which I am happy to translate correctly if the English string is final, German is my mother tongue).

    The original "Enter your API key." does not state you have to do so for the free tier as well, either.
    It seemed to me like you only need to enter one if you the check the box above. This could be made clearer.

    I'd suggest something like
    Enter your DeepL Free, Pro or DeepL for Business API key.

    And I'd also suggest to change the string below the check box:
    If checked, the DeepL Pro API will be used. If unchecked, the free version of DeepL will be used.
    to
    If checked, the DeepL Pro API will be used. If unchecked, the free version of DeepL will be used. You need an API key in either case.

  • ๐Ÿ‡ฎ๐Ÿ‡นItaly bigbabert Milano, Italy

    i'll improve english strings in next release, thx

Production build 0.71.5 2024