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
{{ message }}
Repository navigation
ssl.SSLContext() without protocol argument is deprecated #230
PYthonWarning
2025-01-19T17:51:38 WARNING
warning:%AppData%/QGIS/QGIS3\profiles\default/python/plugins\Mergin\mergin\client.py:128:
DeprecationWarning: ssl.SSLContext() without protocol argument is
deprecated.
ctx = ssl.SSLContext()
traceback: File "", line 1, in
Steps to reproduce the issue
Install QGIS and Install Mergin Plugin and Sync a Project
Versions
QGIS-Version | 3.40.2-Bratislava
-- | --
Solution
This should solve the Problem
cafile = os.path.join(this_dir, "cert.pem")
if not os.path.exists(cafile):
raise Exception("missing " + cafile)
ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
ctx.load_verify_locations(cafile)
Must be put in "plugins\Mergin\mergin\client.py" line 128
Activity
CeliaBuira commentedon Feb 12, 2025
Thanks for the bug report, this is in our underlying python API client we use to talk to Mergin Maps services. I'll transfer the issue