planetfederal / registry

pycsw + elasticsearch + opensearch + swagger - Based on HHyperMap
MIT License
11 stars 9 forks source link

Cryptic errors on startup #12

Closed ingenieroariel closed 7 years ago

ingenieroariel commented 7 years ago

The following error masks the real cause in many cases:

'Csw' object has no attribute 'repository'

So far the following problems have been masked:

  1. The 'database' parameter not being passed on startup
  2. Elasticsearch not being up and available (overridden init file fails without showing the right traceback).

The proposed fix is to submit a patch to upstream pycsw letting the right exception be raised instead of trapped in an XML-like document.

ingenieroariel commented 7 years ago

Documented in the README with troubleshoot information and filed a bug report upstream: https://github.com/geopython/pycsw/issues/487

No need to track this one here anymore.