You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following error message: Authorization failure, check auth_key
and I think it's because of the absence of insecure option because when I use DeepL API with curl command I get these results:
without insecure option (KO):
curl.exe -X POST "https://api-free.deepl.com/v2/translate" --header "Authorization: DeepL-Auth-Key $deepl_key" --data-urlencode "text=$text" --data-urlencode "target_lang=FR"
curl: (60) SSL certificate problem: self signed certificate in certificate chain
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
with insecure option (OK):
curl.exe -X --insecure POST "https://api-free.deepl.com/v2/translate" --header "Authorization: DeepL-Auth-Key $deepl_key" --data-urlencode "text=$text" --data-urlencode "target_lang=FR"
{"translations":[{"detected_source_language":"EN","text":"Bonjour le monde"}]}
The text was updated successfully, but these errors were encountered:
JuGuSm
changed the title
Support insecure option
Authorization failure (insecure option?)
Apr 11, 2024
Hi,
I get the following error message:
Authorization failure, check auth_key
and I think it's because of the absence of insecure option because when I use DeepL API with curl command I get these results:
without insecure option (KO):
with insecure option (OK):
The text was updated successfully, but these errors were encountered: