GeoNode / geoserver-restconfig

geoserver-restconfig is a python library for manipulating a GeoServer instance via the GeoServer RESTConfig API.
MIT License
46 stars 29 forks source link

Why when I run from docker rise error #46

Closed diogocaribe closed 5 months ago

diogocaribe commented 5 months ago

When I run geoserver-restconfig from container (docker) show up an error:

self.cat = Catalog(f"{self.url}", self.username, self.password)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python3.7/site-packages/geoserver/catalog.py", line 126, in __init__
    self.setup_connection(retries=self.retries, backoff_factor=self.backoff_factor)
  File "/usr/local/lib/python3.7/site-packages/geoserver/catalog.py", line 154, in setup_connection
    ["HEAD", "TRACE", "GET", "PUT", "POST", "OPTIONS", "DELETE"]
TypeError: __init__() got an unexpected keyword argument 'allowed_methods'
self.url
'http://192.168.64.2:8080/geoserver'

Screenshot from 2024-05-29 17-05-13

However, when I run out of the container (docker) everythig work well.

Can someone give me some suggestion to solve this?