question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DeepL Free Api fails with response Code 400

See original GitHub issue

Describe the bug

Using DeepL free API, fails with Online Translate with response code 400, with following settings

    "i18n-ally.translate.deepl.apiKey": "***:fx",
    "i18n-ally.translate.deepl.enableLog": true,
    "i18n-ally.translate.deepl.useFreeApiEntry": true,

Extension Version

v2.6.13 (since newer version are not working)

Framework/i18n package you are using

svelte-i18n

Extension Log Go to View -> Output -> i18n Ally, and paste the content below. You should mask any sensitive information

🐛 ERROR: Error: Request failed with status code 400
Error: Request failed with status code 400
    at createError (c:\Users\Alexander\.vscode-insiders\extensions\lokalise.i18n-ally-2.6.13\dist\extension.js:63042:15)
    at settle (c:\Users\Alexander\.vscode-insiders\extensions\lokalise.i18n-ally-2.6.13\dist\extension.js:94238:12)
    at IncomingMessage.handleStreamEnd (c:\Users\Alexander\.vscode-insiders\extensions\lokalise.i18n-ally-2.6.13\dist\extension.js:190885:11)
    at IncomingMessage.emit (events.js:327:22)
    at endReadableNT (internal/streams/readable.js:1327:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
antfucommented, Aug 12, 2021

Ah ok then. We could strip the second code when passing to deepl then. Thanks for investigating!

1reaction
alexanderniebuhrcommented, Aug 12, 2021

yeah… de -> en works… but de-DE -> en-GB does not work. Can you split these in code, since we do need to use full identifiers in our projects. Here the docs what is supported source and target languages: https://www.deepl.com/docs-api/translating-text/request/ Actually it should give back a api response, but that api response from deepl is not logged, maybe caused by an error thrown before logging

Read more comments on GitHub >

github_iconTop Results From Across the Web

DeepL API
The DeepL API provides programmatic access to DeepL's machine translation technology, making it possible to bring high quality translation capabilities ...
Read more >
400 Error despite working in Postman, possible reasons?
I am using the Deepl API, and when I run the request in Postman it is successful, however using it in my app...
Read more >
every time Error with DeepL API
I am getting the following error: “Fehler: DeepL Translator: Wrong endpoint. Use https://api-free.deepl.com”. Hope to get help here. Maybe also deepl ...
Read more >
textractor error while translating
I've been attempting to get DeepL working on Textractor and so I signed up for DeepL's 'free' API subscription plan. You need browser...
Read more >
DeepL: Text, Translate - Questetra Support
Translates using DeepL API v2. ... Error Example. AutomatedTask ApiResponse Status: 400; AutomatedTask UnexpectedResponseError: 400 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found