planetfederal / qgis-geoserver-plugin

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

Error when submitting style change #35

Closed peterahlstrom closed 7 years ago

peterahlstrom commented 8 years ago

Thank you for doing this job to make managing Geoserver easier. Much needed! :smiley:

This happened today: Chose a style :arrow_forward: Edit... :arrow_forward: changed color :arrow_forward: pressed OK.

must be string or buffer, not tuple Traceback (most recent call last): File "C:/Users/petahl2/.qgis2/python/plugins\geoserverexplorer\gui\explorer.py", line 98, in run command(*params) File "build\bdist.win32\egg\geoserver\style.py", line 108, in update_body self.body_href, "PUT", body, headers) File "C:/Users/petahl2/.qgis2/python/plugins\geoserverexplorer\geoserver\retry.py", line 14, in decorator raise e TypeError: must be string or buffer, not tuple

peterahlstrom commented 8 years ago

QGIS version: 2.10.1-Pisa

dvictori commented 8 years ago

I'm seeing the same thing using QGis 2.12.3 when I try to change the layer style using the QGis dialog. But I'm able to change the SLD if I type it in the Edit SLD... dialog window.

Traceback (most recent call last):
  File "C:/Users/daniel/.qgis2/python/plugins\geoserverexplorer\gui\explorer.py", line 98, in run
    command(*params)
  File "C:\Users\daniel\.qgis2\python\plugins\geoserverexplorer\ext-libs\gsconfig-1.0.0-py2.7.egg\geoserver\style.py", line 108, in update_body
    self.body_href, "PUT", body, headers)
  File "C:/Users/daniel/.qgis2/python/plugins\geoserverexplorer\geoserver\retry.py", line 14, in decorator
    raise e
TypeError: must be string or buffer, not tuple

This plugin is great, by the way!

purid commented 8 years ago

Same thing with 2.8.2 Geoserver and 2.14.0-Eseen QGIS

icthecat commented 8 years ago

Same problem Here. Qgis 2.14.5 (Essen) + Geoserver 2.9 + Geoserver Explorer 0.1.1. I tried to set a diferent fill color on a simple feature (polygon) data loaded from postgis table and got this result:

must be string or buffer, not tuple Traceback (most recent call last): File "C:/Users/Icaro/.qgis2/python/plugins\geoserverexplorer\gui\explorer.py", line 98, in run command(*params) File "C:\Users\Icaro.qgis2\python\plugins\geoserverexplorer\ext-libs\gsconfig-1.0.0-py2.7.egg\geoserver\style.py", line 108, in update_body self.body_href, "PUT", body, headers) File "C:/Users/Icaro/.qgis2/python/plugins\geoserverexplorer\geoserver\retry.py", line 14, in decorator raise e TypeError: must be string or buffer, not tuple

icthecat commented 8 years ago

This topic solved my problem, i hope that help you guys.

https://github.com/boundlessgeo/qgis-geoserver-plugin/commit/e877ab4df051bf225342571bebcc7ab7f2f3945f

gioman commented 8 years ago

cannot confirm with the latest version of the plugin and Boundless Suite. Still true?