-
Notifications
You must be signed in to change notification settings - Fork 85
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
MeilisearchCommunication Error SSL: WRONG_VERSION_NUMBER #958
Comments
This is unlikely to be related to the SDK itself. Are you behind a proxy? |
Also, I don't think this is the problem because I would expect a different error message, but if you haven't already try |
I tried, same issue! |
Can you provide your Dockerfile and how you are running it? I just ran a test with python:3.12-bookworm and didn't have any issue. |
I had the same problem.
However, when I try to connect to Python on the Ubuntu Docker server, I get an ssl.1000 error. The code I wrote client = meilisearch.Client( print(client.get_indexes())` Error history During handling of the above exception, another exception occurred: Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): |
Do you get the same error if you use curl? Using a self signed certificate could be the issue. Does this make a difference (note, don’t do this on production)? Make sure ca-certificates is installed sudo cp /path/to/certifi/cacert.pem /etc/ssl/certs/
sudo update-ca-certificates |
Description
I use a dockerized version of meilisearch. When using the hostname to connect, it fails.
Expected behavior
Supposed to connect.
Current behavior
Getting an SSL WRONG VERSION
Screenshots or Logs
File "/opt/.venv/lib/python3.12/site-packages/meilisearch/_httprequests.py", line 64, in send_request
raise MeilisearchCommunicationError(str(err)) from err
meilisearch.errors.MeilisearchCommunicationError: MeilisearchCommunicationError, HTTPSConnectionPool(host='meilisearch', port=7700): Max retries exceeded with url: /indexes (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1000)')))
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: