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

Handling future GeoNode version 5 #278

Open
Gpetrak opened this issue Oct 31, 2024 · 4 comments
Open

Handling future GeoNode version 5 #278

Gpetrak opened this issue Oct 31, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Gpetrak
Copy link
Contributor

Gpetrak commented Oct 31, 2024

Currently the plugin cannot not recognize a version above 4, (e.g 5.0.0) and if a version is above 4 it uses the old API client: GeonodeLegacyApiClient

Thus, if we define a connection on GeoNode development demo which is under the version 5.0.0, while the Test Connection functionality works, it raises a 404 error when we try to search and load the available layers:

Error: Error transferring https://development.demo.geonode.org/api/layers/?limit=10&offset=0&type__in=vector&type__in=raster&order_by=title - server replied: Not Found

Screenshot from 2024-10-31 13-14-45

We need to update the apiclient.init.py file in order to use the same client (at least for now) as for the versions > 4.2 and check if it works.

@Gpetrak Gpetrak added the enhancement New feature or request label Oct 31, 2024
@Gpetrak Gpetrak self-assigned this Oct 31, 2024
@giohappy giohappy added this to the 3.0.0 milestone Nov 7, 2024
@smallvalthoss
Copy link

hey @Gpetrak, do you know what version stable.demo.geonode.org is? It seems I can connect to it with the qgis plugin, but using 4.4.x doesn't seem to work on my end when I host it.

@Gpetrak
Copy link
Contributor Author

Gpetrak commented Nov 20, 2024

Hi @smallvalthoss . The GeoNode stable demo, uses the version: 4.4.0.dev0. What is the error / problem that you have with the plugin ?

@smallvalthoss
Copy link

Hey @Gpetrak, thanks for the reply. Here is what I'm having trouble with:

Uploads:

getting url error:
image

note that this does upload successfully, but it gives me this error. Not certain why.

WFS/WMS

Under Layer -> Data Source Manager -> Geonode Plugin, I am able to search the layers (awesome). However, when i click load layer via wms/wfs, I get the following stack trace:

Traceback (most recent call last): File "C:\Users/ostrandw7276/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/ostrandw7276/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'

@Gpetrak
Copy link
Contributor Author

Gpetrak commented Nov 22, 2024

Hi @smallvalthoss . Both errors have been fixed and the master branch has been updated. We will release a new version soon, which will be available through the QGIS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants