Skip to content

Bad request, message: Unsupported language pair: 'ks' => 'sk'. #79

Closed

Description

@dsgrillo

Hello,

We are not providing the source_lang.

Request details:

{"target_lang":"sk","text":["\u062f\u06cc\u0648\u0627\u0646 \u063a\u0627\u0644\u0628 | kolektiv"],"preserve_formatting":"1","tag_handling":"html"}

The above request raises the exception DeepL\DeepLException with the message="Bad request, message: Unsupported language pair: 'ks' => 'sk'.".

I looked in the documentation for a list of exceptions that could be thrown, but didn't find anything related to this.

Can you please confirm if this is an issue on your end?
Thanks!

Activity

  1. JanEbbing commented on Jan 12, 2026

    @JanEbbing
    Contributor

    I can confirm this is an issue on our end, it seems the language detection detects a language we do not support, this should not happen. I'm checking with our research team how we can fix this

  2. JanEbbing commented on Jan 13, 2026

    @JanEbbing
    Contributor

    Our research team has fixed this in their codebase, along with a test so that this category of issue should no longer occur once that is deployed (sometime this week). I'll give an update here when that is the case.

  3. JanEbbing commented on Jan 23, 2026

    @JanEbbing
    Contributor

    This has been fixed in production :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions