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

ssl.SSLError: [SSL: TLSV1_UNRECOGNIZED_NAME] tlsv1 unrecognized name (_ssl.c:1091) #381

Open
kishoreyakkanti opened this issue Dec 29, 2023 · 5 comments

Comments

@kishoreyakkanti
Copy link

Hi,

Function to translate using argostranslate

def trans_argos(text):
url = "https://translate.argosopentech.com/translate"

payload = {
"q": text,
"source": "auto",
"target": "en"
}
headers = {
"Content-Type": "application/json"
}

response = requests.post(url, data=json.dumps(payload), headers=headers)

return response.json()['translatedText']

When i am using this URL I am facing the following error
requests.exceptions.SSLError: HTTPSConnectionPool(host='translate.argosopentech.com', port=443): Max retries exceeded with url: /translate (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1091)')))

Please help.

Thanks

@sohang3112
Copy link

https://translate.argosopentech.com/ site seems to have some SSL/TLS misconfiguration which is causing this issue. @PJ-Finlay can you check the issue with the website?

$ curl https://translate.argosopentech.com/
schannel: next InitializeSecurityContext failed: SEC_E_ILLEGAL_MESSAGE (0x80090326) - This error usually occurs when a fatal SSL/TLS alert is received (e.g. handshake failed).

@PJ-Finlay
Copy link
Collaborator

I'm guessing this is an issue with the Cloudfate links here:
https://github.com/argosopentech/argos-train/blob/master/data-index.json

@sohang3112
Copy link

@PJ-Finlay Can you please clarify what are "Cloudfate links"? I searched this repo, but I couldn't find the word "Cloudfate" anywhere. The links in https://github.com/argosopentech/argos-train/blob/master/data-index.json pointed to various .argosdata files in https://data.argosopentech.com/ , but that doesn't seem to have anything called "Cloudfate".

@sohang3112
Copy link

I'm guessing this is an issue with the Cloudfate links here: https://github.com/argosopentech/argos-train/blob/master/data-index.json

@PJ-Finlay please clarify what Cloudfate links you're talking about, and how they relate to the SSL error in the website https://translate.argosopentech.com/

@pierotofy
Copy link
Contributor

Try hosting your own instance: https://github.com/LibreTranslate/LibreTranslate

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

4 participants