SSLError (EOF occurred in violation of protocol)¶
Problem¶
I try to upload a large file to the UbiOps API, e.g. a new environment or deployment revision or a file upload, and I see an error such as:
SSLError
HTTPSConnectionPool(host='api.ubiops.dev', port=443): Max retries exceeded with url: /v2.1/projects/project/environments/environment/revisions (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:2427)'))) (0)
Solution¶
The file you are trying to upload is likely too large. Try to make the file smaller, or reach out to our support team to discuss this limit.
To get a better error message, try to use a different Python version (<=3.9 or >=3.13), see https://github.com/urllib3/urllib3/issues/2733.