geoserver.catalog.FailedRequestError: Tried to make a GET request to http://localhost:8080/geoserver/workspaces.xml but got a 404 status code Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar ManaraGeoServer sub-domain, where to place a HTML file404 Not Found for geoserver http://localhost:8080/geoserver after installHow to host and launch new html files under Geoserver installationadapting cql openlayers on localhostCannot access GeoServer on http://localhost:8080/geoserver/webGeoserver Services not available after restartHTTP 500 error while open http://localhost:8080/geoserver/web in windows 10Geoserver Admin not launching http://localhost:8080/geoserver/webGeoserver on MacCannot access GeoServer on http://localhost:8080/geoserver

What is /etc/mtab in Linux?

Retract an already submitted recommendation letter (written for an undergrad student)

How to translate "red flag" into Spanish?

Does Mathematica have an implementation of the Poisson binomial distribution?

Married in secret, can marital status in passport be changed at a later date?

PIC mathematical operations weird problem

Arriving in Atlanta after US Preclearance in Dublin. Will I go through TSA security in Atlanta to transfer to a connecting flight?

Holes in ElementMesh with ToElementMesh of ImplicitRegion

Why does the Cisco show run command not show the full version, while the show version command does?

Trumpet valves, lengths, and pitch

finding a tangent line to a parabola

All ASCII characters with a given bit count

Justification for leaving new position after a short time

How would this chord from "Rocket Man" be analyzed?

Is a 5 watt UHF/VHF handheld considered QRP?

Is Diceware more secure than a long passphrase?

Would reducing the reference voltage of an ADC have any effect on accuracy?

Are these square matrices always diagonalisable?

Will I lose my paid in full property

How to avoid introduction cliches

Is Electric Central Heating worth it if using Solar Panels?

The art of proof summarizing. Are there known rules, or is it a purely common sense matter?

Additive group of local rings

Is accepting an invalid credit card number a security issue?



geoserver.catalog.FailedRequestError: Tried to make a GET request to http://localhost:8080/geoserver/workspaces.xml but got a 404 status code



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraGeoServer sub-domain, where to place a HTML file404 Not Found for geoserver http://localhost:8080/geoserver after installHow to host and launch new html files under Geoserver installationadapting cql openlayers on localhostCannot access GeoServer on http://localhost:8080/geoserver/webGeoserver Services not available after restartHTTP 500 error while open http://localhost:8080/geoserver/web in windows 10Geoserver Admin not launching http://localhost:8080/geoserver/webGeoserver on MacCannot access GeoServer on http://localhost:8080/geoserver



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I'm trying connect to geoserver via rest protocol by gsconfig-py3 in python3 ,I get this error, but when I type "http://localhost:8080/geoserver/rest" in browser I can see these items moreover when I click on each of them I can see content of them:



for more information I'm using:



OS LMDE 3 X64 (Debian 9),
GeoServer 2.15.0,
Python version:3.7.3



Geoserver Configuration API



  • about/manifest

  • about/status

  • about/version

  • fonts

  • index

  • layergroups

  • layers

  • namespaces

  • resource

  • security/acl/catalog

  • security/acl/layers

  • security/acl/rest

  • security/acl/services

  • security/masterpw

  • security/roles

  • security/self/password

  • security/usergroup/groups

  • security/usergroup/users

  • services/wcs/settings

  • services/wfs/settings

  • services/wms/settings

  • settings

  • settings/contact

  • styles

  • templates

  • workspaces

But when I try connect to geoserver via gsconfig-py3
for example below code:



from geoserver.catalog import Catalog
cat = Catalog("http://localhost:8080/geoserver/rest", username='admin', password='geoserver')
topp=cat.get_workspace("topp")


I get this error message:



Traceback (most recent call last):
File "/home/killercode/Desktop/test_version.py", line 3, in <module>
topp=cat.get_workspace("topp")
File "/usr/local/lib/python3.7/site-packages/geoserver/catalog.py", line 945, in get_workspace
candidates = [w for w in self.get_workspaces() if w.name == name]
File "/usr/local/lib/python3.7/site-packages/geoserver/catalog.py", line 940, in get_workspaces
description = self.get_xml(rest_url)
File "/usr/local/lib/python3.7/site-packages/geoserver/catalog.py", line 158, in get_xml
text
geoserver.catalog.FailedRequestError: Tried to make a GET request to http://localhost:8080/geoserver/workspaces.xml but got a 404 status code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /geoserver/workspaces.xml. Reason:
<pre> Not Found</pre></p><hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.12.v20180830</a><hr/>

</body>
</html>


How I can fix this problem?










share|improve this question




























    1















    I'm trying connect to geoserver via rest protocol by gsconfig-py3 in python3 ,I get this error, but when I type "http://localhost:8080/geoserver/rest" in browser I can see these items moreover when I click on each of them I can see content of them:



    for more information I'm using:



    OS LMDE 3 X64 (Debian 9),
    GeoServer 2.15.0,
    Python version:3.7.3



    Geoserver Configuration API



    • about/manifest

    • about/status

    • about/version

    • fonts

    • index

    • layergroups

    • layers

    • namespaces

    • resource

    • security/acl/catalog

    • security/acl/layers

    • security/acl/rest

    • security/acl/services

    • security/masterpw

    • security/roles

    • security/self/password

    • security/usergroup/groups

    • security/usergroup/users

    • services/wcs/settings

    • services/wfs/settings

    • services/wms/settings

    • settings

    • settings/contact

    • styles

    • templates

    • workspaces

    But when I try connect to geoserver via gsconfig-py3
    for example below code:



    from geoserver.catalog import Catalog
    cat = Catalog("http://localhost:8080/geoserver/rest", username='admin', password='geoserver')
    topp=cat.get_workspace("topp")


    I get this error message:



    Traceback (most recent call last):
    File "/home/killercode/Desktop/test_version.py", line 3, in <module>
    topp=cat.get_workspace("topp")
    File "/usr/local/lib/python3.7/site-packages/geoserver/catalog.py", line 945, in get_workspace
    candidates = [w for w in self.get_workspaces() if w.name == name]
    File "/usr/local/lib/python3.7/site-packages/geoserver/catalog.py", line 940, in get_workspaces
    description = self.get_xml(rest_url)
    File "/usr/local/lib/python3.7/site-packages/geoserver/catalog.py", line 158, in get_xml
    text
    geoserver.catalog.FailedRequestError: Tried to make a GET request to http://localhost:8080/geoserver/workspaces.xml but got a 404 status code:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    <title>Error 404 Not Found</title>
    </head>
    <body><h2>HTTP ERROR 404</h2>
    <p>Problem accessing /geoserver/workspaces.xml. Reason:
    <pre> Not Found</pre></p><hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.12.v20180830</a><hr/>

    </body>
    </html>


    How I can fix this problem?










    share|improve this question
























      1












      1








      1








      I'm trying connect to geoserver via rest protocol by gsconfig-py3 in python3 ,I get this error, but when I type "http://localhost:8080/geoserver/rest" in browser I can see these items moreover when I click on each of them I can see content of them:



      for more information I'm using:



      OS LMDE 3 X64 (Debian 9),
      GeoServer 2.15.0,
      Python version:3.7.3



      Geoserver Configuration API



      • about/manifest

      • about/status

      • about/version

      • fonts

      • index

      • layergroups

      • layers

      • namespaces

      • resource

      • security/acl/catalog

      • security/acl/layers

      • security/acl/rest

      • security/acl/services

      • security/masterpw

      • security/roles

      • security/self/password

      • security/usergroup/groups

      • security/usergroup/users

      • services/wcs/settings

      • services/wfs/settings

      • services/wms/settings

      • settings

      • settings/contact

      • styles

      • templates

      • workspaces

      But when I try connect to geoserver via gsconfig-py3
      for example below code:



      from geoserver.catalog import Catalog
      cat = Catalog("http://localhost:8080/geoserver/rest", username='admin', password='geoserver')
      topp=cat.get_workspace("topp")


      I get this error message:



      Traceback (most recent call last):
      File "/home/killercode/Desktop/test_version.py", line 3, in <module>
      topp=cat.get_workspace("topp")
      File "/usr/local/lib/python3.7/site-packages/geoserver/catalog.py", line 945, in get_workspace
      candidates = [w for w in self.get_workspaces() if w.name == name]
      File "/usr/local/lib/python3.7/site-packages/geoserver/catalog.py", line 940, in get_workspaces
      description = self.get_xml(rest_url)
      File "/usr/local/lib/python3.7/site-packages/geoserver/catalog.py", line 158, in get_xml
      text
      geoserver.catalog.FailedRequestError: Tried to make a GET request to http://localhost:8080/geoserver/workspaces.xml but got a 404 status code:
      <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
      <title>Error 404 Not Found</title>
      </head>
      <body><h2>HTTP ERROR 404</h2>
      <p>Problem accessing /geoserver/workspaces.xml. Reason:
      <pre> Not Found</pre></p><hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.12.v20180830</a><hr/>

      </body>
      </html>


      How I can fix this problem?










      share|improve this question














      I'm trying connect to geoserver via rest protocol by gsconfig-py3 in python3 ,I get this error, but when I type "http://localhost:8080/geoserver/rest" in browser I can see these items moreover when I click on each of them I can see content of them:



      for more information I'm using:



      OS LMDE 3 X64 (Debian 9),
      GeoServer 2.15.0,
      Python version:3.7.3



      Geoserver Configuration API



      • about/manifest

      • about/status

      • about/version

      • fonts

      • index

      • layergroups

      • layers

      • namespaces

      • resource

      • security/acl/catalog

      • security/acl/layers

      • security/acl/rest

      • security/acl/services

      • security/masterpw

      • security/roles

      • security/self/password

      • security/usergroup/groups

      • security/usergroup/users

      • services/wcs/settings

      • services/wfs/settings

      • services/wms/settings

      • settings

      • settings/contact

      • styles

      • templates

      • workspaces

      But when I try connect to geoserver via gsconfig-py3
      for example below code:



      from geoserver.catalog import Catalog
      cat = Catalog("http://localhost:8080/geoserver/rest", username='admin', password='geoserver')
      topp=cat.get_workspace("topp")


      I get this error message:



      Traceback (most recent call last):
      File "/home/killercode/Desktop/test_version.py", line 3, in <module>
      topp=cat.get_workspace("topp")
      File "/usr/local/lib/python3.7/site-packages/geoserver/catalog.py", line 945, in get_workspace
      candidates = [w for w in self.get_workspaces() if w.name == name]
      File "/usr/local/lib/python3.7/site-packages/geoserver/catalog.py", line 940, in get_workspaces
      description = self.get_xml(rest_url)
      File "/usr/local/lib/python3.7/site-packages/geoserver/catalog.py", line 158, in get_xml
      text
      geoserver.catalog.FailedRequestError: Tried to make a GET request to http://localhost:8080/geoserver/workspaces.xml but got a 404 status code:
      <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
      <title>Error 404 Not Found</title>
      </head>
      <body><h2>HTTP ERROR 404</h2>
      <p>Problem accessing /geoserver/workspaces.xml. Reason:
      <pre> Not Found</pre></p><hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.12.v20180830</a><hr/>

      </body>
      </html>


      How I can fix this problem?







      geoserver python-3 gsconfig






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 22 at 5:14









      Predator XPredator X

      539312




      539312




















          1 Answer
          1






          active

          oldest

          votes


















          2














          It appears that gsconfig-py3 is less relaxed about the format of the base URL than gsconfig was. If it doesn't end / it doesn't think to add one for you. so



          cat = Catalog("http://localhost:8080/geoserver/rest/", username='admin', password='geoserver')


          does work.



          I would raise an issue and a fix for this if I was you.






          share|improve this answer























          • yes, you'd right when I add / I didn't get error, thank you

            – Predator X
            2 days ago











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "79"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f319482%2fgeoserver-catalog-failedrequesterror-tried-to-make-a-get-request-to-http-loca%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          It appears that gsconfig-py3 is less relaxed about the format of the base URL than gsconfig was. If it doesn't end / it doesn't think to add one for you. so



          cat = Catalog("http://localhost:8080/geoserver/rest/", username='admin', password='geoserver')


          does work.



          I would raise an issue and a fix for this if I was you.






          share|improve this answer























          • yes, you'd right when I add / I didn't get error, thank you

            – Predator X
            2 days ago















          2














          It appears that gsconfig-py3 is less relaxed about the format of the base URL than gsconfig was. If it doesn't end / it doesn't think to add one for you. so



          cat = Catalog("http://localhost:8080/geoserver/rest/", username='admin', password='geoserver')


          does work.



          I would raise an issue and a fix for this if I was you.






          share|improve this answer























          • yes, you'd right when I add / I didn't get error, thank you

            – Predator X
            2 days ago













          2












          2








          2







          It appears that gsconfig-py3 is less relaxed about the format of the base URL than gsconfig was. If it doesn't end / it doesn't think to add one for you. so



          cat = Catalog("http://localhost:8080/geoserver/rest/", username='admin', password='geoserver')


          does work.



          I would raise an issue and a fix for this if I was you.






          share|improve this answer













          It appears that gsconfig-py3 is less relaxed about the format of the base URL than gsconfig was. If it doesn't end / it doesn't think to add one for you. so



          cat = Catalog("http://localhost:8080/geoserver/rest/", username='admin', password='geoserver')


          does work.



          I would raise an issue and a fix for this if I was you.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 2 days ago









          Ian TurtonIan Turton

          50.5k548120




          50.5k548120












          • yes, you'd right when I add / I didn't get error, thank you

            – Predator X
            2 days ago

















          • yes, you'd right when I add / I didn't get error, thank you

            – Predator X
            2 days ago
















          yes, you'd right when I add / I didn't get error, thank you

          – Predator X
          2 days ago





          yes, you'd right when I add / I didn't get error, thank you

          – Predator X
          2 days ago

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f319482%2fgeoserver-catalog-failedrequesterror-tried-to-make-a-get-request-to-http-loca%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

          Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

          Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?