Bug report #22052
Bad error message on WFS connection fail
|Category:||Web Services clients/WFS|
|Affected QGIS version:||3.4.3||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||29866|
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.
#1 Updated by Jonathan Moules about 2 years ago
You get a bad message if you request the wrong type of service.
You'll get back an exception:
"<ServiceException code="InvalidFormat">Can't recognize service requested.</ServiceException>"
but QGIS represents this as:
"Service contains no layers" - which is less useful and certainly less correct than passing on the exception message