GeoNode / QGISGeoNodePlugin

A QGIS plugin that provides integration with GeoNode
https://geonode.org/QGISGeoNodePlugin/
GNU General Public License v3.0
11 stars 10 forks source link

Loading of GeoNode ressources not possible #268

Open gannebamm opened 3 months ago

gannebamm commented 3 months ago

Expected Behavior:

If I connect to a stable GeoNode version with the QGIS plugin, I will get a list of resources and options to load them (wms/wfs). By clicking wfs, the layer is loaded as a QGIS layer.

Actual Behaviour:

The list gets created, but clicking any of the options (wms/wfs) will result in an error: grafik

Additional Information:

The stacktrace lists an error with _parse_dataset_detail function and raw_dataset.get("metadata_author", {}).get("username", "")

2024-03-06T12:54:02     WARNING    Traceback (most recent call last):
              File "C:\Users/-----/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis_geonode\apiclient\geonode_v3.py", line 159, in handle_dataset_detail
              dataset = self._parse_dataset_detail(
              File "C:\Users/-----/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis_geonode\apiclient\geonode_v3.py", line 405, in _parse_dataset_detail
              metadata_author=raw_dataset.get("metadata_author", {}).get("username", ""),
             AttributeError: 'list' object has no attribute 'get'
cedricroy commented 3 weeks ago

Hi Florian, Have you solved this issue? I have the same issue.

gannebamm commented 2 weeks ago

Not yet. We are waiting for funding.