Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad error message on WFS connection fail #29866

Closed
qgib opened this issue May 12, 2019 · 1 comment
Closed

Bad error message on WFS connection fail #29866

qgib opened this issue May 12, 2019 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers

Comments

@qgib
Copy link
Contributor

qgib commented May 12, 2019

Author Name: Jonathan Moules (Jonathan Moules)
Original Redmine Issue: 22052
Affected QGIS version: 3.4.3
Redmine category:web_services_clients/wfs


I was trying to connect to a WFS but my firewall was blocking QGIS.

I expect QGIS to come back with a meaningful message, but instead I get back:
"unexpected[sic] end of file"

This is meaningless to an end user. It's also clearly erroring out at the wrong place - something should be catching the lack of connection well before it ever tries to parse the getcap.

@qgib
Copy link
Contributor Author

qgib commented May 13, 2019

Author Name: Jonathan Moules (Jonathan Moules)


You get a bad message if you request the wrong type of service.

Use this for WFS:
http://ags.kr-plzensky.cz/arcgis/services/UPD/Stod/MapServer/WmsServer

You'll get back an exception:
"Can't recognize service requested."

but QGIS represents this as:
"Service contains no layers" - which is less useful and certainly less correct than passing on the exception message

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers labels May 25, 2019
rouault added a commit to rouault/QGIS that referenced this issue May 25, 2020
qgis-bot pushed a commit to qgis-bot/QGIS that referenced this issue May 26, 2020
nyalldawson pushed a commit to nyalldawson/QGIS that referenced this issue May 26, 2020
nyalldawson pushed a commit that referenced this issue Jun 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers
Projects
None yet
Development

No branches or pull requests

1 participant