Comments (6)
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.
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.
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.
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.
@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.
@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)
- Wrong detection of source language HOT 2
- Ionic & Angular ReferenceError when initializing deepl.Translator HOT 2
- cause: Error: socket hang up when try to send many requests HOT 1
- Feature Request: Markdown Handling HOT 1
- The translation API returns an empty body in Cloudflare Workers. HOT 3
- downloadDocument() response is empty for PDFs HOT 1
- TypeError HOT 5
- XML tags with attributes change the order of the translation when tagHandling is XML but are OK when tagHandling is off HOT 5
- Uncaught TypeError: os.type is not a function HOT 5
- [tests] Jest may incorrectly detect open handles when running the tests
- Deepl Limitations - Timeout Errors during concurrent calls HOT 8
- SSL error using node 17+ HOT 4
- feature: translate a text to multiple Languages HOT 2
- Docs: `createGlossaryFromCsv` should be `createGlossaryWithCsv` HOT 1
- Axios proxy as URL HOT 1
- Update axios to latest version HOT 2
- 'ar' missing from CommonLanguageCode type HOT 4
- Translating HTML with English text to French adds HTML Tags and full sentence that is not in the input text HOT 1
- Circular dependency index.js ➜ parsing.js ➜ index.js HOT 4
- Translator Option 'serverUrl' is misleading HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepl-node.