qwc-services / qwc-docker

Docker containers for qwc-services
MIT License
46 stars 36 forks source link

Could not get GetProjectSettings: 'str' object has no attribute 'get' #68

Closed Fudimir closed 1 year ago

Fudimir commented 1 year ago

Hello!

I am trying to upload a project, but this error appears during configuration (in the image). What could this be related to?

Thanks!

image

manisandro commented 1 year ago

Could you check the docker log whether it contains a full stacktrace?

Fudimir commented 1 year ago

Could you check the docker log whether it contains a full stacktrace?

Yes, I looked into the logs and saw an identical situation, and a few other lines about the QGIS project (fires_2023) that interests me.

image

image

Fudimir commented 1 year ago

It is worth noting that before that I changed the data in tenantConfig.json and config.json (in qwc-docker/volumes/config-in/default), but only for changing UI

manisandro commented 1 year ago

If you are comfortable with docker etc, could you open a shell inside the qwc-config-service container

$ docker-compose exec qwc-config-service

and then

$ vi /srv/qwc_service/config_generator/capabilities_reader.py

and add print(traceback.format_exc()) here [1], then exit vi and

$ kill $(pidof uwsgi)

Then re-invoke the config-generator, and you should get the full traceback printed in the docker log.

[1] https://github.com/qwc-services/qwc-config-generator/blob/2023-lts/config_generator/capabilities_reader.py#LL210

manisandro commented 1 year ago

Closing, feel free to reopen if still relevant and you can provide additional info.