3liz / lizmap-web-client

Transfer a QGIS project on a server, Lizmap is providing the web interface to browse it
https://www.lizmap.com
Mozilla Public License 2.0
248 stars 141 forks source link

[Bug]: Dataviz charts are not rendered #4530

Closed andremano closed 2 weeks ago

andremano commented 2 weeks ago

What is the bug? (in English)

I have a plot defined in the Dataviz tab of Lizmap plugin in QGIS. When I try to render the plot in Lizmap client, nothing is displayed. Upon inspecting my web browsers developer tools this warning is raised:

image

The data is coming from a PostgreSQL materialized view (the Postgres instance is installed in the same server Lizmap client is). The other layers used by the project are regular Postgres tables and render as expected. In addition, I have the exact same project in another server, also using materialized views, and the plots render as supposed, so I am very puzzled at the 404 error message.

In QGIS Lizmap client, if I try to render a preview of the plot I get another message I don't understand, but might be relevant:

image

I assume this is NOT a bug, but just something I am doing wrong, but given I have the same configuration in another postgres/lizmap instance and it works well, maybe there's an issue?

Thank you.

Steps to reproduce the issue

  1. Load a materialized view from PostgreSQL
  2. Define a plot based on the materialized view

Versions, safeguards, check summary etc

Versions :

List of safeguards :
* Mode : normal * Allow parent folder : no * Prevent other drive : yes * Prevent PG service : yes * Prevent PG Auth DB : yes * Force PG user&pass : yes * Prevent ECW : yes

Check Lizmap plugin

Operating system

Ubuntu 20.04

Browsers

Chrome

Browsers version

Version 125.0.6422.142

Relevant log output

No response

andremano commented 2 weeks ago

I am sorry for the noise - I just realized my views were empty due to permission issues.