GeoNode / QGISGeoNodePlugin

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

Cannot connect to a remote geonode server #172

Closed geogeek11 closed 2 years ago

geogeek11 commented 3 years ago

I have tried following the user guide, and I've tried another geonode guide, but both of them encounter the same issue.

Please check below the settings that I have used to connect to a remote geonode server.

Screenshot from 2021-06-17 10-01-53

After clicking on Test connection, I get the web page below, then I click on authorize Screenshot from 2021-06-17 10-02-46

After that I get redirected to the web page below, this is where I got stuck in both guides : Screenshot from 2021-06-17 10-03-07

The QGIS_Geonode logs :

2021-06-17T09:59:16     INFO    previous_box: None
2021-06-17T10:04:07     INFO    About to start custom event loop...
2021-06-17T10:04:07     INFO    requested_url: http://10.16.1.192/api/v2/layers/?page=1&page_size=10
2021-06-17T10:04:07     INFO    http_status_code: 200
2021-06-17T10:04:07     INFO    qt_error: None
2021-06-17T10:04:07     INFO    Custom event loop ended, resuming...
2021-06-17T10:04:07     INFO    Inside finished. Result: True

The Python Stacktrace :

2021-06-17T10:04:07     WARNING    Traceback (most recent call last):
File "C:/Users/JAAFARI/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis_geonode\apiclient\apiv2.py", line 186, in handle_layer_list
self.network_fetcher_task.reply_content
File "C:/Users/JAAFARI/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis_geonode\apiclient\apiv2.py", line 155, in deserialize_response_contents
return json.loads(decoded_contents)
File "C:\PROGRA~1\QGIS3~1.16\apps\Python37\lib\json\__init__.py", line 348, in loads
return _default_decoder.decode(s)
File "C:\PROGRA~1\QGIS3~1.16\apps\Python37\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\PROGRA~1\QGIS3~1.16\apps\Python37\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I don't know if this is QGIS issue of qgis_geonode issue, any help or comment will be very helpful.

ricardogsilva commented 2 years ago

Thanks for reporting this @geogeek11

It is likely related to upstream GeoNode having changed their internal naming from layers to datasets.

We have taken a brief hiatus with the development of this plugin, but are now back to actively working on it, so this will be fixed in the coming days.

ricardogsilva commented 2 years ago

Related to #177