radiantearth / stac-browser

A full-fledged UI in Vue for browsing and searching static STAC catalogs and STAC APIs
https://radiantearth.github.io/stac-browser
ISC License
282 stars 140 forks source link

Not possible to load the /search page directly, only available from button #261

Closed chiarch84 closed 1 year ago

chiarch84 commented 1 year ago

I'm trying to reach the /search page of my STAC Browser but I get an ever turning wheel.

image

Here follow some details:

catalogUrl: http://stac-browser-test.cidsn.jrc.it:20009/#/ searchUrl: http://stac-browser-test.cidsn.jrc.it:20009/#/search

API landing page response:

{
  "type": "Catalog",
  "id": "BDAP.catalog",
  "title": "JRC Big Data Analytics Platform Catalog",
  "description": "The JRC Big Data Analytics Platform (BDAP) links data, data services, data scientists and thematic experts for generating policy relevant insights and foresight. It will play an instrumental role in advancing JRC to better mobilize and synthesize its collective knowledge and expertise in support to the EC priorities.\nThis Catalog shows the list of all rasters and vectors available in the [JRC Big Data Analytics Platform (BDAP)](https://jeodpp.jrc.ec.europa.eu/bdap/).",
  "stac_version": "1.0.0",
  "conformsTo": [
    "https://api.stacspec.org/v1.0.0-rc.1/ogcapi-features",
    "https://api.stacspec.org/v1.0.0-rc.1/core",
    "https://api.stacspec.org/v1.0.0-rc.1/collections",
    "https://api.stacspec.org/v1.0.0-rc.1/item-search",
    "http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/geojson",
    "http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/oas30",
    "http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/core"
  ],
  "links": [
    {
      "rel": "self",
      "type": "application/json",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/"
    },
    {
      "rel": "root",
      "type": "application/json",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/"
    },
    {
      "rel": "data",
      "type": "application/json",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/collections"
    },
    {
      "rel": "conformance",
      "type": "application/json",
      "title": "STAC/WFS3 conformance classes implemented by this server",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/conformance"
    },
    {
      "rel": "search",
      "type": "application/geo+json",
      "title": "STAC search",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/search",
      "method": "GET"
    },
    {
      "rel": "search",
      "type": "application/geo+json",
      "title": "STAC search",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/search",
      "method": "POST"
    },
    {
      "rel": "child",
      "type": "application/json",
      "title": "Administrative Units Data",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/collections/AdministrativeUnits.catalog"
    },
    {
      "rel": "child",
      "type": "application/json",
      "title": "Buildings Data",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/collections/Buildings.catalog"
    },
    {
      "rel": "child",
      "type": "application/json",
      "title": "Copernicus Data Access Portfolio Document (DAP) Data",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/collections/Copernicus.DAP.catalog"
    },
    {
      "rel": "child",
      "type": "application/json",
      "title": "Copernicus Sentinel Data",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/collections/Copernicus.Sentinel.catalog"
    },
    {
      "rel": "child",
      "type": "application/json",
      "title": "Copernicus Services Data",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/collections/Copernicus.Services.catalog"
    },
    {
      "rel": "child",
      "type": "application/json",
      "title": "EUMETSAT Data",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/collections/EUMETSAT.catalog"
    },
    {
      "rel": "child",
      "type": "application/json",
      "title": "Elevation Data",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/collections/Elevation.catalog"
    },
    {
      "rel": "child",
      "type": "application/json",
      "title": "Energy Data",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/collections/Energy.catalog"
    },
    {
      "rel": "child",
      "type": "application/json",
      "title": "Geographical Grid Systems Data",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/collections/GeographicalGridSystems.catalog"
    },
    {
      "rel": "child",
      "type": "application/json",
      "title": "Geographical Names Data",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/collections/GeographicalNames.catalog"
    },
    {
      "rel": "child",
      "type": "application/json",
      "title": "Hydrography Data",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/collections/Hydrography.catalog"
    },
    {
      "rel": "child",
      "type": "application/json",
      "title": "Land cover Data",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/collections/Landcover.catalog"
    },
    {
      "rel": "child",
      "type": "application/json",
      "title": "Landuse Data",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/collections/Landuse.catalog"
    },
    {
      "rel": "child",
      "type": "application/json",
      "title": "Meteo Data",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/collections/Meteo.catalog"
    },
    {
      "rel": "child",
      "type": "application/json",
      "title": "NASA Data",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/collections/NASA.catalog"
    },
    {
      "rel": "child",
      "type": "application/json",
      "title": "Natural Risk Zones Data",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/collections/NaturalRiskZones.catalog"
    },
    {
      "rel": "child",
      "type": "application/json",
      "title": "Orthoimagery Data",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/collections/Orthoimagery.catalog"
    },
    {
      "rel": "child",
      "type": "application/json",
      "title": "Population Data",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/collections/Population.catalog"
    },
    {
      "rel": "child",
      "type": "application/json",
      "title": "Protected Sites Data",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/collections/ProtectedSites.catalog"
    },
    {
      "rel": "child",
      "type": "application/json",
      "title": "Social Aspects Data",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/collections/SocialAspects.catalog"
    },
    {
      "rel": "child",
      "type": "application/json",
      "title": "Soil Data",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/collections/Soil.catalog"
    },
    {
      "rel": "child",
      "type": "application/json",
      "title": "Statistical Units Data",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/collections/StatisticalUnits.catalog"
    },
    {
      "rel": "child",
      "type": "application/json",
      "title": "Transport Data",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/collections/Transport.catalog"
    },
    {
      "rel": "child",
      "type": "application/json",
      "title": "USGS Data",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/collections/USGS.catalog"
    },
    {
      "rel": "service-desc",
      "type": "application/vnd.oai.openapi+json;version=3.0",
      "title": "OpenAPI service description",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/api"
    },
    {
      "rel": "service-doc",
      "type": "text/html",
      "title": "OpenAPI service documentation",
      "href": "http://s-jrciprjeop150p.cidsn.jrc.it:20008/api.html"
    }
  ],
  "stac_extensions": [
    "https://raw.githubusercontent.com/radiantearth/stac-api-spec/v1.0.0-rc.1/fragments/context/json-schema/schema.json"
  ]
}
m-mohr commented 1 year ago

catalogUrl: http://stac-browser-test.cidsn.jrc.it:20009/#/

Is this really correct? The catalogUrl in the config should likely not be the STAC Browser url, right? What's the exact value in the config?

And just to make sure, you are on the latest dev version?

chiarch84 commented 1 year ago

Yes I'm for sure latest dev, I though need to check the config value.

iliion commented 1 year ago

catalogUrl It is the api endpoint (root catalog). You can see it also in the root and self links.

http://s-jrciprjeop150p.cidsn.jrc.it:20008

(aka. http://stac-api-test.cidsn.jrc.it:20008)

m-mohr commented 1 year ago

Thanks for the report, should be fixed now.