Giter Site home page Giter Site logo

Comments (6)

daniel-jones-deepl avatar daniel-jones-deepl commented on May 27, 2024 1

Hi @kertom, with a DeepL Pro Advanced account you can use DeepL with CAT tools. You can find a list of CAT tools that support DeepL integration in DeepL Help Center.

This Node.js client library uses the DeepL API, which requires a DeepL API Free or DeepL API Pro account. If you have further account-related questions you are welcome to contact DeepL support as @mjpoo suggested.

from deepl-node.

mjpoo avatar mjpoo commented on May 27, 2024

Looking at index.ts it is odd if the serverUrl is being set tohttps://api-free.deepl.com if you are not using an API key that ends with :fx.

As a workaround you could try specifying the serverUrl in the options:

const authKey = "f63c02c5-f056-..."; // Replace with your key
const options = { serverUrl: 'https://api.deepl.com' };
const translator = new deepl.Translator(authKey, options);

from deepl-node.

daniel-jones-deepl avatar daniel-jones-deepl commented on May 27, 2024

Hi @kertom, thank for reporting this issue.
This problem is caused because the DeepL Pro Advanced plan does not include API access; for API access you need to use a DeepL API account.

The error message you received is a mistake on our end - we would instead expect an error message saying "This account is not allowed to access the API."

from deepl-node.

kertom avatar kertom commented on May 27, 2024

Hi, thank you very much for your responses! Following the suggestions of @mjpoo Mike , I have changed my code accordingly: https://codepen.io/thomas-kertsalis/pen/OJvZBxa?editors=1010
Now I get the error: AuthorizationError: Authorization failure, check auth_key, message: Wrong endpoint. Use https://api.deepl.com

@daniel-jones-deepl. What do you mean by that . After reading the following statement: “1. The Authentication Key for CAT tools is included in the DeepL Pro Advanced and DeepL Pro Ultimate subscription plans.” I made an annual subscription and I have already paid for it. What more do I have to do then? Do I have to buy the Deepl API Pro Ultimate package?

from deepl-node.

mjpoo avatar mjpoo commented on May 27, 2024

@kertom Hi Thomas, my suggested workaround was just a way to ensure that the correct serverUrl was being supplied (as the error message seemed to indicate this was the problem). It seems from @daniel-jones-deepl that the problem is caused by an account issue so he or DeepL support will be able to help you with that.

from deepl-node.

AEiosApp avatar AEiosApp commented on May 27, 2024

@daniel-jones-deepl I just had same confusing "on-boarding user trip" of jumping from Starter to Advanced account until I've found this bug report.

It's a pretty confusing user experience, I was never able to find page with API account on my own.

from deepl-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.