every time Error with DeepL API
-
Hi, trying to use the PlugIn with the DeepL API for a few days now. I have the DeepL API Pro Plan (not free) and have saved the AP key in the plug-in.
Every time I try to start the translation I get two messages and the process is aborted:– Warning: The translation process was aborted with 593 strings remaining.
– Error: DeepL Translator: Unknown error
At DeepL I cannot find any way to set anything in my account.
Do I have to adjust something in the source code of the plug-in?The page I need help with: [log in to see the link]
-
Hi there! I am experiencing the same issue with the 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 can help!
Sounds like the DeepL API has changed, but are these two reports the same issue?
One says “Unknown error” (paid account). The other says “Wrong endpoint” (free account).
Can you both please post the full HTTP request and response coming back from DeepL (minus your API key). Find this in your browser network inspector.
I no longer have a paid account with DeepL and was unaware there was any free API usage available, but I’ll take a look today.
Anforderungs-URL: https://api.deepl.com/v2/translate
Referrer-Richtlinie: strict-origin-when-cross-origin
Vorläufige Header werden angezeigt
Accept: application/json, text/javascript, */*; q=0.01
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://blog.dampferclub.net/
sec-ch-ua: ” Not A;Brand”;v=”99″, “Chromium”;v=”90″, “Microsoft Edge”;v=”90″
sec-ch-ua-mobile: ?1
User-Agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.72 Mobile Safari/537.36 Edg/90.0.818.42
X-CSRF-UAP-ADMIN-TOKEN: df6170ca5c
source_lang: EN
target_lang: DE
formality: less
preserve_formatting: 1
auth_key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
text: Use as rating image
text: Use as review image
text: Thank you for purchasing the Reviewer Plugin. Activate your copy in order to get support.
text: Activate Now
text: User ID
text: File ID
text: View Details
text: Knowledge Base
text: Get Help
text: Please register your Reviewer license before using the plugin. Go to Reviewer > License.
text: Reviewer API
text: The Reviewer plugin offers some API to integrate the reviewer functionalities easly inside your theme. The page below describe all available APIs you can use. Click on the each api for more informations.
text: Migration
text: The page allows you to manage backups of Reviewer plugin or to migrate user reviews from an other review service to Reviewer plugin. Before go ahead make a backup of your WordPress database.
text: Go
text: Reviewer Backups
text: No backup has been done yet
text: Unable to create the backup file. Check you have the privileges to write on reviewer/backup folder
text: Unable to verify the new backup file.
text: Success! Download Reviewer backup files from the list down below. Backup files are inside the reviewer/backup folder.
text: Unable upload backup file.
text: Please upload a Reviewer backup file made with plugin verison >= v.3.11.0
text: The backup was successfully imported.
text: Unable upload migration file of user reviews.
text: Please upload a json file that contains user reviews.
text: Your user reviews were imported successfully! (%d of %d)
text: The form was not submitted correctly!
text: Type of Action
text: Make a backup
text: It will create a JSON file with all data of Reviewer plugin.
text: Import a backup
text: It will import the selected JSON file that contains Reviewer plugin backup. %s The backup file have to be made with a Reviewer plugin version >= v.3.11.0 %s
text: Migrate
text: It will import the selected JSON file that contains user reviews from an other review service. Specifications about migration file are described inside documentation.
text: Backup/Migration JSON File
text: Skip this field if you chose the “Make a backup” action
text: Choose a Reviewer backup file or a migration json file
text: License
text: The Reviewer Plugin needs to be activated before using its functionality. This is been necessary for preventing illegal uses of the plugin. %sPlease check the documentation out for all details and possible problems about plugin license.%s
text: First Name
text: Last Name
text: Email
text: Envato Username
text: Your username for accessing to Envato Marktplace
text: Item Purchase Code
text: Insert the purchase code you download with the Reviewer plugin
text: Where can I find it?
text: Activate License
text: The collected data will not be redistributed.
text: The current copy of Reviewer plugin is active 🙂Anforderungs-URL: https://api.deepl.com/v2/translate
Anforderungsmethode: OPTIONS
Statuscode: 403
Remoteadresse: 172.65.205.118:443
Referrer-Richtlinie: strict-origin-when-cross-origin
access-control-allow-origin: *
content-length: 0
date: Fri, 23 Apr 2021 08:13:26 GMT
server: nginx
:authority: api.deepl.com
:method: OPTIONS
:path: /v2/translate
:scheme: https
accept: */*
accept-encoding: gzip, deflate, br
accept-language: de,de-DE;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6
access-control-request-headers: x-csrf-uap-admin-token
access-control-request-method: POST
origin: https://blog.dampferclub.net
referer: https://blog.dampferclub.net/
sec-fetch-dest: empty
sec-fetch-mode: cors
sec-fetch-site: cross-site
user-agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.72 Mobile Safari/537.36 Edg/90.0.818.42Hi Tim, i hope its the right.
- This reply was modified 3 years, 5 months ago by Rainer Phuripatwattanakul.
Thanks @phuripatwattanakul
The issue is the header
X-CSRF-UAP-ADMIN-TOKEN
being sent to DeepL. this invokes a pre-flight request, which for whatever reason DeepL is refusing.I am not an expert in these matters, but I know that my code sends no custom headers specifically to avoid this problem. Do you know what “UAP” is? Does it come from another plugin? Try disabling that plugin.
@maxwessely As your issue appears to be a separate problem, I’d be grateful if you would repost in a separate thread.
Hello Tim,
UAP is the Ultimate Affiliate Pro PlugIn. I stopped the PlugIn and a test made me see that your PlugIn works perfectly now.A little disappointed I am now, because I have to deactivate UAP.
But now can translate for now, which is more important for me at the moment.- This reply was modified 3 years, 5 months ago by Rainer Phuripatwattanakul.
I suggest you ask the UAP developers to stop adding their headers automatically to all Ajax requests. They’re probably doing this via a jQuery callback so I don’t think I can prevent it.
I’m marking this ticket as resolved as the issue is not directly with my plugin.
Yes, the ticket you can close. Thanks for your help.
- The topic ‘every time Error with DeepL API’ is closed to new replies.