planetfederal / qgis-geoserver-plugin

GNU General Public License v2.0
62 stars 52 forks source link

Clean unused styles is returns server error. #102

Closed SrNetoChan closed 6 years ago

SrNetoChan commented 6 years ago

When you try to use the Clean unused styles, you receive the following error:

2018-09-14T15:44:27     CRITICAL    Error connecting to server (See log for more details):Traceback (most recent call last):
              File "/home/aneto/.local/share/QGIS/QGIS3/profiles/default/python/plugins/geoserverexplorer/gui/explorer.py", line 106, in run
              command(*params)
              File "/home/aneto/.local/share/QGIS/QGIS3/profiles/default/python/plugins/geoserverexplorer/qgis/catalog.py", line 65, in cleanUnusedStyles
              style.catalog.delete(style, purge = True)
              File "/home/aneto/.local/share/QGIS/QGIS3/profiles/default/python/plugins/geoserverexplorer/extlibs/geoserver/catalog.py", line 205, in delete
              resp = self.http_request(rest_url, method='delete', headers=headers)
              File "/home/aneto/.local/share/QGIS/QGIS3/profiles/default/python/plugins/geoserverexplorer/geoserver/auth.py", line 44, in http_request
              resp, content = self.nam.request(url, method, data, headers)
              File "/home/aneto/.local/share/QGIS/QGIS3/profiles/default/python/plugins/lessons/extlibs/qgiscommons-2.0.9-py3.6.egg/qgiscommons2/network/networkaccessmanager.py", line 259, in request
              raise self.exception_class(self.http_call_result.reason)
             geoserver.catalog.FailedRequestError: Network error #500: Error transferring http://localhost:8080/geoserver/rest/styles/generic.xml?purge=True - server replied: Internal Server Error

Similar thing happens when you try to clean unused element for the catalog (it fails on the style phase).