Bug report #14595
WMS layer can be loaded but is not displayed
|Category:||Web Services clients/WMS|
|Affected QGIS version:||2.12.1||Regression?:||No|
|Operating System:||windows||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||22563|
I am trying to import WMS from geoserver link to QGIS 2.8.4 & the latest 2.12.1:
QGIS get the request and show the layers of the workspace, and also the get info. My problem is that the layer is not visible in the view.
It works fine with version 2.2:
#2 Updated by klaudio collaku over 4 years ago
sorry the correct link is
#3 Updated by Jukka Rahkonen over 4 years ago
That service seems to redirect GetCapabilities request and my QGIS 2.12 never gets GetCapabilities. I could test the service with OpenJUMP and it does get maps but only if the advertised GetMap URL is omitted. I hope that these findings help in debugging.
Response to the original GetCapabilities
HTTP/1.1 302 Found
Content-Type: text/html; charset=utf-8
Date: Fri, 01 Apr 2016 14:17:48 GMT
Set-Cookie: AspxAutoDetectCookieSupport=1; path=/
This reads GetCapabilities with a browser
This gets a map
#6 Updated by Jukka Rahkonen over 4 years ago
I installed version 2.14.1 with OSGeo4W and made a new trial.
- I can create connection and read GetCapabilities with URL http://geoportal.asig.gov.al/Services/host/host.ashx?url=http://localhost:8080/geoserver/asig/wms
- I can't read layers from the service. If I select for example layer "kufi_admin" and press the Add button I can see immediately a red warning in the project window:
Invalid Layer: Raster layer Provider is not valid (provider: wms, URI: contextualWMSLegend=0&crs=EPSG:4326&dpiMode=7&featureCount=10&format=image/png&layers=kufi_admin&styles=&url=http://geoportal.asig.gov.al/Services/host/host.ashx?url%3Dhttp://localhost:8080/geoserver/asig/wms
From to log of my local proxy I can see that QGIS is sending GetCapabilies and it receives the response which is evident because the layer list is created. However, pressing the Add-button does not lead to any http-request but the errow message that I posted above comes immediately. The message in the message log window is not very informative:
"Download of capabilities failed: Protocol "" is unknown"
#8 Updated by Jukka Rahkonen over 4 years ago
Works for my too now with the same QGIS version 2.14.1.
For my mind this means that the problem exists but it is fuzzy and it happens sometimes, in some environments, but sometimes not.
What I did was to change my proxy settings from company proxy into local proxy and back to company proxy. After these actions GetMaps work and I do not get any more the "Download of capabilities failed: Protocol "" is unknown" errors. I do not believe that this is a workaround that works for everybody but hopefully helps with debugging. What gets refreshed when proxy settings are changed?