Ticket filled https://issues.qgis.org/issues/17866
> Le 16 janv. 2018 à 09:18, David Marteau a écrit :
>
> Hi Alessandro
>
> This is a weird bug, I have also found that once the first request failed,
> others requests succeed wathever the url or the provider is (tried with
Hi Alessandro
This is a weird bug, I have also found that once the first request failed,
others requests succeed wathever the url or the provider is (tried with wcs and
wms).
When failing, looking on what append wms server side when we found that no
request is sent.
I fill a ticket on this.
On Mon, Jan 15, 2018 at 6:27 PM, David Marteau wrote:
> Here is a test script that illustrate the problem a bit further: if we run
> createProvider() twice, the first time
> the getCapbabilities will fail with a timeout. The second time, it will
> succeed.
>
> If you run this
Here is a test script that illustrate the problem a bit further: if we run
createProvider() twice, the first time
the getCapbabilities will fail with a timeout. The second time, it will
succeed.
If you run this script, clear the Qgis network cache between two invocations.
>
>
>
> Hi David,
>
> You need an event loop to use a Q(qg)NetworkAccessManager, it's asynchronous.
>
Hi Alessandro,
Yes, we know that (see the second code in previous mail ): the
QgsNetworkAccessManager works perfeclty in python, this is not the point.
The point is: trying to
Forgot to mention that some time ago I wrote a python class to handle all
this boring stuff for QGIS 2:
https://github.com/boundlessgeo/lib-qgis-commons/blob/master/qgiscommons2/network/networkaccessmanager.py
On Mon, Jan 15, 2018 at 2:48 PM, Alessandro Pasotti
wrote:
> On
On Mon, Jan 15, 2018 at 12:48 PM, David Marteau wrote:
> Hi,
>
> We hit a very nasty problem when trying to load projects with wms layer
> defined from python: loading capabilities fail with timeout error, thus
> preventing creating any project or layer from python.
>
> The
Hi,
We hit a very nasty problem when trying to load projects with wms layer defined
from python: loading capabilities fail with timeout error, thus preventing
creating any project or layer from python.
The problem has been verified in Debian, Ubuntu and fresh OSX build from master
branch.
We