GeoNode / geonode-importer

MIT License
2 stars 15 forks source link

XML and SLD raise error during import #271

Closed mattiagiupponi closed 2 weeks ago

mattiagiupponi commented 2 weeks ago

UI raise the following:

Unexpected error! - Unknwon Error Code. Contact the system administrator for more information regarding this error message. Additional info: ['NoneType' object has no attribute 'get'])

LOG:

'NoneType' object has no attribute 'get'
Traceback (most recent call last):
  File "/opt/core/geonode-importer/importer/api/views.py", line 140, in create
    storage_manager, asset, files = self._handle_asset(
  File "/opt/core/geonode-importer/importer/api/views.py", line 202, in _handle_asset
    asset, files = self.generate_asset_and_retrieve_paths(
  File "/opt/core/geonode-importer/importer/api/views.py", line 219, in generate_asset_and_retrieve_paths
    type=handler.id,
  File "/opt/core/geonode-importer/importer/handlers/base.py", line 65, in id
    pk = self.supported_file_extension_config.get("id", None)
AttributeError: 'NoneType' object has no attribute 'get'