[Qgis-user] Plugins repository unavailable for 2.18 on OSX (again)

Evan Applegate evandapplegate at gmail.com
Mon Jan 14 16:07:33 PST 2019


Exact same issue as back in May 2018, official plugin repository for QGIS
2.18 on OSX throws an SSL error and won't connect:
http://osgeo-org.1560.x6.nabble.com/Plugins-repository-unavailable-for-2-18-tc5365597.html

Per Richard Duivenvoorde who fixed it last time, running the following in
the python console: 

from qgis.PyQt.QtNetwork import QNetworkRequest 
from qgis.PyQt.QtCore import * 

def handle(reply): 
    print '' 
    print reply.url() 
    print reply.attribute(QNetworkRequest.HttpStatusCodeAttribute) 
    print reply.attribute(QNetworkRequest.HttpReasonPhraseAttribute) 
    print reply.error() 

def sslproblem(reply): 
    print 'ssl problem' 
    print reply 

def test(): 
    nam = QgsNetworkAccessManager.instance() 
    nam.finished.connect(handle) 
    nam.sslErrors.connect(sslproblem) 
    url='https://plugins.qgis.org/plugins/plugins.xml/?qgis=2.18'
    nam.get(QNetworkRequest(QUrl(url))) 

test() 


yields: 

PyQt4.QtCore.QUrl(u'https://plugins.qgis.org/plugins/plugins.xml/?qgis=2.18') 
None 
None 
6 

Anyone else on 2.18 have this issue?



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html


More information about the Qgis-user mailing list