[Qgis-user] Plugins repository unavailable for 2.18? On MacOS

Richard Duivenvoorde rdmailings at duif.net
Sat May 26 12:46:30 PDT 2018


On 26-05-18 20:35, Corda wrote:
> I have exactly the same problem since last week or so, and haven't been able
> to solve it yet. I can see the plugins at the url in a webpage in Safari,
> but the repository is unavailable in the plugin manager for QGIS 2.18.
> I don't really want to install 3.x just yet. Has reinstalling 2.18 solved
> the problem for anyone?

So this appears to be a Mac only problem?
Only thing that has changed is that Cloudflare is now in the middle...
Could it be that a mac is caching the certificates or so?


Can somebody with a mac (and having this problem) try to run the
following in a file 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()




With me this results in:

PyQt4.QtCore.QUrl(u'https://plugins.qgis.org/plugins/plugins.xml/?qgis=2.18')
200
OK
0

Please report back if different.

Regards,

Richard Duivenvoorde



More information about the Qgis-user mailing list