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

Text array is not working #66

Closed
0zd0 opened this issue Mar 19, 2025 · 4 comments
Closed

Text array is not working #66

0zd0 opened this issue Mar 19, 2025 · 4 comments

Comments

@0zd0
Copy link

0zd0 commented Mar 19, 2025

Error Description.
Text array is not working

Replay
Steps to reproduce the behavior:

  1. simulate the query with the array of texts

Image

Expected Behavior
Translated Text Array

Additional Context
You're doing x-www-form-erlencoded for some reason, when the deepl documentation explicitly says application/json

@0zd0
Copy link
Author

0zd0 commented Mar 19, 2025

Worked yesterday, apparently they changed something on the server, just great, thanks Deepl

@krisloekkegaard
Copy link

Seeing the same issue. Our integration tests started failing because we're getting translations back as a single TextResult object with a concatenated comma-separated string containing all the translations, rather than as an array of TextResult objects each with a single translation corresponding to an item from the string array input.

We made no changes to our code nor did we upgrade the deepl-node package. We're on version 1.16.0. I've tried with the latest version as well, currently 1.17.3, but I get the same issue.

@0zd0
Copy link
Author

0zd0 commented Mar 19, 2025

@krisloekkegaard These are changes on their server, you will have to make your own simple function

@daniel-jones-dev
Copy link
Member

daniel-jones-dev commented Mar 20, 2025

Hi @0zd0 and @krisloekkegaard, thank you for the reports. This was caused by an incorrect change we made in our API; we've rolled back that change already so this behaviour should be fixed.

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

3 participants