-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal Server Error when Adding STAC Collection to Geoportal Server #594
Comments
When trying to post a new STAC collection in geoportal via STAC API, geoportal would check the collection id if it exists in the elasticsearch. Upon an id is retrieved from given collection.json, it will use getCollectionWithId(String id) function in Stachelper.java, to check if same id can be found in existing index, i.e. collections.
It seems geoportal should have created or checked the index "collections" before getting no. of returned hits but didn't do it. I've tested it in release 2.7.2. Not sure, if it works in latest release 2.7.2.1 as I still cannot compile it successfully. Please advise. |
Geoportal Server does check if the index exists and if not creates it. this happens when Tomcat is restarted. Does your collection index not exist? |
StacHelper.java
From the code segment above, the getCollectionWithId function is trying to query elasticsearch with url string which get by
Exception thrown on By fixing the index name such that
Attached variables in debug mode: |
@Anna-leungtn Collection index is auto created when tomcat is started. Please share your app-context.xml or validate that below property (in bold) exists in your config <beans:bean id="elasticContext" class="com.esri.geoportal.lib.elastic.ElasticContextHttp"> If you do not see this property in your config, please take latest code from master branch or https://github.com/Esri/geoportal-server-catalog/releases/tag/v2.7.2.1 |
I am experiencing an issue while attempting to add the sample JSON STAC collection to the Geoportal Server catalog. Upon submission, I encounter the following error:
It appears that the error is related to a missing property in the JSON payload. I would appreciate any guidance on resolving this issue or any updates regarding a potential fix.
The text was updated successfully, but these errors were encountered: